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
bus/pci: support IOVA as VA in PowerVM LPARs
[dpdk.git]
/
examples
/
ntb
/
ntb_fwd.c
diff --git
a/examples/ntb/ntb_fwd.c
b/examples/ntb/ntb_fwd.c
index
139da54
..
e9a3887
100644
(file)
--- a/
examples/ntb/ntb_fwd.c
+++ b/
examples/ntb/ntb_fwd.c
@@
-162,7
+162,7
@@
cmd_quit_parsed(__rte_unused void *parsed_result,
uint32_t lcore_id;
/* Stop transmission first. */
uint32_t lcore_id;
/* Stop transmission first. */
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
@@
-668,7
+668,7
@@
assign_stream_to_lcores(void)
uint8_t lcore_num, nb_extra;
lcore_num = rte_lcore_count();
uint8_t lcore_num, nb_extra;
lcore_num = rte_lcore_count();
- /* Exclude ma
ster
core */
+ /* Exclude ma
in
core */
lcore_num--;
nb_streams = (fwd_mode == IOFWD) ? num_queues * 2 : num_queues;
lcore_num--;
nb_streams = (fwd_mode == IOFWD) ? num_queues * 2 : num_queues;
@@
-678,7
+678,7
@@
assign_stream_to_lcores(void)
sm_id = 0;
i = 0;
sm_id = 0;
i = 0;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
conf = &fwd_lcore_conf[lcore_id];
if (i < nb_extra) {
conf = &fwd_lcore_conf[lcore_id];
if (i < nb_extra) {
@@
-697,7
+697,7
@@
assign_stream_to_lcores(void)
}
/* Print packet forwading config. */
}
/* Print packet forwading config. */
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
@@
-766,7
+766,7
@@
start_pkt_fwd(void)
assign_stream_to_lcores();
in_test = 1;
assign_stream_to_lcores();
in_test = 1;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
@@
-827,7
+827,7
@@
cmd_stop_parsed(__rte_unused void *parsed_result,
struct ntb_fwd_lcore_conf *conf;
uint32_t lcore_id;
struct ntb_fwd_lcore_conf *conf;
uint32_t lcore_id;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
conf = &fwd_lcore_conf[lcore_id];
if (!conf->nb_stream)
@@
-1075,7
+1075,7
@@
cmdline_parse_ctx_t main_ctx[] = {
NULL,
};
NULL,
};
-/* prompt function, called from main on MA
STER
lcore */
+/* prompt function, called from main on MA
IN
lcore */
static void
prompt(void)
{
static void
prompt(void)
{
@@
-1498,5
+1498,8
@@
main(int argc, char **argv)
start_pkt_fwd();
}
start_pkt_fwd();
}
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}
return 0;
}