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:
Guojia Liao <liaoguojia@huawei.com>
Reviewed-by:
Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by:
Zhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment