diff mbox series

[v6,17/18] examples/pipeline: fix master/slave usage

Message ID 20201014152756.6518-18-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series Replace terms master/slave | expand

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Stephen Hemminger Oct. 14, 2020, 3:27 p.m. UTC
Replace SKIP_MASTER with SKIP_MAIN
and FOREACH_SLAVE with FOREACH_WORKER.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 examples/pipeline/main.c   | 2 +-
 examples/pipeline/thread.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/examples/pipeline/main.c b/examples/pipeline/main.c
index 2303c9e46c78..fb57ef31fef5 100644
--- a/examples/pipeline/main.c
+++ b/examples/pipeline/main.c
@@ -166,7 +166,7 @@  main(int argc, char **argv)
 	rte_eal_mp_remote_launch(
 		thread_main,
 		NULL,
-		SKIP_MASTER);
+		SKIP_MAIN);
 
 	/* Script */
 	if (app.script_name)
diff --git a/examples/pipeline/thread.c b/examples/pipeline/thread.c
index 7ff22e97f338..6ac27e4eb45d 100644
--- a/examples/pipeline/thread.c
+++ b/examples/pipeline/thread.c
@@ -93,7 +93,7 @@  thread_init(void)
 {
 	uint32_t i;
 
-	RTE_LCORE_FOREACH_SLAVE(i) {
+	RTE_LCORE_FOREACH_WORKER(i) {
 		char name[NAME_MAX];
 		struct rte_ring *msgq_req, *msgq_rsp;
 		struct thread *t = &thread[i];