From patchwork Wed Jul 1 19:46:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 72653 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 49D70A0350; Wed, 1 Jul 2020 21:49:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C1151D531; Wed, 1 Jul 2020 21:47:24 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id 556B41D525 for ; Wed, 1 Jul 2020 21:47:22 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id c1so4197495pja.5 for ; Wed, 01 Jul 2020 12:47:22 -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=xLYRH6npH+95zSvB8PtjC28bx5SheY9Pmdl4p97DNLw=; b=QVXVFHabruNGrd3NfRrOJ4X6yCuKyKI4U4M0VGjn3KsnRlbeFuII64HvL/3wh1STl5 Z0l+qxPwIuYcxh3nrNTgl1DJxZZuG2j8IHsfbo5zAKiaIpEMbg/eIhaVhjadYLO+l777 gMTPLFxgGWeOF/tFvJ8la4VNcnbTqtRihzARcglJuy+xWydxExZYfpxE6QQ8nRWXtYeK FMugS/J8RvVbu0a7RStIwMbq32Yl6yUONpuXybv84sN6uq2W9mSU6gfvYs2JCRf7N3Uy 1UrFw0CHtF9OZlnGxWty1uIzl/k5eB+ZXirY4R9Dpvjm4d5pnjgMopYjieogiG75Os9A Fvqw== 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=xLYRH6npH+95zSvB8PtjC28bx5SheY9Pmdl4p97DNLw=; b=TdKnF+WyiG5y4KHdtNYvOBgWgMlsETQ17e5ersTL5ylDvdz+QWtFHQlVQgKV1Db+Rj cVocGa3G+9SVwrCaYlf/QfmWHgdgAzqJ1AemzsESHNEFHoTonxYMaHgL9TSZnDjwXCoO eTvUsAJmdLLdQSCYB4YOfPwkkPBzM7FBe2G0BfC89viilB/nJ0Q9Dva1pl9gfJ4dwMfJ g5zbuUcUIhyAZSUqoTLYgpcsY5P7Lv/jlBjTR8A+47pS8APNsH4utJLqkfGApQzYuTiT 74khhW1ZlHovTmfD8gCA0Te5d1x/Ut7OyjZBq96ZpJYuG0R7YRIrkVj6nD6+SgDIU5wE awkQ== X-Gm-Message-State: AOAM532ukv2Vsc5NszgOb4aBE5Rhi8Dt3HtrXZxi8Gioq9jRqvlKw2kY F7aOUCMKbtF3QxFey6gQMntroFSrHVQ= X-Google-Smtp-Source: ABdhPJwcm30eN83LQGfh8VzJsPkig3gLM1H0l6Md+7ws6AR78zLBe0lu/PH8pz3mJTzvE3y9JdOlJg== X-Received: by 2002:a17:90a:c70e:: with SMTP id o14mr31918003pjt.70.1593632841104; Wed, 01 Jul 2020 12:47:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:20 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:39 -0700 Message-Id: <20200701194650.10705-17-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 Subject: [dpdk-dev] [PATCH v3 16/27] examples/ipcsec-secgw: 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. 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..239c35985bd6 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 initial core as Rx core */ eth_core_id = rte_get_next_lcore(0, /* curr core */ - 1, /* skip master core */ + 1, /* skip initial 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 initial 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 f777ce2afe41..388f7f614ae0 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2917,8 +2917,8 @@ main(int32_t argc, char **argv) check_all_ports_link_status(enabled_port_mask); /* 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_INITIAL); + RTE_LCORE_FOREACH_WORKER(lcore_id) { if (rte_eal_wait_lcore(lcore_id) < 0) return -1; }