]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: set vport alive state to default while resetting
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:25 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:30:49 +0000 (15:30 -0700)
commit9e9a986864aa1755d4136766b84b3f1dd95f924e
treed71eb64bdce7341ca79f364b708d49e8f5f3753b
parent6e4ba5a07c68c77b097cc4170fb563fa314f9bb1
net: hns3: set vport alive state to default while resetting

When resetting, the vport alive state should be set to default,
otherwise the alive state of the vport whose driver not running
is wrong before the timer to check it out.

Fixes: fb4b160c202d ("net: hns3: Add vport alive state checking support")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c