Skip to content

Commit 24e579c

Browse files
Govindarajulu Varadarajandavem330
authored andcommitted
bnx2x: fix napi poll return value for repoll
With the commit d75b1ad ("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>
1 parent bf693f7 commit 24e579c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3175,7 +3175,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
31753175
}
31763176
#endif
31773177
if (!bnx2x_fp_lock_napi(fp))
3178-
return work_done;
3178+
return budget;
31793179

31803180
for_each_cos_in_tx_queue(fp, cos)
31813181
if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))

0 commit comments

Comments
 (0)