net/cxgbe: release port resources during port close
[dpdk.git] / drivers / net / cxgbe / cxgbevf_main.c
index 66fb923..9fe0ec6 100644 (file)
@@ -261,6 +261,8 @@ allocate_mac:
                        goto out_free;
                }
 
+               pi->eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;
+
                if (i > 0) {
                        /* First port will be notified by upper layer */
                        rte_eth_dev_probing_finish(eth_dev);