]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:44 +0000 (21:47 -0800)
commit5580840a9b4960960e684544fc6629ec5694c230
treeeed5c9db95c7d0dba71e529f6277455fe832703c
parentc75d2a726429a2a9f10ff65b9748ac7365bd5620
ixgbe: napi_poll must return the work done

Orabug: 24568240

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>
(cherry picked from commit 4b732cd4bb6006ad7fd4d5cdba27fcb751cdf4b7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c