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 C43A5A0350; Wed, 1 Jul 2020 21:48:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BFBDA1D148; Wed, 1 Jul 2020 21:47:12 +0200 (CEST) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 29D631C2A7 for ; Wed, 1 Jul 2020 21:47:10 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id bf7so987002plb.2 for ; Wed, 01 Jul 2020 12:47:10 -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=XSpJNa6t5RwC0gPoDXSI7UXiiMlOYAHd+IVlpTd7Q64=; b=fmWQxSDAOvLN/GLz4NOR2IKXYSybMqQ/tQj7Q4O3Tt6NvjoIxNuV6rYgetcnfcCft8 bd+aydGoLN323PW9X9s/DoqPZlJZRdhJHkKyQX09u9cuzivrZ0LPYxPl7A7TFWIMdgOR Oz1LjrHlBpcqRfk4L7VpZ52qPDqH7elb09qO0TwwG6Ql7I2I+o4kJY7rhgMfjYwGdUg/ A51QTVS1iCKQrr+DxNpL7dqr95ksfKRDdHnGNpNF//dhlSV+v0ogmvclY/ST8y1FcPdn 3QOZZ+3nSyEg9I9nmQxyBk+MTPmyL4k7px/yzlvvfpdztdBTztZNVVBlzsK+dq1tkSan zpzA== 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=XSpJNa6t5RwC0gPoDXSI7UXiiMlOYAHd+IVlpTd7Q64=; b=JVW1HlPX1843+cy+hZwQ/TRY/GA/974gBfSOe0OGk1gtysOVnsnau9lYxCBpEJ6Wqd X5zZVsVK4AiGfUS5gwjOnuct9tN2VsmreHldRngkUcwrdV7eqfvAi7zqoghAzAkB8ji8 kAE8sWp2u3SisTzhL9KynaUAx+YYx5Svmkd6XwQWfyAlxZa5iG56yUn9bXbVXuuwyYha TK4z5hMzTMYjmPVD1Gn4Lk8AbK++/jirqjkUd6F7aFtdurRNiw6E/wJOZ2iKRlaxnwFg mxYodvjNnK8zN14HUEFZgakdo1rAtpizBlg3GBs892PfC4HaiJRZaLX9bsn8ovyfXA8f mWSA== X-Gm-Message-State: AOAM530jNT2Z/xDYRNXRPyGkP0Y4QwRmjbFbjqrp+MfZhNq7JjI9/2/e UnOZiyD2e11m0CScuZmGuNUkq563EGk= X-Google-Smtp-Source: ABdhPJwa71gmXYlOZGl3FKvLUtqZMTiIDJmHsGloKMpaiAZenSmnUtL66JuPGEY41Zx18WX5l51SGw== X-Received: by 2002:a17:90a:fa09:: with SMTP id cm9mr20772519pjb.146.1593632828979; Wed, 01 Jul 2020 12:47:08 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:08 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:30 -0700 Message-Id: <20200701194650.10705-8-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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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, leave refernces to slave for bonding since that is part of the API not addressed yet. Signed-off-by: Stephen Hemminger --- 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; -- 2.26.2