net/hns3: fix VF query link status in dev init
authorChengwen Feng <fengchengwen@huawei.com>
Thu, 14 Jan 2021 13:33:32 +0000 (21:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:32 +0000 (03:30 +0100)
commitde63cf0d90a05edf911b2c7013d2651f5f6a92eb
tree6773df69b421e3715e95f67f602a94558f7720f0
parentc09c7847d8928258c97621cd4b56433a9019521c
net/hns3: fix VF query link status in dev init

Current hns3vf queried link status in dev init stage, but the link
status should be maintained in dev start stage, this patch fix this.

Also, in the dev start stage, we use quick query instead of delayed
query to make sure update the link status soon.

Fixes: a5475d61fa34 ("net/hns3: support VF")
Fixes: 958edf6627d5 ("net/hns3: fix VF link status")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c