From patchwork Wed Jul 1 20:23:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 72671 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 87C36A0350; Wed, 1 Jul 2020 22:25:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC87A1D591; Wed, 1 Jul 2020 22:24:19 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id E534B1D575 for ; Wed, 1 Jul 2020 22:24:16 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id u185so9440969pfu.1 for ; Wed, 01 Jul 2020 13:24:16 -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=i2Y1eGnzGbp5WvLzPBHCA3NT/aXol25BPRo3npL6CAWEwWa4KO4yHp8LE8NQHax/Ft 42gCUwkDWCz6bnPsvLvA5dxUuEiMm9pCrEFYsjsP4YCzN4t18DgJlaH9ac5q9g5Ihg0O MXOqftlk2zBgGXuEL4eB+kHDVOIDEgeqUgv3Wq4izQtlkOQ3SgPL1PhrpgQv5b7RQNXO pZB69gtaF83mJXg6bNhVwgRfVCECy8YMd/VEhUqSaU1x4R8dig2ErSbmUBmYH2e0hJjs f3RJOYpFjAUQHoEp9A5CDGduu3rzjeBcq8L8Hf13FC4iCcB2qz3xAIE9QjnTPCGBE+m1 BhOQ== 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=aJyMUWvfvfMUacK5fArLQfZSIK2Kz3FwdXDJZnX3COiEi4EIkKoB2be/Hymv1UU4FL e6jzWIE+y5g70UETYdKL+0dCPunSU9BCFch+ZQi3+HdBDCT3d1+9P1a6zctVNFIVltw7 ab01vtxB2y8SZq4Anmt3Qanyh9Oj2sjVlp2vPaUTBZWUdbs7/x5Z7YnKSdS1G/bU1HAH Cv2Htt3cdidXizPTbY+sVbpRJPj6Ef/OLt3OUVUfn2uaK8QQZb870EHvR0IK/tkO2zdE Tok2OIl+DqwLlNjEb0sclFnYKv10xiR5fxh0jTewA5x8z44sLt7p39KdsfQQGPpiUPGc 9jmA== X-Gm-Message-State: AOAM5314yM8g+3h9zg8BRHS4/aow2R7Wiycg/TG5+puQZgNYS+8irVDJ PR5fJiJeTeSKv1wn0bW4EU19hnio8Aw= X-Google-Smtp-Source: ABdhPJw08EJ9fR0BtJKIcP4ZR7ZfguTF4M73NaJJ9efLfjqs8XZD162p71jrlgONsh33ckLIhGS3Fg== X-Received: by 2002:a62:888f:: with SMTP id l137mr24619023pfd.151.1593635055704; Wed, 01 Jul 2020 13:24:15 -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 g8sm6584803pgr.70.2020.07.01.13.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:24:14 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 13:23:38 -0700 Message-Id: <20200701202359.17006-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701202359.17006-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200701202359.17006-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v4 06/27] examples/distributor: 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 Reviewed-by: Anatoly Burakov --- 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; }