[dpdk-dev] [PATCH v3 07/27] examples/bond: replace references to master lcore
Stephen Hemminger
stephen at networkplumber.org
Wed Jul 1 21:46:30 CEST 2020
Change the references to master lcore.
For now, leave refernces to slave for bonding since
that is part of the API not addressed yet.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
examples/bond/main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/bond/main.c b/examples/bond/main.c
index 8608285b686e..e415d7bc9c8c 100644
--- a/examples/bond/main.c
+++ b/examples/bond/main.c
@@ -590,7 +590,7 @@ static void cmd_start_parsed(__rte_unused void *parsed_result,
return;
}
- /* start lcore main on core != master_core - ARP response thread */
+ /* start lcore main on core != initial_core - ARP response thread */
slave_core_id = rte_get_next_lcore(rte_lcore_id(), 1, 0);
if ((slave_core_id >= RTE_MAX_LCORE) || (slave_core_id == 0))
return;
@@ -802,7 +802,7 @@ cmdline_parse_ctx_t main_ctx[] = {
NULL,
};
-/* prompt function, called from main on MASTER lcore */
+/* prompt function, called from main on initial lcore */
static void prompt(__rte_unused void *arg1)
{
struct cmdline *cl;
@@ -852,12 +852,12 @@ main(int argc, char *argv[])
rte_spinlock_init(&global_flag_stru_p->lock);
/* check state of lcores */
- RTE_LCORE_FOREACH_SLAVE(slave_core_id) {
+ RTE_LCORE_FOREACH_WORKER(slave_core_id) {
if (rte_eal_get_lcore_state(slave_core_id) != WAIT)
return -EBUSY;
}
- /* start lcore main on core != master_core - ARP response thread */
+ /* start lcore main on core != initial_core - ARP response thread */
slave_core_id = rte_get_next_lcore(rte_lcore_id(), 1, 0);
if ((slave_core_id >= RTE_MAX_LCORE) || (slave_core_id == 0))
return -EPERM;
--
2.26.2
More information about the dev
mailing list