linux/drivers/net/ethernet
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
..
3com 3com 3c515: make it compile on 64-bit architectures 2021-09-16 11:14:47 -07:00
8390 ne2000: fix unused function warning 2021-09-08 11:45:06 +01:00
actions
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon
amd net: ni65: Avoid typecast of pointer to u32 2021-09-09 11:21:19 +01:00
apm
apple
aquantia atlantic: Fix issue in the pm resume flow. 2021-09-23 13:24:14 +01:00
arc net: arc: select CRC32 2021-10-13 09:00:10 -07:00
atheros
broadcom net: bgmac-platform: handle mac-address deferral 2021-09-27 12:28:15 +01:00
brocade
cadence net: macb: fix use after free on rmmod 2021-09-09 10:55:44 +01:00
calxeda
cavium cavium: Fix return values of the probe function 2021-10-19 13:09:57 +01:00
chelsio pci-v5.15-changes 2021-09-07 19:13:42 -07:00
cirrus net: cs89x0: disable compile testing on powerpc 2021-09-03 13:42:27 +01:00
cisco
cortina
davicom
dec
dlink
emulex
ezchip
faraday
freescale net: enetc: fix the incorrect clearing of IF_MODE bits 2021-09-24 14:03:04 +01:00
fujitsu
google gve: report 64bit tx_bytes counter from gve_handle_report_stats() 2021-10-06 15:11:51 +01:00
hisilicon net: hns3: disable sriov before unload hclge layer 2021-10-20 11:38:11 +01:00
huawei
i825xx net: i825xx: Use absolute_pointer for memcpy from fixed memory location 2021-09-15 12:04:28 -07:00
ibm Revert "ibmvnic: check failover_pending in login response" 2021-09-27 13:21:53 +01:00
intel ice: Print the api_patch as part of the fw.mgmt.api 2021-10-14 10:14:46 -07:00
litex net: Add depends on OF_NET for LiteX's LiteETH 2021-08-31 08:36:38 -07:00
marvell octeontx2-af: Fix some memory leaks in the error handling path of 'cgx_lmac_init()' 2021-09-04 13:07:00 +01:00
mediatek net: ethernet: mtk_eth_soc: avoid creating duplicate offload entries 2021-09-23 13:14:19 +01:00
mellanox mlxsw: thermal: Fix out-of-bounds memory accesses 2021-10-14 07:13:26 -07:00
micrel net: ks8851: fix link error 2021-09-28 13:11:20 +01:00
microchip net: sparx5: Add of_node_put() before goto 2021-10-18 13:44:48 +01:00
microsoft net: mana: Fix error handling in mana_create_rxq() 2021-10-08 17:00:04 -07:00
moxa
mscc net: mscc: ocelot: Add of_node_put() before goto 2021-10-18 13:44:48 +01:00
myricom
natsemi Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
neterion ethernet: s2io: fix setting mac address during resume 2021-10-14 07:12:33 -07:00
netronome nfp: bpf: silence bitwise vs. logical OR warning 2021-10-18 14:50:01 -07:00
ni net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx() 2021-08-31 12:08:05 +01:00
nvidia
nxp
oki-semi
packetengines
pasemi net: pasemi: Remove usage of the deprecated "pci-dma-compat.h" API 2021-08-30 20:30:51 -07:00
pensando ionic: don't remove netdev->dev_addr when syncing uc list 2021-10-09 11:56:59 +01:00
qlogic qed: Fix missing error code in qed_slowpath_start() 2021-10-09 13:46:41 +01:00
qualcomm net: qcom/emac: Replace strlcpy with strscpy 2021-09-06 16:43:17 +01:00
rdc r6040: Restore MDIO clock frequency after MAC reset 2021-09-10 10:00:08 +01:00
realtek
renesas net: renesas: sh_eth: Fix freeing wrong tx descriptor 2021-09-07 14:02:02 +01:00
rocker
samsung
seeq
sfc Networking fixes for 5.15-rc2, including fixes from bpf. 2021-09-16 13:05:42 -07:00
sgi
silan
sis
smsc drivers: net: smc911x: clean up inconsistent indenting 2021-09-03 11:51:26 +01:00
socionext
stmicro net: stmmac: add support for dwmac 3.40a 2021-10-08 16:22:39 +01:00
sun net: sun: SUNVNET_COMMON should depend on INET 2021-09-28 13:20:21 +01:00
synopsys
tehuti
ti
toshiba
tundra
via
wiznet net: w5100: check return value after calling platform_get_resource() 2021-08-31 12:08:42 +01:00
xilinx
xircom
xscale net: ixp46x: Remove duplicate include of module.h 2021-09-01 11:40:22 +01:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig net: korina: select CRC32 2021-10-13 13:28:35 -07:00
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile