Commit d905c60b authored by Guojia Liao's avatar Guojia Liao Committed by Yang Yingliang
Browse files

net: hns3: do not schedule the periodical task when reset fail



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

We need to update some port info and to config some configurations to HW
in a periodical task per second, by setting registers from driver to WH.
If reset had fail, HW will not response the CMD and driver will generate
a warning print. In this case, the periodical task shouldn't schedule.
This patch fixes it.

Fixes: b6345c9bd4f6 ("net: hns3: make hclgevf_service use delayed workqueue")

Signed-off-by: default avatarGuojia Liao <liaoguojia@huawei.com>
Reviewed-by: default avatarYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 7825e182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment