]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: improve TX timeout
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 4 Jun 2015 23:15:50 +0000 (16:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jun 2015 22:19:06 +0000 (15:19 -0700)
commite5ff1ca49364b6bccac513bb568eafbc19d4bb71
tree6dd48877e9e7659199b9042811733bf7fa21699e
parent94b40e51087cb79a6745e5cfa022f3baefef7586
net: bcmgenet: improve TX timeout

Dump useful ring statistics along with interrupt status, software
maintained pointers and hardware registers to help troubleshoot TX queue
stalls.

When a timeout occurs, disable TX NAPI for the rings, dump their states
while interrupts are disabled, re-enable interrupts, NAPI and queue flow
control to help with the recovery.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c