From patchwork Wed Jul 1 20:23: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: 72672 X-Patchwork-Delegate: thomas@monjalon.net 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 B2E70A0350; Wed, 1 Jul 2020 22:25:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CE531D5A1; Wed, 1 Jul 2020 22:24:21 +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 526F61D564 for ; Wed, 1 Jul 2020 22:24:18 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id gc9so4925234pjb.2 for ; Wed, 01 Jul 2020 13:24:18 -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=dfl+bozEs6YqDMLJcxlnmsx5lrxxQMEUMeuJyuM0WWo=; b=poeEqYMDVNAAOlYsOBA+UUi5oA52BKug0cvKV7zfOBC5p/gbdMGuu0O1tjoVaRs0wH 27bGxFpSIMUTcxgvTBrFwfgYT5ccWHTeJpuh1HcmuJsnGDyr0nqamK0OPcjc4x5oU5uy zr/DTYgulss+eTlGBZ+tLYSMwpw5z8JMOvkNeCGeNUVRamrqpy50RWaUnZAxul/c2jIt quLPg1fer19BCkaFS9Q1zCeqM6UTa74SNc7qWCd65ucIahoPcluExK2VTztItSFSmPwJ KZlyWCoa5bPh/ZKjaJ5gGxEXhVPEmPlDf91scBZAtmj77Kb1aCmdKKFvT9qFQtyzh+SS GznA== 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=dfl+bozEs6YqDMLJcxlnmsx5lrxxQMEUMeuJyuM0WWo=; b=MPFDf+0orLuSbRmQu7cwWiBB3/XDI4I2YsAHpKDf83rIX4Sx03kwolagYFfeyte7XX 08isszt40UhfzJOTcTCERXfpLtugZQtb9ZcTa7etfrXjHd6EQGrqXXxbJKmytV2vLX2R q7gpaiShmwzDT7Cf9qnJXclLLbqufRReYZ0e6HlEKPspu9HDMFA6SHSOTqQioxlaYYYZ DQTnIVa6tysOeux3pdQ5Xy6ExNhR6Ig/gXr/Y1sg05rhRShV2f0v6xyRAT6FP1poPq1X SBzdyYJPE74Hha9DGrSLKgOq41zV6RVHjc16MJJpe+vEhX3m5DgM3pKOjUcIn2yj2g9j 9cwA== X-Gm-Message-State: AOAM5327o7FZOvM2drrEJCosO10lCWUlzOhP0lfrTlfJnun7QgEe25nY xtzqMWjCOiswMyuSAoggl5LPg+QoqIg= X-Google-Smtp-Source: ABdhPJwHBCdxN073t07XP/xGOuaC0/U+F++rxazb/57D0MtLH3RV4VRKPSPCZ1aV++6eW6PcB4Nz1w== X-Received: by 2002:a17:90b:2393:: with SMTP id mr19mr30230616pjb.46.1593635057101; Wed, 01 Jul 2020 13:24:17 -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 g8sm6584803pgr.70.2020.07.01.13.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:24:16 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 13:23:39 -0700 Message-Id: <20200701202359.17006-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701202359.17006-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200701202359.17006-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v4 07/27] examples/bond: 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" Change the references to master lcore. For now, ok to keep 'slave' for bonding since that is part of the API not addressed yet. Signed-off-by: Stephen Hemminger Acked-by: Anatoly Burakov --- examples/bond/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/bond/main.c b/examples/bond/main.c index 8608285b686e..e415d7bc9c8c 100644 --- a/examples/bond/main.c +++ b/examples/bond/main.c @@ -590,7 +590,7 @@ static void cmd_start_parsed(__rte_unused void *parsed_result, return; } - /* start lcore main on core != master_core - ARP response thread */ + /* start lcore main on core != initial_core - ARP response thread */ slave_core_id = rte_get_next_lcore(rte_lcore_id(), 1, 0); if ((slave_core_id >= RTE_MAX_LCORE) || (slave_core_id == 0)) return; @@ -802,7 +802,7 @@ cmdline_parse_ctx_t main_ctx[] = { NULL, }; -/* prompt function, called from main on MASTER lcore */ +/* prompt function, called from main on initial lcore */ static void prompt(__rte_unused void *arg1) { struct cmdline *cl; @@ -852,12 +852,12 @@ main(int argc, char *argv[]) rte_spinlock_init(&global_flag_stru_p->lock); /* check state of lcores */ - RTE_LCORE_FOREACH_SLAVE(slave_core_id) { + RTE_LCORE_FOREACH_WORKER(slave_core_id) { if (rte_eal_get_lcore_state(slave_core_id) != WAIT) return -EBUSY; } - /* start lcore main on core != master_core - ARP response thread */ + /* start lcore main on core != initial_core - ARP response thread */ slave_core_id = rte_get_next_lcore(rte_lcore_id(), 1, 0); if ((slave_core_id >= RTE_MAX_LCORE) || (slave_core_id == 0)) return -EPERM;