]> git.hungrycats.org Git - linux/commit
bnx2x: fix napi poll return value for repoll
authorGovindarajulu Varadarajan <_govind@gmx.com>
Sun, 25 Jan 2015 10:39:23 +0000 (16:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Feb 2015 01:49:01 +0000 (17:49 -0800)
commite3b175f60e9c79f559d14f76590a701b62c583c4
tree62703cec3d8283c3eaf4d11da2f8c1b9059adae8
parentb0e791661b291dfea609f6c647066b005fb546b5
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c