]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netxen: fix netxen_nic_poll() logic
authorEric Dumazet <edumazet@google.com>
Thu, 22 Jan 2015 15:56:18 +0000 (07:56 -0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 10 Feb 2015 10:16:49 +0000 (11:16 +0100)
commit795c55d8ad906db83c2997fe16bd2e319fa4df01
tree1cd0febc7e235c6beacea24f6258380a7269ed85
parenta20ac4fd85a5c37db9603f451abbe7834e5ae6cb
netxen: fix netxen_nic_poll() logic

[ Upstream commit 6088beef3f7517717bd21d90b379714dd0837079 ]

NAPI poll logic now enforces that a poller returns exactly the budget
when it wants to be called again.

If a driver limits TX completion, it has to return budget as well when
the limit is hit, not the number of received packets.

Reported-and-tested-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: d75b1ade567f ("net: less interrupt masking in NAPI")
Cc: Manish Chopra <manish.chopra@qlogic.com>
Acked-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c