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 7DB26A04B7; Wed, 14 Oct 2020 17:34:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A53B1E31A; Wed, 14 Oct 2020 17:28:35 +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 E82B31DEB4 for ; Wed, 14 Oct 2020 17:28:24 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id b26so3034pff.3 for ; Wed, 14 Oct 2020 08:28:24 -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=p7tqLTLHY/bSkFa/kfcqZutFbu9VWjsg0fUS0dfsVKo=; b=f+YnfacBT/1dtF1tcOGeAbWOHaHgJxUVSNEdOrxqInvJokdzf1jha8unCT7jRx83BV B5NWcQter0GEFOvgfzMtnhOSjlzlgBb/EWIhBBD+1dJrvOf4RkV6AT0kVEdZ5XIEKEjy DWOzhAm/QORVxph7JbzJS6mnDdmoUDKmsVwzKWwKCDKtB05+QsPm3HyvP6TTUZyel0O/ UfQheZEfaCJAFmde1oVc8RdCUCD6PAmFt41T94R0klDXFePSDb/kUykZ16xdOWfeoWn+ LyNcD9zR89/siXYFtB4wfHEzclXwUO8IzY2FVAPgHdJkTBqqO84gqBUuNAHPu0nFF3zU QXJA== 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=p7tqLTLHY/bSkFa/kfcqZutFbu9VWjsg0fUS0dfsVKo=; b=o2vkEvhzypEJ922aJn71t6KEtAVP7peyDZMc6XABuk3uRhrvQww+eYYb+osombRR9R Gi7OMMI4fBFk2HAKDN6jxdV8J3dz6RRL5winIVfuSrB568QhwqLmoUCU1bDWSOBkGvod P6DQg1IranL389BJ1z1JCvqFJw/ko5KScW4/1AnSPbujHUOGSSRphsD4dnbM+pASJeSD AVBcJxQ9BLsMgjUdrG+9CBMYfXB4gDx0vFYiHqpJmjcO36+l5cjCiZcEUA83w3+7YBCy 0Jbofq44LT/ZAsaTMy+PKCx2qz9+MnoM2OA5ajkv9+wzag/Eq4dxZEnGx7B5qjQm4oFE 3HzQ== X-Gm-Message-State: AOAM530xGdrop5sC2twpIh6FnsYoUwnIKFKsSVxIBlHjMR3tVe872w3X lhOec8UbBmlO0754YHaZTTleZMxl6elHBw== X-Google-Smtp-Source: ABdhPJzN8ke5M2uFwZc0aFNz7T1RE9w9qwXnpokW7jKoyfbuod0SAajjNY3PaCn/SngtzOmRZ9iYFQ== X-Received: by 2002:a62:7895:0:b029:152:2640:644f with SMTP id t143-20020a6278950000b02901522640644fmr4553315pfc.67.1602689303575; Wed, 14 Oct 2020 08:28:23 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:28:22 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Wed, 14 Oct 2020 08:27:54 -0700 Message-Id: <20201014152756.6518-17-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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 16/18] examples/ipsec-secgw: replace master lcore with main 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" Simple replacement. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/event_helper.c | 6 +++--- examples/ipsec-secgw/ipsec-secgw.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c index 865dc911b864..bd60f0359b59 100644 --- a/examples/ipsec-secgw/event_helper.c +++ b/examples/ipsec-secgw/event_helper.c @@ -1461,16 +1461,16 @@ eh_conf_init(void) /* Set two cores as eth cores for Rx & Tx */ - /* Use first core other than master core as Rx core */ + /* Use first core other than main core as Rx core */ eth_core_id = rte_get_next_lcore(0, /* curr core */ - 1, /* skip master core */ + 1, /* skip main core */ 0 /* wrap */); rte_bitmap_set(em_conf->eth_core_mask, eth_core_id); /* Use next core as Tx core */ eth_core_id = rte_get_next_lcore(eth_core_id, /* curr core */ - 1, /* skip master core */ + 1, /* skip main core */ 0 /* wrap */); rte_bitmap_set(em_conf->eth_core_mask, eth_core_id); diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 60132c4bd7e4..b2ef24df3a6c 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2989,8 +2989,8 @@ main(int32_t argc, char **argv) #endif /* STATS_INTERVAL */ /* launch per-lcore init on every lcore */ - rte_eal_mp_remote_launch(ipsec_launch_one_lcore, eh_conf, CALL_MASTER); - RTE_LCORE_FOREACH_SLAVE(lcore_id) { + rte_eal_mp_remote_launch(ipsec_launch_one_lcore, eh_conf, CALL_MAIN); + RTE_LCORE_FOREACH_WORKER(lcore_id) { if (rte_eal_wait_lcore(lcore_id) < 0) return -1; } -- 2.27.0