X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_meter%2Fmain.c;h=6e724f37835ac0236a4e17f2c243545719121559;hb=dac12650eb1a5f9cb89f0da8355c6ce002f1e88d;hp=ce87b2eca262e7aa50d7707b556cbd5e22de13d4;hpb=ce6b8c31548b4d71a986d9807cd06cf3a616d1ab;p=dpdk.git diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c index ce87b2eca2..6e724f3783 100644 --- a/examples/qos_meter/main.c +++ b/examples/qos_meter/main.c @@ -454,11 +454,14 @@ main(int argc, char **argv) rte_exit(EXIT_FAILURE, "Invalid configure flow table\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; }