]> git.baikalelectronics.ru Git - kernel.git/commit
net: arc_emac: enable tx interrupts
authorBeniamino Galvani <b.galvani@gmail.com>
Wed, 10 Sep 2014 20:50:02 +0000 (22:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2014 21:17:49 +0000 (17:17 -0400)
commit145bf0173a98c5fe128c30745c8779f1f08016b6
treeee0ef95db8dbe1bdc567ea1a7ee9cb0838e02601
parent986599530f626fa9729f3442a2b6158bddfcb8c2
net: arc_emac: enable tx interrupts

In the current implementation the cleaning of tx ring is done by the
NAPI poll handler, which is scheduled after rx interrupts. Thus, in
absence of received packets the reclaim of used tx buffers is never
executed, blocking further transmission.

This can be easily reproduced starting the transmission of a UDP flow
with iperf, which blocks almost immediately because skbs are not
returned to the stack and the socket send buffer becomes full.

The patch enables tx interrupts so that the tx reclaim is scheduled
after completed transmissions.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c