]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: napi: fix abuse of budget
authorPaul Durrant <Paul.Durrant@citrix.com>
Wed, 11 Dec 2013 10:57:15 +0000 (10:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Dec 2013 18:35:38 +0000 (13:35 -0500)
commit15b2da42843c792903353b219f155d0272228e00
tree292a2a641e2d6d3ec960c72ef28310c60549d987
parentba7321440f09964f69e1ccb9bd3aa0bc28c06d6b
xen-netback: napi: fix abuse of budget

netback seems to be somewhat confused about the napi budget parameter. The
parameter is supposed to limit the number of skbs processed in each poll,
but netback has this confused with grant operations.

This patch fixes that, properly limiting the work done in each poll. Note
that this limit makes sure we do not process any more data from the shared
ring than we intend to pass back from the poll. This is important to
prevent tx_queue potentially growing without bound.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c