net/hns3: fix VF alive notification after config restore
authorHongbo Zheng <zhenghongbo3@huawei.com>
Fri, 7 May 2021 09:08:17 +0000 (17:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 16:28:43 +0000 (18:28 +0200)
commit9c552087dc81d95a0bdbfef1be796a0c9656acee
treef8650ba9052cefda01ed2d25547aa972e4a6e6b1
parent7d01f89fa6a149157f77ef11a2b5ebec890d7db8
net/hns3: fix VF alive notification after config restore

Currently in the VF reset scenario, the VF performs the set
alive operation before restoring the configuration completed,
which may cause the hardware to work in an abnormal state.

This patch fix this problem by set VF alive after restoring
the configuration is completed.

Fixes: a5475d61fa34 ("net/hns3: support VF")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c