]> 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)
commit1ec89b73d86cdce017dcd9cfe56aca5cc67f6afd
treed71eb64bdce7341ca79f364b708d49e8f5f3753b
parent8f12b375111c2f4a9e129a3f05081805599a7b3f
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: daf460751ac5 ("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