Skip to contentSkip to conversation

net/i40e: fix fail to disable FDIR Tx queue

PATCH Applied Beilei Xing 3 participants 3 messages May 15, 2018 – May 17, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix fail to disable FDIR Tx queue

If flow directory is enabled, FDIR Tx queue can't
be disabled when exiting application. Root cause
is FDIR Tx queue is not disabled before removing
HMC backing store.

Fixes 71d35259ff67 ("i40e: tear down flow director")
---
 drivers/net/i40e/i40e_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +2 -1
index 894505f..7313753 100644
@@ -2340,6 +2340,8 @@ i40e_dev_close(struct rte_eth_dev *dev)
 	i40e_pf_disable_irq0(hw);
 	rte_intr_disable(intr_handle);
 
+	i40e_fdir_teardown(pf);
+
 	/* shutdown and destroy the HMC */
 	i40e_shutdown_lan_hmc(hw);
 
@@ -2351,7 +2353,6 @@ i40e_dev_close(struct rte_eth_dev *dev)
 	pf->vmdq = NULL;
 
 	/* release all the existing VSIs and VEBs */
-	i40e_fdir_teardown(pf);
 	i40e_vsi_release(pf->main_vsi);
 
 	/* shutdown the adminq */
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines

-----Original Message-----
From: Xing, Beilei
Sent: Wednesday, May 16, 2018 12:19 AM
To: Wu, Jingjing <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: [PATCH] net/i40e: fix fail to disable FDIR Tx queue

Quoted 8 lines

If flow directory is enabled, FDIR Tx queue can't be disabled when exiting application. Root cause is FDIR Tx queue is not disabled before removing HMC backing store.

Fixes 71d35259ff67 ("i40e: tear down flow director")
Applied
#2 lore raw
Quoted 21 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhang, Qi Z
Sent: Tuesday, May 15, 2018 8:36 PM
To: Xing, Beilei; Wu, Jingjing
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix fail to disable FDIR Tx queue

Quoted 12 lines

-----Original Message-----
From: Xing, Beilei
Sent: Wednesday, May 16, 2018 12:19 AM
To: Wu, Jingjing <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: [PATCH] net/i40e: fix fail to disable FDIR Tx queue

If flow directory is enabled, FDIR Tx queue can't be disabled when exiting application. Root cause is FDIR Tx queue is not disabled before removing HMC backing store.

Quoted 6 lines
Quoted 4 lines
Fixes 71d35259ff67 ("i40e: tear down flow director")

Applied to dpdk-next-net-intel, thanks!

/Helin