[v7,17/20] examples/pipeline: fix master/slave usage
diff mbox series

Message ID 20201015225736.12167-18-stephen@networkplumber.org
State Accepted, archived
Delegated to: Thomas Monjalon
Headers show
Series
  • Replace terms master/slave
Related show

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Stephen Hemminger Oct. 15, 2020, 10:57 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(-)

Patch
diff mbox series

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];