net/hns3: increase time waiting for PF reset completion
authorHuisong Li <lihuisong@huawei.com>
Wed, 2 Mar 2022 00:35:01 +0000 (08:35 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 Mar 2022 11:38:52 +0000 (12:38 +0100)
commitd6a9f8fb26b8d6adaac20d6a303faa5c5ba4d5bc
tree181c2432554d424ec3b21c1b31a55824febed3bc
parent87f9628e2c786dff500139baf59720693e46b0bc
net/hns3: increase time waiting for PF reset completion

On the case that PF and VF need to be reset, after the hardware reset is
complete, VF needs wait for 1 second to restore the configuration so
that VF does not fail to recover because PF reset isn't complete. But
the estimated time is not sufficient. This patch fixes it to 5 seconds.

Fixes: 2790c6464725 ("net/hns3: support device reset")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c