net: hns3: skip periodic service task if reset failed
authorGuangbin Huang <huangguangbin2@huawei.com>
Tue, 8 Sep 2020 02:59:49 +0000 (10:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 02:51:40 +0000 (19:51 -0700)
commite639436339318799a45a87bcefffd66d122f4893
tree60788fa0b18b7a8b6ca0f4c1345c40c4e2e0c429
parentd41884eecdbdd99a97018a0dbbd310a651ad197b
net: hns3: skip periodic service task if reset failed

When reset fails, if there are some pending jobs for the periodic
service task, it does not do anything except print error each
time the task is scheduled. So skip the periodic service task if
reset failed.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c