From patchwork Wed Oct 14 15:27:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 80773 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 B3772A04B7; Wed, 14 Oct 2020 17:35:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 399001E48D; Wed, 14 Oct 2020 17:28:37 +0200 (CEST) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id 3C1C61DEF7 for ; Wed, 14 Oct 2020 17:28:27 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id h4so14758pjk.0 for ; Wed, 14 Oct 2020 08:28:27 -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=joc2wT+goL2xZrQkv2AC1HpfR7VCJX5lCymELiVWwsw=; b=EYXcVIdzTXZDj7S+NV7fV9kHoGlWSGHj2jOW/LSonf6C5nyCpEVbDRJlUybdstU75/ 58Duo9svlH7GX5E1SciFYkOszS8KXUKg62jvWOutvMdPA/ZaonGsuN76x9e4H+Rb3BCV m33P3C1Dq/i+AbBEx71+cYdTvVow2nLYcDD1GQ8iY8IBFE7qXzx6giafbvgh+RiYF5m2 mZbaKqEb2m5MWc1fvlRkLBPHdzxcg3D8SqxQqu8Xi1dz7DGvy9LXW3/GpMB6lLkL2QJY VDjGAQxtD0UrcfK0TZRNGD+DU1+kEHAMgQDJmiIMMQm17BiaPFHf5S1bfP4Ac+nFYpi7 T37g== 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=joc2wT+goL2xZrQkv2AC1HpfR7VCJX5lCymELiVWwsw=; b=QcwHknq2tIW1BToEqQUoWMbR1pHYwHYoCyECPJ73T0osZBabe7tbR7BYPW+81aYTUL s4ykyFeMVqYxIOQEviL4j5TXiq3SoVMY7R3jI2+e1ybfxqbbNJcid2+mJXjMA0rzJKpL RX6+eUhULpn/18vQpCCYuVMiGZvXkSzqedHAGS/9qoIH2cew/ywvXH6ABFsSskYJAKPk 2PNX+fkjpLtKfsNv7IW8eFut5RWC50g9d3smCN0LMzQt0WyWkN715l11RojyKwneM+Vq 0mG5+FTDTQ3HBdKRLH1r0Ro/CzW1mFVwaUruu//VOQS2ZYyzrm4BMGojkpjpIGwWC7dY L8ZA== X-Gm-Message-State: AOAM532xmi2k5TK+QyxTpQqEDg3eIaOFauemQxlGm898pQ5NJSqZHWRj dJHpjv5GeQPmB2jY4xJMSv8/3G18iVGYpQ== X-Google-Smtp-Source: ABdhPJw/r9ASfNeBjxNgcSVkvXNwQikrmnOj2J4iRnfGSz20hj+HuXSHT6K00ttnIMKuQ8IAWbJHUg== X-Received: by 2002:a17:902:a514:b029:d5:b93c:3de1 with SMTP id s20-20020a170902a514b02900d5b93c3de1mr14903plq.42.1602689305038; Wed, 14 Oct 2020 08:28:25 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j11sm3653457pfh.143.2020.10.14.08.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:28:24 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 14 Oct 2020 08:27:55 -0700 Message-Id: <20201014152756.6518-18-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201014152756.6518-1-stephen@networkplumber.org> References: <20200911190701.29171-1-stephen@networkplumber.org> <20201014152756.6518-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v6 17/18] examples/pipeline: fix master/slave usage 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" Replace SKIP_MASTER with SKIP_MAIN and FOREACH_SLAVE with FOREACH_WORKER. Signed-off-by: Stephen Hemminger --- examples/pipeline/main.c | 2 +- examples/pipeline/thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];