netxen: fix netxen_nic_poll() logic
authorEric Dumazet <edumazet@google.com>
Thu, 22 Jan 2015 15:56:18 +0000 (07:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 08:21:45 +0000 (00:21 -0800)
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>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c