]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipv4_multicast/main.c
net/mlx5: fix meter flow direction check
[dpdk.git] / examples / ipv4_multicast / main.c
index a51b58412cfc68b59bf5eaf325db71dca9a62c2e..fd6207a18b799959a4449be5bf99401e5f8eb757 100644 (file)
@@ -799,11 +799,14 @@ main(int argc, char **argv)
                rte_exit(EXIT_FAILURE, "Cannot build the multicast hash\n");
 
        /* launch per-lcore init on every lcore */
-       rte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);
-       RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+       rte_eal_mp_remote_launch(main_loop, NULL, CALL_MAIN);
+       RTE_LCORE_FOREACH_WORKER(lcore_id) {
                if (rte_eal_wait_lcore(lcore_id) < 0)
                        return -1;
        }
 
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        return 0;
 }