]> 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)
commit76a8cb0c7f34addef04a094057093e94bdcfb09e
treeaa2f3ecb5c98173692ef22e5c1d8d5d5868e460f
parent896b1f6de3a5569ce708520cfe4556f16f6c0931
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: 5fda5763a87e ("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