As well as this is correct thing to close devices before exit, it is
also useful to test the closing devices from secondary process.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
if (enable_iter_mempool)
iter_mempool(mempool_iter_name);
if (enable_iter_mempool)
iter_mempool(mempool_iter_name);
+ RTE_ETH_FOREACH_DEV(i)
+ rte_eth_dev_close(i);
+
ret = rte_eal_cleanup();
if (ret)
printf("Error from rte_eal_cleanup(), %d\n", ret);
ret = rte_eal_cleanup();
if (ret)
printf("Error from rte_eal_cleanup(), %d\n", ret);