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
/
qos_sched
/
main.c
diff --git
a/examples/qos_sched/main.c
b/examples/qos_sched/main.c
index
e7c97bd
..
dc6a17a
100644
(file)
--- 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
/* 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;
{
uint32_t lcore_id;
uint32_t i, mode;
@@
-55,6
+55,7
@@
app_main_loop(__attribute__((unused))void *dummy)
flow->rx_thread.rx_port = flow->rx_port;
flow->rx_thread.rx_ring = flow->rx_ring;
flow->rx_thread.rx_queue = flow->rx_queue;
flow->rx_thread.rx_port = flow->rx_port;
flow->rx_thread.rx_ring = flow->rx_ring;
flow->rx_thread.rx_queue = flow->rx_queue;
+ flow->rx_thread.sched_port = flow->sched_port;
rx_confs[rx_idx++] = &flow->rx_thread;
rx_confs[rx_idx++] = &flow->rx_thread;
@@
-203,7
+204,7
@@
main(int argc, char **argv)
return -1;
/* launch per-lcore init on every lcore */
return -1;
/* launch per-lcore init on every lcore */
- rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MA
STER
);
+ rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MA
IN
);
if (interactive) {
sleep(1);
if (interactive) {
sleep(1);
@@
-217,5
+218,8
@@
main(int argc, char **argv)
}
}
}
}
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}
return 0;
}