From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 0207DA0350;
	Wed,  1 Jul 2020 21:47:58 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id A87031C2F5;
	Wed,  1 Jul 2020 21:47:11 +0200 (CEST)
Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com
 [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id E1D141C23C
 for <dev@dpdk.org>; Wed,  1 Jul 2020 21:47:08 +0200 (CEST)
Received: by mail-pg1-f193.google.com with SMTP id m22so1845497pgv.9
 for <dev@dpdk.org>; Wed, 01 Jul 2020 12:47:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=kRm49XF4hKFzTEWrX3nDjLnv6Y4r2/DEQTOyn8KygpE=;
 b=BBJUDO2+WtLUVJbywXm4knxWQQp47w7LM9hF+Q5PZOb598yFX5Wz79uFsS6MuEiX9m
 fv3d51/WQAPqjU0Z4Zq7oHFHMvC23GpsA4A5d/vgdHLayc5stU+Gj/z2qaqlwsTUER1a
 3vjtD+ebe8YidxQj24Dy5Qo5COFz6zZcvOWCNITQC0AtP1tBFgiflv2zOB3vGfCCRyJK
 Et/XXJINkXMg+Mxo1f+sUJphC+TMad/QspoKOJOZ+NsCRvB17RwK9psjYFEREn0k5W6J
 oLpoi5SRCxYtWfOwNe7l+oS/7HqGOY6BrDqGlT2b1WIJ8ijhFEIeQekyTUV4FxFtiaK2
 w9ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=kRm49XF4hKFzTEWrX3nDjLnv6Y4r2/DEQTOyn8KygpE=;
 b=D06BEJPniJE5KGm6fNAHFtxXhGe7kYpJQUpUHSsTrcUc98Fa/EN1RfIcsFo2TeaJjE
 gQ5cS2vrE34U/DLMoiZ6xpRipTQlwvfyLleGvuJ9kLzdXqgJiqUrko1w+TD3GNdzVhaC
 6Td4gz5dYa5bt7hoEGrycvd3yJWVsuYTeUt8u6qt1d6xzvka25rLLU8Nij6YIzz2J669
 ++jS1VKPHz0eNLFe/fh75cQoI3ifzvI2QCTrd8mU2KIXLPFioig6BKDgYEAM4ZXUmjNY
 zSvh46XINCJz4H7cGppDyKGjKnBWLgJJueDVFir5B0S/tRX8UHNITTXH8JfBAqv/L5fN
 TfYQ==
X-Gm-Message-State: AOAM532/XNHwGaBNlohKGcN81USnpizqzWL+5n6fKA0kbWz2W+gKN2Za
 TQrfgOxjtcGL5UOq5DBWGheTKD23dAo=
X-Google-Smtp-Source: ABdhPJx+TCm3lUlXyBawA5Tnxn2Aupw8arYicHjezNsUXosdhmiWi+zENAC5O8AiJJ4B8l8DwhzMcg==
X-Received: by 2002:a65:64c5:: with SMTP id t5mr16411172pgv.28.1593632827731; 
 Wed, 01 Jul 2020 12:47:07 -0700 (PDT)
Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com.
 [204.195.22.127])
 by smtp.gmail.com with ESMTPSA id n14sm6501870pgd.78.2020.07.01.12.47.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 01 Jul 2020 12:47:06 -0700 (PDT)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Date: Wed,  1 Jul 2020 12:46:29 -0700
Message-Id: <20200701194650.10705-7-stephen@networkplumber.org>
X-Mailer: git-send-email 2.26.2
In-Reply-To: <20200701194650.10705-1-stephen@networkplumber.org>
References: <20200604210200.25405-1-stephen@networkplumber.org>
 <20200701194650.10705-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v3 06/27] examples/distrutor: rename master to
	initial
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Conform to new API

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 examples/distributor/main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/distributor/main.c b/examples/distributor/main.c
index 567c5e98919d..d3906bede6fc 100644
--- a/examples/distributor/main.c
+++ b/examples/distributor/main.c
@@ -612,7 +612,7 @@ static int
 init_power_library(void)
 {
 	int ret = 0, lcore_id;
-	RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+	RTE_LCORE_FOREACH_WORKER(lcore_id) {
 		/* init power management library */
 		ret = rte_power_init(lcore_id);
 		if (ret) {
@@ -808,7 +808,7 @@ main(int argc, char *argv[])
 		 * available, the higher frequency cores will go to the
 		 * distributor first, then rx, then tx.
 		 */
-		RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+		RTE_LCORE_FOREACH_WORKER(lcore_id) {
 
 			rte_power_get_capabilities(lcore_id, &lcore_cap);
 
@@ -841,7 +841,7 @@ main(int argc, char *argv[])
 	 * after the high performing core assignment above, pre-assign
 	 * them here.
 	 */
-	RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+	RTE_LCORE_FOREACH_WORKER(lcore_id) {
 		if (lcore_id == (unsigned int)distr_core_id ||
 				lcore_id == (unsigned int)rx_core_id ||
 				lcore_id == (unsigned int)tx_core_id)
@@ -872,7 +872,7 @@ main(int argc, char *argv[])
 	 * Kick off all the worker threads first, avoiding the pre-assigned
 	 * lcore_ids for tx, rx and distributor workloads.
 	 */
-	RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+	RTE_LCORE_FOREACH_WORKER(lcore_id) {
 		if (lcore_id == (unsigned int)distr_core_id ||
 				lcore_id == (unsigned int)rx_core_id ||
 				lcore_id == (unsigned int)tx_core_id)
@@ -925,7 +925,7 @@ main(int argc, char *argv[])
 		usleep(1000);
 	}
 
-	RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+	RTE_LCORE_FOREACH_WORKER(lcore_id) {
 		if (rte_eal_wait_lcore(lcore_id) < 0)
 			return -1;
 	}
-- 
2.26.2