aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2020-01-11 16:33:49 +0800
committerDavid S. Miller <davem@davemloft.net>2020-01-11 14:52:22 -0800
commit8627bdedc435865b015cedeb26e3791dec5b3a41 (patch)
tree7f0b5a09f5acf0a7c272201a652b07325ecbd097 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
parentnet: hns3: split hclgevf_reset() into preparing and rebuilding part (diff)
downloadlinux-dev-8627bdedc435865b015cedeb26e3791dec5b3a41.tar.xz
linux-dev-8627bdedc435865b015cedeb26e3791dec5b3a41.zip
net: hns3: refactor the precedure of PF FLR
Currently, the actual work of PF FLR is handled in the reset task, which is asynchronous. So in some case, if the preparing and rebuilding are not done, then the PF FLR will trigger some problems, for example, makes hardware go into chaos. So this patch separates the process of PF FLR from reset task, and adds a semaphore to serialize this reset and others. When FLR's preparing fails, if there has other higher level reset pending or failing times less than the HCLGE_FLR_RETRY_CNT, this preparing should be retried, otherwise PF and its VF may get into wrong state. BTW, while the hardware reports misc interrupt during pcie_flr(), the driver can not receive this interrupt anymore, so disable it when hclge_flr_prepare() return, and re-enable it when enter hclge_flr_done(). Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions