Use initial lcore instead.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
.../multi_process/client_server_mp/mp_server/main.c | 10 +++++-----
examples/multi_process/simple_mp/main.c | 6 +++---
examples/multi_process/symmetric_mp/main.c | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
@@ -84,7 +84,7 @@ get_printable_mac_addr(uint16_t port)
/*
* This function displays the recorded statistics for each port
* and for each client. It uses ANSI terminal codes to clear
- * screen when called. It is called from a single non-master
+ * screen when called. It is called from a single worker
* thread in the server process, when the process is run with more
* than one lcore enabled.
*/
@@ -146,7 +146,7 @@ do_stats_display(void)
}
/*
- * The function called from each non-master lcore used by the process.
+ * The function called from each worker lcore used by the process.
* The test_and_set function is used to randomly pick a single lcore on which
* the code to display the statistics will run. Otherwise, the code just
* repeatedly sleeps.
@@ -244,7 +244,7 @@ process_packets(uint32_t port_num __rte_unused,
}
/*
- * Function called by the master lcore of the DPDK process.
+ * Function called by the initial lcore of the DPDK process.
*/
static void
do_packet_forwarding(void)
@@ -297,8 +297,8 @@ main(int argc, char *argv[])
/* clear statistics */
clear_stats();
- /* put all other cores to sleep bar master */
- rte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MASTER);
+ /* put all other cores to sleep execpt initial core */
+ rte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_INITIAL);
do_packet_forwarding();
return 0;
@@ -108,12 +108,12 @@ main(int argc, char **argv)
RTE_LOG(INFO, APP, "Finished Process Init.\n");
- /* call lcore_recv() on every slave lcore */
- RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+ /* call lcore_recv() on every worker lcore */
+ RTE_LCORE_FOREACH_WORKER(lcore_id) {
rte_eal_remote_launch(lcore_recv, NULL, lcore_id);
}
- /* call cmd prompt on master lcore */
+ /* call cmd prompt on initial lcore */
struct cmdline *cl = cmdline_stdin_new(simple_mp_ctx, "\nsimple_mp > ");
if (cl == NULL)
rte_exit(EXIT_FAILURE, "Cannot create cmdline instance\n");
@@ -473,7 +473,7 @@ main(int argc, char **argv)
RTE_LOG(INFO, APP, "Finished Process Init.\n");
- rte_eal_mp_remote_launch(lcore_main, NULL, CALL_MASTER);
+ rte_eal_mp_remote_launch(lcore_main, NULL, CALL_INITIAL);
return 0;
}