From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D0605A0350; Sat, 6 Jun 2020 00:59:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CAE1F1D5D5; Sat, 6 Jun 2020 00:59:08 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id 5E2111D564 for ; Sat, 6 Jun 2020 00:59:05 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id i12so3245037pju.3 for ; Fri, 05 Jun 2020 15:59:05 -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=rng55CCiRjm5x25yZAXbNgwljoljhb93oeHnsk6DNs0=; b=hh6Hjd2RuAAC9ZB9IcKdVNIzQtNJ53FIkA9iDbfilx5Kx0zFNB39VV/SufFkkKQizR Pw5RLNaqeJgncqa1lqSQDt00y3jXXm97MALe2UirzwOvnwz0zfWGl2L7n2JhLOuMEMSM 65lt8C3bcQBTZzgC9XSohXsptysAzNJ6s7vW3KeTOYIXUlMMiO0E8MzcG7i2+Q4o9TRq Ti7DVTn+GTn2kurQfLs9xAN43LIqvQJcjp92jOjxuvakKDcqf7IOn/R434Bg2wmTrnKx NWgNtS3g5UvB3qNcx9qZfkdXA3ETUV+OYN4djh/stab+ufVcU7TWggVkVRfTPKpwQrcS uFrA== 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=rng55CCiRjm5x25yZAXbNgwljoljhb93oeHnsk6DNs0=; b=uhlB0ssdluQfGcHA0o+lV0f9OVDIH2WAJ5y5KyBZoQ7nJuNDTB0QGmh0GaxChPlLNO 8UplpdKzB2HoY1zp0tU2pWCQVqZVPA1yxGWAKB6fRSOxnBGCWwsKO1ewd6uQPruTXcAc h/5yEM/pZD7wUcua5WDD4oshf8mECUzmiZVunmGQWkVWp9Ip3QYjzsjeRRBZ30E05yA4 40lGsbVVJ2L0rXYN+7ySeHkcd7yEjZuLvVniXKcMREuxrx9FAF0xZeuOx3c6zlfCWdn2 gqlfjrdDIbaG1RevVSUrKp3JH8VvFTmZ4Tf3dm+0FVKWe7ZxTeo7MjmdcvAREG5akFs1 aldQ== X-Gm-Message-State: AOAM5322J762tcSLyp8qbUojbK0RhEnuE6U4TfPQpHXkruWAHB/ob5NH OZ2ucxOg0qgU6GXX0DuIRoYF6Ci2y6o= X-Google-Smtp-Source: ABdhPJxEJ4WHnaW0IvqQLk12IwEPVb4cmrGF2wCuphZsSYf1Wr1h8xqgsC7qBqylIJcNy1Bmzy13wA== X-Received: by 2002:a17:90a:43c7:: with SMTP id r65mr5199939pjg.76.1591397943950; Fri, 05 Jun 2020 15:59:03 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j186sm543121pfb.220.2020.06.05.15.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:59:03 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:57:51 -0700 Message-Id: <20200605225811.26342-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605225811.26342-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200605225811.26342-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v2 06/26] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Conform to new API Signed-off-by: Stephen Hemminger --- 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