]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: not reset vport who not alive when PF reset
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:27 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:30:49 +0000 (15:30 -0700)
commit5704be526de85cc6e15ca81adb0d8a2ccfdbacd8
tree8715620ffc04a65d06dbde48ff9022696b0df00e
parent7fabd3259f275f28410121f582da490465c7b057
net: hns3: not reset vport who not alive when PF reset

If a vport is not alive, it is unnecessary to notify it to reset
before PF asserting a reset. So before inform vport to reset,
we need to check its alive state firstly.

Fixes: 6ab705fe196a ("net: hns3: add reset handling for VF when doing PF reset")
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