diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-06-15 13:37:59 (GMT) |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-07-15 06:34:52 (GMT) |
commit | 4b732cd4bb6006ad7fd4d5cdba27fcb751cdf4b7 (patch) | |
tree | d3ec692524635a53ac71bf212a419acff9fb1b0c /net | |
parent | f6bd09625ba66446821d55c61891bea9e2cdc5b3 (diff) | |
download | linux-4b732cd4bb6006ad7fd4d5cdba27fcb751cdf4b7.tar.xz |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions