Commit 1828e308 authored by Jie Wang's avatar Jie Wang Committed by Jiantao Xiao
Browse files

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

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6SLBO


CVE: NA

----------------------------------------------------------------------

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.

Signed-off-by: default avatarJie Wang <wangjie125@huawei.com>
parent fad936ed
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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.
	 */
	if (hdev->reset_type == HNAE3_VF_FULL_RESET)
		msleep(5000);
	else
		msleep(500);

	return 0;
}