X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fhelloworld%2Fmain.c;h=ac72145c736732cb2c2258deb6c529810ad65216;hb=cf412ff7e978cacbb4228fb74248f16563c74861;hp=c922cfbad7f81340a9b4589ee0dcab52819e3a2e;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/helloworld/main.c b/examples/helloworld/main.c index c922cfbad7..ac72145c73 100644 --- a/examples/helloworld/main.c +++ b/examples/helloworld/main.c @@ -16,7 +16,7 @@ #include static int -lcore_hello(__attribute__((unused)) void *arg) +lcore_hello(__rte_unused void *arg) { unsigned lcore_id; lcore_id = rte_lcore_id(); @@ -34,14 +34,18 @@ main(int argc, char **argv) if (ret < 0) rte_panic("Cannot init EAL\n"); - /* call lcore_hello() on every slave lcore */ - RTE_LCORE_FOREACH_SLAVE(lcore_id) { + /* call lcore_hello() on every worker lcore */ + RTE_LCORE_FOREACH_WORKER(lcore_id) { rte_eal_remote_launch(lcore_hello, NULL, lcore_id); } - /* call it on master lcore too */ + /* call it on main lcore too */ lcore_hello(NULL); rte_eal_mp_wait_lcore(); + + /* clean up the EAL */ + rte_eal_cleanup(); + return 0; }