]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: fix reset delay time to avoid configuration timeout
authorJie Wang <wangjie125@huawei.com>
Fri, 12 May 2023 10:00:13 +0000 (18:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 16:12:23 +0000 (17:12 +0100)
commit814d0c786068e858d889ada3153bff82f64223ad
tree45082a35ceee5fb8f316dcc85937f46e295a42da
parentf14db07064727dd3bc0906c77a6d2759c1bbb395
net: hns3: fix reset delay time to avoid configuration timeout

Currently the hns3 vf function reset delays 5000ms before vf rebuild
process. In product applications, this delay is too long for application
configurations and causes configuration timeout.

According to the tests, 500ms delay is enough for reset process except PF
FLR. So this patch modifies delay to 500ms in these scenarios.

Fixes: 6988eb2a9b77 ("net: hns3: Add support to reset the enet/ring mgmt layer")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c