]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: hns: Bugfix for Tx timeout handling in hns driver
authorLin Yun Sheng <linyunsheng@huawei.com>
Thu, 13 Jul 2017 15:34:31 +0000 (09:34 -0600)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 14 Jul 2017 15:01:21 +0000 (12:01 -0300)
commitbb5eeb163b9acad6701316648ae8c89f186ec465
tree21a323146a844dab7ec085c68dcd0e74e1b00a52
parentf6b14b3ce11cf2a69b0ac848113e353d754dbfb1
net: hns: Bugfix for Tx timeout handling in hns driver

BugLink: https://bugs.launchpad.net/bugs/1704146
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>
(cherry picked from commit 76b825ab870be3281edac4ae8a414da6e54b0d3a)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/ethernet/hisilicon/hns/hns_enet.c