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
/
distributor
/
main.c
diff --git
a/examples/distributor/main.c
b/examples/distributor/main.c
index
dca48c2
..
1b10296
100644
(file)
--- a/
examples/distributor/main.c
+++ b/
examples/distributor/main.c
@@
-612,7
+612,7
@@
static int
init_power_library(void)
{
int ret = 0, lcore_id;
init_power_library(void)
{
int ret = 0, lcore_id;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
/* init power management library */
ret = rte_power_init(lcore_id);
if (ret) {
/* init power management library */
ret = rte_power_init(lcore_id);
if (ret) {
@@
-805,7
+805,7
@@
main(int argc, char *argv[])
* available, the higher frequency cores will go to the
* distributor first, then rx, then tx.
*/
* available, the higher frequency cores will go to the
* distributor first, then rx, then tx.
*/
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
rte_power_get_capabilities(lcore_id, &lcore_cap);
rte_power_get_capabilities(lcore_id, &lcore_cap);
@@
-838,7
+838,7
@@
main(int argc, char *argv[])
* after the high performing core assignment above, pre-assign
* them here.
*/
* after the high performing core assignment above, pre-assign
* them here.
*/
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (lcore_id == (unsigned int)distr_core_id ||
lcore_id == (unsigned int)rx_core_id ||
lcore_id == (unsigned int)tx_core_id)
if (lcore_id == (unsigned int)distr_core_id ||
lcore_id == (unsigned int)rx_core_id ||
lcore_id == (unsigned int)tx_core_id)
@@
-869,7
+869,7
@@
main(int argc, char *argv[])
* Kick off all the worker threads first, avoiding the pre-assigned
* lcore_ids for tx, rx and distributor workloads.
*/
* Kick off all the worker threads first, avoiding the pre-assigned
* lcore_ids for tx, rx and distributor workloads.
*/
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (lcore_id == (unsigned int)distr_core_id ||
lcore_id == (unsigned int)rx_core_id ||
lcore_id == (unsigned int)tx_core_id)
if (lcore_id == (unsigned int)distr_core_id ||
lcore_id == (unsigned int)rx_core_id ||
lcore_id == (unsigned int)tx_core_id)
@@
-922,7
+922,7
@@
main(int argc, char *argv[])
usleep(1000);
}
usleep(1000);
}
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (rte_eal_wait_lcore(lcore_id) < 0)
return -1;
}
if (rte_eal_wait_lcore(lcore_id) < 0)
return -1;
}
@@
-932,5
+932,8
@@
main(int argc, char *argv[])
rte_free(pd);
rte_free(pr);
rte_free(pd);
rte_free(pr);
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}
return 0;
}