]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: napi_poll must return the work done
authorPaolo Abeni <pabeni@redhat.com>
Wed, 15 Jun 2016 13:37:59 +0000 (15:37 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 15 Jul 2016 06:34:52 +0000 (23:34 -0700)
commit91ad4164a800885338a4ac254a59f6c43cc3f9f3
treed3ec692524635a53ac71bf212a419acff9fb1b0c
parent282de570ec36d94dd1e3dbc96f24bfcc89922919
ixgbe: napi_poll must return the work done

Currently the function ixgbe_poll() returns 0 when it clean completely
the rx rings, but this foul budget accounting in core code.
Fix this returning the actual work done, capped to weight - 1, since
the core doesn't allow to return the full budget when the driver modifies
the napi status

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Venkatesh Srinivas <venkateshs@google.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c