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 90C0AA0350; Sat, 6 Jun 2020 01:01:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FD221D64A; Sat, 6 Jun 2020 00:59:22 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by dpdk.org (Postfix) with ESMTP id BCD831D635 for ; Sat, 6 Jun 2020 00:59:19 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id x207so5638119pfc.5 for ; Fri, 05 Jun 2020 15:59:19 -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=lRYtaF+oh3FJuppDjSohzXsbUQvY6C3QAo7e8q5ZLaw=; b=TOTu2xxYxBCATLdU5tibagGmmkmmweYQlEe1UvFHm517hvNklSdPKTtm5MQRlQYXcl jXVGDTBbjd4kO8DmrcGpZlO4Yr+v/PT609rHlyltRqCijxQoS/AX7+0zR58ZudOXc03v 6ARCc/gISbIjkAXXPNvJro/MxrJlpDeXQ/AA7zjPzTHoKW0UZydqM78ioDZYeRuB/7Fl UEU2BGs3RhC9Gwr8u65b8MQ7W0uHO9LagWe8oY7nTZ/FDgjdqJZ3Eyl7ppIctiqwFeEX HFyePfWCE12zFn/34cKGfmXa1D4d09sEAasxpiFChc8za5i87ffjnE3LjmxeVSsLs4k3 RDPw== 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=lRYtaF+oh3FJuppDjSohzXsbUQvY6C3QAo7e8q5ZLaw=; b=RbfZ5JdXfJpntxb5rcBk5cE99JYixUuQ21b4qcsIpMpsYZfeZDOJtC9KopeFL+LZVU hh1u/qBR5HoVAAyNguA5j4uixZPaAnXN8wUyMzXYDv8pUTeUjDxHYR0g+eKxJX8x6ANj jyLyPm0rART8fnP+w8L3G8Qvty9P24TsS/uFLgHkau+cX8VoSzkb74dxqpC8oy0sEXMX bPsS5gJ2oz+5WmyAIvgIDfXP9zQ1C/aVeB6rwJ76Pz9bNuUdvCZDnWW5835Fxme8MrCM EBfKhRDVc87ZBC2esyZ8/jJ3x56X/l0usc6qwz/1P/6wgHBSGGLLM5kqeNKQS4WJYKRz A7DQ== X-Gm-Message-State: AOAM531Pj9/nK6bmKk0JUI28jQbu1lbDbkFEg7Vi/zz3vHIEz0t0u59f wa2A0/snsTHeXLQC39iRKRqXwAzQqhY= X-Google-Smtp-Source: ABdhPJzV6AA0SGJOAv9FXMGpDVm6AnhdR+4qyDPS12JSm5Y/UkAwZTS4f0YTEFqpqtXdyU1CncvCqA== X-Received: by 2002:a63:33c6:: with SMTP id z189mr11734135pgz.426.1591397958535; Fri, 05 Jun 2020 15:59:18 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j186sm543121pfb.220.2020.06.05.15.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:59:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:58:01 -0700 Message-Id: <20200605225811.26342-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605225811.26342-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200605225811.26342-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v2 16/26] 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; } -- 2.26.2