linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3vf
Huazhong Tan acfc3d55b7 net: hns3: stop schedule reset service while unloading driver
When unloading driver, the reset task should not be scheduled
anymore. If disable IRQ before cancel ongoing reset task,
the IRQ may be re-enabled by the reset task.

This patch uses HCLGE_STATE_REMOVING/HCLGEVF_STATE_REMOVING
flag to indicate that the driver is unloading, and we should
stop new coming reset service to be scheduled, otherwise,
reset service will access some resource which has been freed
by unloading.

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-05-28 17:39:01 -07:00
..
hclgevf_cmd.c net: hns3: add handshake with hardware while doing reset 2019-05-28 17:39:01 -07:00
hclgevf_cmd.h net: hns3: Enable HW GRO for Rev B(=0x21) HNS3 hardware 2018-11-15 09:44:46 -08:00
hclgevf_main.c net: hns3: stop schedule reset service while unloading driver 2019-05-28 17:39:01 -07:00
hclgevf_main.h net: hns3: stop schedule reset service while unloading driver 2019-05-28 17:39:01 -07:00
hclgevf_mbx.c net: hns3: use a reserved byte to identify need_resp flag 2019-04-26 12:13:28 -04:00
Makefile net: hns3: fix compile error 2019-03-27 22:47:58 -07:00