git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/virtio: fix kernel set features for multi-queue device
[dpdk.git]
/
examples
/
helloworld
/
main.c
diff --git
a/examples/helloworld/main.c
b/examples/helloworld/main.c
index
c922cfb
..
ac72145
100644
(file)
--- a/
examples/helloworld/main.c
+++ b/
examples/helloworld/main.c
@@
-16,7
+16,7
@@
#include <rte_debug.h>
static int
#include <rte_debug.h>
static int
-lcore_hello(__
attribute__((unused))
void *arg)
+lcore_hello(__
rte_unused
void *arg)
{
unsigned lcore_id;
lcore_id = rte_lcore_id();
{
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");
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);
}
rte_eal_remote_launch(lcore_hello, NULL, lcore_id);
}
- /* call it on ma
ster
lcore too */
+ /* call it on ma
in
lcore too */
lcore_hello(NULL);
rte_eal_mp_wait_lcore();
lcore_hello(NULL);
rte_eal_mp_wait_lcore();
+
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}
return 0;
}