X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2Fmain.c;h=dc6a17a6464ae716d0d3ae3396e23edd36f26a3d;hb=cc7f74948817d11b0fd5bdc1b82a936daf23282f;hp=c0ed16b68f8673ba9e653398c9c758f41e7cbbf9;hpb=5d3f72100904b5a2fc6b240e1cc10f1c2dd02267;p=dpdk.git diff --git a/examples/qos_sched/main.c b/examples/qos_sched/main.c index c0ed16b68f..dc6a17a646 100644 --- a/examples/qos_sched/main.c +++ b/examples/qos_sched/main.c @@ -29,7 +29,7 @@ uint32_t qavg_ntimes = APP_QAVG_NTIMES; /* main processing loop */ static int -app_main_loop(__attribute__((unused))void *dummy) +app_main_loop(__rte_unused void *dummy) { uint32_t lcore_id; uint32_t i, mode; @@ -204,7 +204,7 @@ main(int argc, char **argv) return -1; /* launch per-lcore init on every lcore */ - rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MASTER); + rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MAIN); if (interactive) { sleep(1); @@ -218,5 +218,8 @@ main(int argc, char **argv) } } + /* clean up the EAL */ + rte_eal_cleanup(); + return 0; }