commit | cc645dfa89a747382beaf62d69daafe60fd1cd94 | [log] [tgz] |
---|---|---|
author | Huazhong Tan <tanhuazhong@huawei.com> | Sat Apr 06 15:43:27 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 08 15:30:49 2019 -0700 |
tree | 8715620ffc04a65d06dbde48ff9022696b0df00e | |
parent | cd513a69750b4be20b8c077e05c5112f0fd014f2 [diff] |
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: aa5c4f175be6 ("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>