提交 0050091c 编写于 作者: H Huazhong Tan 提交者: Xie XiuQi

net: hns3: fix reset timer error

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The reset timer should be triggerred after HCLGE_RESET_INTERVAL
seconds, otherwise it will be ignored by reset_event.

Feature or Bugfix:Bugfix
Signed-off-by: NHuahzong Tan <tanhuazhong@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 d35b423b
...@@ -3271,7 +3271,7 @@ static bool hclge_reset_err_handle(struct hclge_dev *hdev, bool is_timeout) ...@@ -3271,7 +3271,7 @@ static bool hclge_reset_err_handle(struct hclge_dev *hdev, bool is_timeout)
hclge_clear_reset_cause(hdev); hclge_clear_reset_cause(hdev);
set_bit(HNAE3_GLOBAL_RESET, &hdev->default_reset_request); set_bit(HNAE3_GLOBAL_RESET, &hdev->default_reset_request);
mod_timer(&hdev->reset_timer, mod_timer(&hdev->reset_timer,
jiffies + HCLGE_RESET_INTERVAL * HZ); jiffies + HCLGE_RESET_INTERVAL);
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册