OSDN Git Service

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)
commit76b825ab870be3281edac4ae8a414da6e54b0d3a
treeaa2f3ecb5c98173692ef22e5c1d8d5d5868e460f
parent2e3d232e139a7128e2494a840a8a00fb9ab65f45
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: b5996f11ea54 ("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