linux/drivers/net/ethernet/hisilicon/hns3
Peng Li 0dd8a25f35 net: hns3: disable sriov before unload hclge layer
HNS3 driver includes hns3.ko, hnae3.ko and hclge.ko.
hns3.ko includes network stack and pci_driver, hclge.ko includes
HW device action, algo_ops and timer task, hnae3.ko includes some
register function.

When SRIOV is enable and hclge.ko is removed, HW device is unloaded
but VF still exists, PF will not reply VF mbx messages, and cause
errors.

This patch fix it by disable SRIOV before remove hclge.ko.

Fixes: e2cb1dec97 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-20 11:38:11 +01:00
..
hns3pf net: hns3: disable sriov before unload hclge layer 2021-10-20 11:38:11 +01:00
hns3vf net: hns3: fix vf reset workqueue cannot exit 2021-10-20 11:38:11 +01:00
hclge_mbx.h net: hns3: add required space in comment 2021-08-28 11:20:05 +01:00
hnae3.c net: hns3: disable sriov before unload hclge layer 2021-10-20 11:38:11 +01:00
hnae3.h net: hns3: disable sriov before unload hclge layer 2021-10-20 11:38:11 +01:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: add some required spaces 2021-08-31 12:36:42 +01:00
hns3_debugfs.h net: hns3: change the method of getting cmd index in debugfs 2021-08-26 07:24:17 -07:00
hns3_enet.c net: hns3: schedule the polling again when allocation fails 2021-10-20 11:38:11 +01:00
hns3_enet.h net: hns3: fix for miscalculation of rx unused desc 2021-10-20 11:38:11 +01:00
hns3_ethtool.c net: hns3: fix always enable rx vlan filter problem after selftest 2021-09-29 11:03:54 +01:00
hns3_ethtool.h net: hns3: add support ethtool extended link state 2021-08-16 15:12:14 -07:00
hns3_trace.h net: hns3: rename trace event hns3_over_8bd 2020-09-29 13:14:24 -07:00
Makefile net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00