[Intel-wired-lan] [PATCH S9 11/15] ice: Fix return value from NAPI poll
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Oct 30 22:24:18 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, October 26, 2018 11:45 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S9 11/15] ice: Fix return value from NAPI
> poll
>
> From: Dave Ertman <david.m.ertman at intel.com>
>
> 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 at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> [Anirudh Venkataramanan <anirudh.venkataramanan at intel.com> cleaned
> up commit message]
> ---
> drivers/net/ethernet/intel/ice/ice_txrx.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list