[PATCH] net/i40evf: remove VF reset during initialization
beilei.xing at intel.com
beilei.xing at intel.com
Fri Dec 17 08:55:29 CET 2021
From: Beilei Xing <beilei.xing at intel.com>
VF reset during initialization will cause PF busy when
multiple VFs request virtual channel message from PF.
VF reset is not necessary during initialization, so
remove it.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable at dpdk.org
Signed-off-by: Beilei Xing <beilei.xing at intel.com>
---
drivers/net/i40e/i40e_ethdev_vf.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index 69cab8e739..7a8c4c2df3 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -1266,24 +1266,6 @@ i40evf_init_vf(struct rte_eth_dev *dev)
goto err;
}
- /* Reset VF and wait until it's complete */
- if (i40evf_reset_vf(dev)) {
- PMD_INIT_LOG(ERR, "reset NIC failed");
- goto err_aq;
- }
-
- /* VF reset, shutdown admin queue and initialize again */
- if (i40e_shutdown_adminq(hw) != I40E_SUCCESS) {
- PMD_INIT_LOG(ERR, "i40e_shutdown_adminq failed");
- goto err;
- }
-
- i40e_init_adminq_parameter(hw);
- if (i40e_init_adminq(hw) != I40E_SUCCESS) {
- PMD_INIT_LOG(ERR, "init_adminq failed");
- goto err;
- }
-
vf->aq_resp = rte_zmalloc("vf_aq_resp", I40E_AQ_BUF_SZ, 0);
if (!vf->aq_resp) {
PMD_INIT_LOG(ERR, "unable to allocate vf_aq_resp memory");
--
2.26.2
More information about the stable
mailing list