diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-04-01 01:41:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-03 04:42:44 +0200 |
commit | 75514b6654859e0130b512396dc964d2a9e84967 (patch) | |
tree | 85886bc2ed8ab11f1c27ba05ad0280b0dbe7326e | |
parent | Merge branch 'l2tp_session_find-fixes' (diff) | |
download | linux-75514b6654859e0130b512396dc964d2a9e84967.tar.xz linux-75514b6654859e0130b512396dc964d2a9e84967.zip |
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>
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 9f3d9c67e3fe..58cdc066ef2c 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1817,6 +1817,8 @@ static void cpsw_ndo_tx_timeout(struct net_device *ndev) } cpsw_intr_enable(cpsw); + netif_trans_update(ndev); + netif_tx_wake_all_queues(ndev); } static int cpsw_ndo_set_mac_address(struct net_device *ndev, void *p) |