[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1352407453.2771.18.camel@bwh-desktop.uk.solarflarecom.com>
Date: Thu, 8 Nov 2012 20:44:13 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: Oliver Neukum <oliver@...kum.org>
CC: <netdev@...r.kernel.org>
Subject: Re: question on netdev_completed_queue()
On Thu, 2012-11-08 at 20:38 +0100, Oliver Neukum wrote:
> Hi,
>
> is this function to be called whenever a driver is done with transmitting
> data, whether the transmission be successful or not?
Yes, BQL tracks number of packets and bytes in each queue and you have
to tell it about all insertions and removals from the queue. (Except
that if you flush the queue, you can use netdev_reset_queue() rather
than trying to counting the remaining packets and bytes.)
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists