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 BEFE9A0350; Wed, 1 Jul 2020 21:48:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B65FC1D183; Wed, 1 Jul 2020 21:47:15 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by dpdk.org (Postfix) with ESMTP id CF1EC1D151 for ; Wed, 1 Jul 2020 21:47:12 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id p1so1041265pls.4 for ; Wed, 01 Jul 2020 12:47:12 -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=VkvR/tJszlILjuUfOY6/qEntVb2eFhf5fZ8BA6J80P4=; b=MxeX36TQRtLdGQyJxlJ+O5NpwStDV1Gvsc2ekJi5wJX7YKXcONWz7yPVt0nu9vXcQa jKoYViRCcjBJ0AA5wuXSyLXEHKs5J68OW2Tmais5AT6+nKiTXKYM79wqYCNc9UMtCiYY IZzk9r8Xv55dK35vasf4YPPMAgPEg390w7/ccqaM24yR5Wvau5NFOQJlzJgQV3yqZsXi FZWXEr8pQmiUwe7gfBHdUhT9P0+/gBQmNFCRmz/7bmbaBGGqkIrkkdanfEMoelTrv8i9 JBfycHcXTgWQGR2knDNruijmeinKWcJeoVsXP5CdeWotAnPnVT3gOiEtEdolpQ/oWJxt E0og== 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=VkvR/tJszlILjuUfOY6/qEntVb2eFhf5fZ8BA6J80P4=; b=e71jicNB+1gswuEPSj2zmk2UEf/5PX/qm7BKe4ZKuWnwZdciU45++jwauOHPKileKp /ltuqiolX8sokiiIBvmb4S/YSsBmFN0rGMYyGKOa3HD6Ztuvlkd2wqMGzNgwpmjWF6kd UWyMj8bs3HnkQS+6M6YKDwU0bTjnj2ae99p5fHArexk7MVdzKGVi5Hj5tFFlp5/d/tDX beMzgJSv0vI5zFu4MRLjL16zzE1XW2LloNUfdbHrYi2GtC2i12DUwY7uyPjfIeIsUpw0 mRj8G7nMaWrSC5fUKAKK3ODraxC5MRebNJZeP1BBD4GV1LLzwATXpBcEQGVTeG+zoTlN 7vlw== X-Gm-Message-State: AOAM5302xoAvmuF+fRz/XiYoofo/Ln4tICBOIEouSVlQPRVst0ZG5f7O SIJFyElN6Ji9s0cvY24Zra0K0tjZydY= X-Google-Smtp-Source: ABdhPJzMHUXC9XPdySuk4RX7TdVstXNPBIfJKjbZPNeN541W3J/I0s2CNoyx7aKsGmw1DUkn7RQ14g== X-Received: by 2002:a17:90a:e60b:: with SMTP id j11mr30353483pjy.189.1593632831619; Wed, 01 Jul 2020 12:47:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:32 -0700 Message-Id: <20200701194650.10705-10-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 09/27] examples/ip_pipeline: replace references to master_lcore 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" Use initial lcore instead of primary lcore Signed-off-by: Stephen Hemminger --- examples/ip_pipeline/main.c | 2 +- examples/ip_pipeline/thread.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/ip_pipeline/main.c b/examples/ip_pipeline/main.c index 97d1e91c2b4b..060c6311ddc6 100644 --- a/examples/ip_pipeline/main.c +++ b/examples/ip_pipeline/main.c @@ -250,7 +250,7 @@ main(int argc, char **argv) rte_eal_mp_remote_launch( thread_main, NULL, - SKIP_MASTER); + SKIP_INITIAL); /* Script */ if (app.script_name) diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c index adb83167cd84..feefdca4eba2 100644 --- a/examples/ip_pipeline/thread.c +++ b/examples/ip_pipeline/thread.c @@ -32,7 +32,7 @@ #endif /** - * Master thead: data plane thread context + * Initial thread: data plane thread context */ struct thread { struct rte_ring *msgq_req; @@ -78,7 +78,7 @@ struct thread_data { static struct thread_data thread_data[RTE_MAX_LCORE]; /** - * Master thread: data plane thread init + * Initial thread: data plane thread init */ static void thread_free(void) @@ -105,7 +105,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]; @@ -137,7 +137,7 @@ thread_init(void) return -1; } - /* Master thread records */ + /* Initial thread records */ t->msgq_req = msgq_req; t->msgq_rsp = msgq_rsp; t->enabled = 1; @@ -179,7 +179,7 @@ pipeline_is_running(struct pipeline *p) } /** - * Master thread & data plane threads: message passing + * Initial thread & data plane threads: message passing */ enum thread_req_type { THREAD_REQ_PIPELINE_ENABLE = 0, @@ -213,7 +213,7 @@ struct thread_msg_rsp { }; /** - * Master thread + * Initial thread */ static struct thread_msg_req * thread_msg_alloc(void) @@ -556,7 +556,7 @@ thread_msg_handle(struct thread_data *t) } /** - * Master thread & data plane threads: message passing + * Initial thread & data plane threads: message passing */ enum pipeline_req_type { /* Port IN */ @@ -730,7 +730,7 @@ struct pipeline_msg_rsp { }; /** - * Master thread + * Initial thread */ static struct pipeline_msg_req * pipeline_msg_alloc(void) -- 2.26.2