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/mlx5: fix meter flow direction check
[dpdk.git]
/
examples
/
kni
/
main.c
diff --git
a/examples/kni/main.c
b/examples/kni/main.c
index
ac6309e
..
beabb3c
100644
(file)
--- a/
examples/kni/main.c
+++ b/
examples/kni/main.c
@@
-967,7
+967,7
@@
kni_alloc(uint16_t port_id)
conf.mbuf_size = MAX_PACKET_SZ;
/*
* The first KNI device associated to a port
conf.mbuf_size = MAX_PACKET_SZ;
/*
* The first KNI device associated to a port
- * is the ma
ster
, for multiple kernel thread
+ * is the ma
in
, for multiple kernel thread
* environment.
*/
if (i == 0) {
* environment.
*/
if (i == 0) {
@@
-1120,8
+1120,8
@@
main(int argc, char** argv)
"Could not create link status thread!\n");
/* Launch per-lcore function on every lcore */
"Could not create link status thread!\n");
/* Launch per-lcore function on every lcore */
- rte_eal_mp_remote_launch(main_loop, NULL, CALL_MA
STER
);
- RTE_LCORE_FOREACH_
SLAVE
(i) {
+ rte_eal_mp_remote_launch(main_loop, NULL, CALL_MA
IN
);
+ RTE_LCORE_FOREACH_
WORKER
(i) {
if (rte_eal_wait_lcore(i) < 0)
return -1;
}
if (rte_eal_wait_lcore(i) < 0)
return -1;
}
@@
-1140,5
+1140,8
@@
main(int argc, char** argv)
kni_port_params_array[i] = NULL;
}
kni_port_params_array[i] = NULL;
}
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}
return 0;
}