]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Bugfix for Tx timeout handling in hns driver
authorLin Yun Sheng <linyunsheng@huawei.com>
Wed, 12 Jul 2017 11:09:59 +0000 (19:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jul 2017 15:22:34 +0000 (08:22 -0700)
commitcc17ed174cd1bcf8a91ce94d908620bbefd2481d
treeaa2f3ecb5c98173692ef22e5c1d8d5d5868e460f
parentc08841604a1eabf08c6a952297ec50b4f8fe984c
net: hns: Bugfix for Tx timeout handling in hns driver

When hns port type is not debug mode, netif_tx_disable is called
when there is a tx timeout, which requires system reboot to return
to normal state. This patch fix this problem by resetting the net
dev.

Fixes: 620ad033fae7 ("net: add Hisilicon Network Subsystem basic ethernet support")
Signed-off-by: Lin Yun Sheng <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c