* [PATCH] net/i40evf: remove VF reset during initialization
@ 2021-12-17 7:55 beilei.xing
0 siblings, 0 replies; only message in thread
From: beilei.xing @ 2021-12-17 7:55 UTC (permalink / raw)
To: jingjing.wu
Cc: stable, Padraig.J.Connolly, dhanya.r.pillai, liang-min.wang, Beilei Xing
From: Beilei Xing <beilei.xing@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@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-17 8:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 7:55 [PATCH] net/i40evf: remove VF reset during initialization beilei.xing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).