]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: check reset pending after FLR prepare
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 6 Jul 2020 11:25:59 +0000 (19:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2020 19:33:28 +0000 (12:33 -0700)
commitb145c42d254ec97fcafaaf918281e7ac4b0a06cd
tree918681ef717a22600660656f67d1866e170d0fc5
parent6e32af3cee66f7e188e4dd810efe919fd6afe211
net: hns3: check reset pending after FLR prepare

If there is a PF reset pending before FLR prepare, FLR's
preparatory work will not fail, but the FLR rebuild procedure
will fail for this pending. So this PF reset pending should
be handled in the FLR preparatory.

Fixes: 8228cfcbf96a ("net: hns3: refactor the precedure of PF FLR")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c