linux/drivers/net/ethernet/hisilicon
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
..
hns ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
hns3 net: hns3: disable sriov before unload hclge layer 2021-10-20 11:38:11 +01:00
hip04_eth.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
hisi_femac.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
hix5hd2_gmac.c of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
hns_mdio.c net: hns: Fix spelling mistake "maped" -> "mapped" 2021-09-27 12:21:16 +01:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile