]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix return value from NAPI poll
authorDave Ertman <david.m.ertman@intel.com>
Fri, 26 Oct 2018 18:44:43 +0000 (11:44 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 20 Nov 2018 19:39:04 +0000 (11:39 -0800)
commitfd30b8bd1590358e6a3c608c7f81a64664fdf93b
tree127f72b7aba4e5ed2efd16e5c1d335dc2436497e
parent6b65f23c1389574571a0516c25cb16e0531981c4
ice: Fix return value from NAPI poll

ice_napi_poll is hard-coded to return zero when it's done. It should
instead return the work done (if any work was done). The only time it
should return zero is if an interrupt or poll is handled and no work
is performed. So change the return value to be the minimum of work
done or budget-1.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_txrx.c