net/mlx5: fix meter flow direction check
[dpdk.git] / examples / ipv4_multicast / main.c
index a51b584..fd6207a 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;
 }