]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for mishandle of asserting VF reset fail
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 6 Jul 2020 11:26:00 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2020 19:33:28 +0000 (12:33 -0700)
commit81b8bc59b2bac855ce23d3ef4929d05d145c70ea
tree2d8ba71807ae2bd63072719775bafb09aafee8b8
parentb145c42d254ec97fcafaaf918281e7ac4b0a06cd
net: hns3: fix for mishandle of asserting VF reset fail

When asserts VF reset fail, flag HCLGEVF_STATE_CMD_DISABLE
and handshake status should not set, otherwise the retry will
fail. So adds a check for asserting VF reset and returns
directly when fails.

Fixes: f0bb8df120e8 ("net: hns3: stop handling command queue while resetting VF")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c