]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: wake tx queues on ndo_tx_timeout
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 31 Mar 2017 23:41:23 +0000 (18:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 02:42:44 +0000 (19:42 -0700)
commitef4bb1bd5410eef69284088f779e7a948d0cbf45
tree85886bc2ed8ab11f1c27ba05ad0280b0dbe7326e
parent797ac76e838d8acf8a88d9ea6b0a2b4ad06ba7dd
net: ethernet: ti: cpsw: wake tx queues on ndo_tx_timeout

In case, if TX watchdog is fired some or all netdev TX queues will be
stopped and as part of recovery it is required not only to drain and
reinitailize CPSW TX channeles, but also wake up stoppted TX queues what
doesn't happen now and netdevice will stop transmiting data until
reopenned.

Hence, add netif_tx_wake_all_queues() call in .ndo_tx_timeout() to complete
recovery and restore TX path.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c