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 70A12A04BC; Fri, 9 Oct 2020 23:44:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 03A771D650; Fri, 9 Oct 2020 23:39:35 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id A71071D5F1 for ; Fri, 9 Oct 2020 23:39:24 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id m15so5081849pls.8 for ; Fri, 09 Oct 2020 14:39: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=oSXaSL1VoZ8bUbCA7YofJsps2XKmnnjOuq4ppd0j5MSNgp8EDF0ltzsT8REh8yn1Fc e+QKJLZkoKTDW8fRYj1AGxm3DfBYpBRyDG1SavLjqZQpFJRZu5VMeKd6TBPfN+22FgAD McVR+2CCVDez9HWbwDmXhMfTotzAfO6T7S39EizfHsrmV3+oBY57+RlOEt7uc8OlVva0 2DfhrCuHGMt6rvKSh7NZDBgSr9HQgffX653eE4mRayzn5l0mjBvlDLTIW0qeEfGKIIlL 1N82D2F6Gtk6s5C/N1cbfNrg2ZBGzXWWmRKRK7UtvrN/mQ46byao8zTxlXTMJcWCq5fn 6UdQ== 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=FWvF93rTpg3Xs6s4s6RUTZmbv4fj7utqzl50FiycazNZ/MzrS+z+CPEx9SdeWBGssm 676yzbBuUYTXsW7YPet3xrDCNF+UaLREaIR6b0ayAKeMDavagd4PBNwjkA6rutU547kA 1L1fxDM2EZSOVKvIblDAfWdhp7Qdf+N5RhlhqO3hwCA2vnPV3OrCDB9W9QGvgZIi5sXC AssVF9cbZQBRGdYvIvgyhJZkgum5bis1ROX5syqYFcZjB1LC8RW1ZaWt7Mh9KPcCdLqE XAzU0peHQd24uGuCQMbrtYOiu6HH87DX/kRsTcOzeHuajVZ7aAB7luaeAZURknfuSlX3 S3LA== X-Gm-Message-State: AOAM530tOdNYeuoeLyQI7Bn8WkpOz1c9CCZhf5P450RJv2JqnZUpcUhA 4AZvDgSWKDetMGx7d/ERdbo5iASTWBoPTw== X-Google-Smtp-Source: ABdhPJxp71/pgLQ0qJ46ZnTlDdKsWoLV29POfQht2Y4VYflRGoNuVxdPcmCURqblyXjgeh3GDzQnBA== X-Received: by 2002:a17:902:b949:b029:d2:8abd:c8ed with SMTP id h9-20020a170902b949b02900d28abdc8edmr13727511pls.63.1602279562512; Fri, 09 Oct 2020 14:39:22 -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 x18sm12173381pfj.90.2020.10.09.14.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 14:39:21 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Fri, 9 Oct 2020 14:38:54 -0700 Message-Id: <20201009213855.17933-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201009213855.17933-1-stephen@networkplumber.org> References: <20200911190701.29171-1-stephen@networkplumber.org> <20201009213855.17933-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 16/17] 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