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 83C8EA04C7; Mon, 14 Sep 2020 20:22:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 54EB31C1B6; Mon, 14 Sep 2020 20:20:41 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 0975B1C12B for ; Mon, 14 Sep 2020 20:20:33 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id fa1so300616pjb.0 for ; Mon, 14 Sep 2020 11:20:32 -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=1gz3kmI1EzHhv6feLfB9aVZr6+kuS/rBjRm2KdjL7qM=; b=cnolF3iaROQ2olD1rg+2UIOCJLE8SAsrd48pdICRPpc1UO6C7FUDLhRME0ApD2AsSU iX92l4yWu+VT10Pt6oTGv//XIxgZRbe1scvMIf99iNwuoDDHhgXF6B4DBJNjFg98zC4u dpLwefD9NWwEE5Gxw7/3hOlrlKbDTqIzuuI2uECalf4eAgHd3ESotxFbKxfMudahI2XR cFweCCgvlZjM1835vae6QHlgChzEmsruNSsMuxo9/dIqUOByMXRMUs91suoM9IarAlMo 57YXSgkY2bAykQrmUqZBebRT/BvVoxg3pI/K19xq7VI2xATUakYBPvfIbXhD3mxtFeO/ +9kw== 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=1gz3kmI1EzHhv6feLfB9aVZr6+kuS/rBjRm2KdjL7qM=; b=DVykt78zj8gTHxJDTEQiyfNJrqUcCJg6wA+xWFEcy07DTo/bnEEJ3oYCL3vOI1ieTE M8JgYrGA4UDhPQHgM3xJIg637mF9yvFjDVd5jRtSFM8RyEhHyQcVgPyXYLHJ/cEak7C6 TpnoebGd6Uj9PZ4xPD3l2oa9tsRbChGnCDw+JTqT99EA5WsoW+H7QTZSMgPt+mK+oLZy 1t6++ezVRbAuOlTo/yBXkmfNKLOCF5QAFNupg++E9XWHezsYMbXgaFPDXYkB78Mm0Z2T NCSznOvfUNWfVBsbl3FdQPKgIu/z8y+2phHr7+s4ZOsqtxXZ/LgJKFh2GyPxj9RRkEFw MYOQ== X-Gm-Message-State: AOAM533GzE1fJcVfWviuIsC5kpV29RgntLFeFjUtHP1PyNeCbqkIAHu0 m3FeixAxofpuf4fGBc2MfcZDQhNRDXKDJg== X-Google-Smtp-Source: ABdhPJyiNc4N9soZdKXPwCTJ91hqK7A/ihbaPoGlkqxVbd5Lmt6yxQ5k5BjnGwZakFY/47J90U7DHA== X-Received: by 2002:a17:90a:8817:: with SMTP id s23mr579062pjn.158.1600107631913; Mon, 14 Sep 2020 11:20:31 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u6sm9952728pjy.37.2020.09.14.11.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 11:20:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Mon, 14 Sep 2020 11:20:01 -0700 Message-Id: <20200914182002.6750-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200914182002.6750-1-stephen@networkplumber.org> References: <20200911190701.29171-1-stephen@networkplumber.org> <20200914182002.6750-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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 8ba15d23c7e8..339221eecf55 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2992,8 +2992,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