From: Beilei Xing Date: Tue, 15 May 2018 16:19:05 +0000 (+0800) Subject: net/i40e: fix failing to disable FDIR Tx queue X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ba2e8c6f29346245c0e1ff23f84fd10e076a9bbc;p=dpdk.git net/i40e: fix failing to disable FDIR Tx queue If flow director 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") Cc: stable@dpdk.org Signed-off-by: Beilei Xing Acked-by: Qi Zhang --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 014bfce802..7d4f1c9da8 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2369,6 +2369,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); @@ -2380,7 +2382,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 */