net/i40e: fix fail to disable FDIR Tx queue
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.
--- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +2 -1
@@ -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
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")Signed-off-by Beilei Xing <[email protected]>
Zhang, Helin
AppliedQuoted 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 queueQuoted 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 queueIf 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")Signed-off-by Beilei Xing <[email protected]>Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel, thanks!
/Helin