summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2019-05-28 12:03:00 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-29 03:39:01 +0300
commitacfc3d55b7326ff280f1aa64b6d93755619071b3 (patch)
tree1fa22777f25380e7ee2deb016f9b3bd83fa238fe /drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
parentada13ee3db7b8959d7df81265a2633f987a0a13c (diff)
downloadlinux-acfc3d55b7326ff280f1aa64b6d93755619071b3.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.c')
0 files changed, 0 insertions, 0 deletions