]> 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)
commit0ba193e7f24912cfb75d7dd504d10c6fee587e71
tree6dd48877e9e7659199b9042811733bf7fa21699e
parentb18f85d79950567f762aff169fb0480a599dfd6e
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