Commit e3b175f60e9c79f559d14f76590a701b62c583c4

Authored by Govindarajulu Varadarajan
Committed by Greg Kroah-Hartman
1 parent b0e791661b

bnx2x: fix napi poll return value for repoll

[ Upstream commit 24e579c8898aa641ede3149234906982290934e5 ]

With the commit d75b1ade567ffab ("net: less interrupt masking in NAPI") napi
repoll is done only when work_done == budget. When in busy_poll is we return 0
in napi_poll. We should return budget.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
... ... @@ -3175,7 +3175,7 @@
3175 3175 }
3176 3176 #endif
3177 3177 if (!bnx2x_fp_lock_napi(fp))
3178   - return work_done;
  3178 + return budget;
3179 3179  
3180 3180 for_each_cos_in_tx_queue(fp, cos)
3181 3181 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))