未验证 提交 3e9b0506 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!557 net: hns3: modify reset delay time to avoid configuration timeout

Merge Pull Request from: @svishen 
 
Currently the vf function reset needs to delay 5000ms for stack recovery.
This is too long for product configurations and cause configuration failures. According to the tests, 500ms delay is enough for reset process except PF FLR. So this patch adapts this delay in these scenarios.

issue:
https://gitee.com/openeuler/kernel/issues/I6SLBO 
 
Link:https://gitee.com/openeuler/kernel/pulls/557 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
......@@ -1504,7 +1504,10 @@ static int hclgevf_reset_wait(struct hclgevf_dev *hdev)
* might happen in case reset assertion was made by PF. Yes, this also
* means we might end up waiting bit more even for VF reset.
*/
msleep(5000);
if (hdev->reset_type == HNAE3_VF_FULL_RESET)
msleep(5000);
else
msleep(500);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册