linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Huazhong Tan e215278548 net: hns3: fix netif_napi_del() not do problem when unloading
When the driver is unloading, if a global reset occurs,
unmap_ring_from_vector() in the hns3_nic_uninit_vector_data() will
fail, and hns3_nic_uninit_vector_data() just return. There may be
some netif_napi_del() not be done.

Since hardware will unmap all ring while resetting, so
hns3_nic_uninit_vector_data() should ignore this error, and do the
rest uninitialization.

Fixes: 76ad4f0ee7 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-30 14:50:03 -08:00
..
hns3pf net: hns3: Fix NULL deref when unloading driver 2019-01-30 14:50:03 -08:00
hns3vf net: hns3: don't allow vf to enable promisc mode 2019-01-26 09:33:31 -08:00
hclge_mbx.h net: hns3: Add "queue map" information query function 2018-12-15 10:54:18 -08:00
hnae3.c net: hns3: change hnae3_register_ae_dev() to int 2019-01-30 14:50:03 -08:00
hnae3.h net: hns3: Fix NULL deref when unloading driver 2019-01-30 14:50:03 -08:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_debugfs.c net: hns3: Add "tm map" status information query function 2018-12-15 10:54:18 -08:00
hns3_enet.c net: hns3: fix netif_napi_del() not do problem when unloading 2019-01-30 14:50:03 -08:00
hns3_enet.h net: hns3: reuse the definition of l3 and l4 header info union 2019-01-30 14:50:03 -08:00
hns3_ethtool.c net: hns3: use the correct interface to stop|open port 2019-01-30 14:50:03 -08:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00