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)
commit13ea657806cf73b379a0109f7042182f47c351a7
tree6dd48877e9e7659199b9042811733bf7fa21699e
parent80edb722b919500450e83c49c20a9dc706de2fa6
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