linux/drivers/net/ethernet/atheros/alx
Eric Dumazet 7a05dc64e2 alx: fix alx_poll()
Commit d75b1ade56 ("net: less interrupt masking in NAPI") uncovered
wrong alx_poll() behavior.

A NAPI poll() handler is supposed to return exactly the budget when/if
napi_complete() has not been called.

It is also supposed to return number of frames that were received, so
that netdev_budget can have a meaning.

Also, in case of TX pressure, we still have to dequeue received
packets : alx_clean_rx_irq() has to be called even if
alx_clean_tx_irq(alx) returns false, otherwise device is half duplex.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: d75b1ade56 ("net: less interrupt masking in NAPI")
Reported-by: Oded Gabbay <oded.gabbay@amd.com>
Bisected-by: Oded Gabbay <oded.gabbay@amd.com>
Tested-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-11 21:45:50 -05:00
..
Makefile
alx.h alx: add alx_get_stats64 operation 2014-01-11 20:52:58 -08:00
ethtool.c alx: add stats to ethtool 2014-01-11 20:52:59 -08:00
hw.c alx: add stats update function 2014-01-11 20:52:58 -08:00
hw.h alx: add stats to ethtool 2014-01-11 20:52:59 -08:00
main.c alx: fix alx_poll() 2015-01-11 21:45:50 -05:00
reg.h alx: add constants for the stats fields 2014-01-11 20:52:58 -08:00