Commit 7b254cb1 authored by Govindarajulu Varadarajan's avatar Govindarajulu Varadarajan Committed by Jiri Slaby

bnx2x: fix napi poll return value for repoll

[ Upstream commit 24e579c8 ]

With the commit d75b1ade ("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: default avatarGovindarajulu Varadarajan <_govind@gmx.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent c196ece7
...@@ -3087,7 +3087,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget) ...@@ -3087,7 +3087,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget)
} }
#endif #endif
if (!bnx2x_fp_lock_napi(fp)) if (!bnx2x_fp_lock_napi(fp))
return work_done; return budget;
for_each_cos_in_tx_queue(fp, cos) for_each_cos_in_tx_queue(fp, cos)
if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos])) if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment