Commit db99ad8820f75faa28eac34d8bb5cd72e91554f5

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

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
... ... @@ -3131,7 +3131,7 @@
3131 3131 }
3132 3132 #endif
3133 3133 if (!bnx2x_fp_lock_napi(fp))
3134   - return work_done;
  3134 + return budget;
3135 3135  
3136 3136 for_each_cos_in_tx_queue(fp, cos)
3137 3137 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))