i40e: destroy MSI-X pool on close
authorChen Jing D(Mark) <jing.d.chen@intel.com>
Fri, 20 Jun 2014 10:24:39 +0000 (18:24 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Jun 2014 13:47:48 +0000 (15:47 +0200)
Free MSIX pool resource in function i40e_dev_close.

Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c

index a335242..7ee6a70 100644 (file)
@@ -740,6 +740,7 @@ i40e_dev_close(struct rte_eth_dev *dev)
        i40e_shutdown_adminq(hw);
 
        i40e_res_pool_destroy(&pf->qp_pool);
+       i40e_res_pool_destroy(&pf->msix_pool);
 
        /* force a PF reset to clean anything leftover */
        reg = I40E_READ_REG(hw, I40E_PFGEN_CTRL);