OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf
Huazhong Tan dea846e85a net: hns3: adjust VF's reset process
Currently when VF need to reset itself, it will send a cmd to PF,
after receiving the VF reset requset, PF sends a cmd to inform
VF to enter the reset process and send a cmd to firmware to do the
actual reset for the VF, it is possible that firmware has resetted
the VF, but VF has not entered the reset process, which may cause
IO not stopped problem when firmware is resetting VF.

This patch fixes it by adjusting the VF reset process, when VF
need to reset itself, it will enter the reset process first, and
it will tell the PF to send cmd to firmware to reset itself.

Add member reset_pending to struct hclgevf_dev, which indicates that
there is reset event need to be processed by the VF's reset task, and
the VF's reset task chooses the highest-level one and clears other
low-level one when it processes reset_pending.

hclge_inform_reset_assert_to_vf function is unused now, but it will
be used to support the PF reset with VF working, so declare it in
the header file.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-09 16:47:34 -08:00
..
Makefile net: hns3: Add PCIe AER callback error_detected 2018-10-22 19:31:13 -07:00
hclge_cmd.c net: hns3: bugfix for is_valid_csq_clean_head() 2018-10-31 12:42:38 -07:00
hclge_cmd.h net: hns3: Add enable and process hw errors of TM scheduler 2018-10-22 19:31:14 -07:00
hclge_dcb.c net: hns3: Change return type of hclge_tm_schd_info_update() 2018-09-28 10:37:42 -07:00
hclge_dcb.h net: hns3: Add SPDX tags to HNS3 PF driver 2018-07-21 08:44:23 -07:00
hclge_err.c net: hns3: Remove set but not used variable 'reset_level' 2018-11-07 11:46:37 -08:00
hclge_err.h net: hns3: Add enable and process hw errors of TM scheduler 2018-10-22 19:31:14 -07:00
hclge_main.c net: hns3: fix spelling mistake, "assertting" -> "asserting" 2018-11-08 17:07:56 -08:00
hclge_main.h net: hns3: adjust VF's reset process 2018-11-09 16:47:34 -08:00
hclge_mbx.c net: hns3: adjust VF's reset process 2018-11-09 16:47:34 -08:00
hclge_mdio.c net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read 2018-10-31 12:42:38 -07:00
hclge_mdio.h net: hns3: Fix for information of phydev lost problem when down/up 2018-08-14 09:54:23 -07:00
hclge_tm.c net: hns3: Fix for out-of-bounds access when setting pfc back pressure 2018-11-03 15:41:58 -07:00
hclge_tm.h net: hns3: Change return type of hclge_tm_schd_info_update() 2018-09-28 10:37:42 -07:00