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 26BA7A0350; Sat, 6 Jun 2020 01:00:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F0301D5DC; Sat, 6 Jun 2020 00:59:10 +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 A129D1D567 for ; Sat, 6 Jun 2020 00:59:06 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id y18so4266643plr.4 for ; Fri, 05 Jun 2020 15:59:06 -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=r6PFmOUXdbyRBsQKoaHyBqX5gI5wK2n+2WTQX2xfYIUBzyIfevvkGsqKs7xUgFheYl pFm6iGs+WFXQrgsyZGp8xAc/Yya/Cr3MBbXC9Zd/BU5L8/kesqMolkB3kt/GmbseNxNE loVB7LMlKvIC5e/FEET610sIw739HXnLsttlhIlQ7cwC8k9WRek5tTuPRhFtx8e2Llxw iT4ztcSbiGTSN4cmhHzURo1vSZPGx9MB83a3mY5SsYK0g4iUxZRySom/hKLohoe6yEL7 ehgWxbHiqri7xpGY+HBgqeucgW9V1TM2E8VesC+QCNT1vr3+loMQ+xZBEo5wYNrktj+f BMIw== 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=gAYyh5/LZIbTQII+wiWzEzCpSEVYDy7tr4lot8hdma/UmKWWwLghvnFXIReOjUFc8L J7qL9b1KzCJwbrsZisAGZDGcW5uqjDIaEoHD7J7WJwfk+RPu3rf5ET7C4U/e5OSKFOAH 3ZhIhEp6UKMPFSb36j7EDfbbGWNIp+7K0GSvvksHOZsLpko234IV2sJMqkCelcoKfYZO JVgpEKamnLu4umlD18ohA4L/+C2oweN00VZLG+p9vHFjzZ49OWbNlk2r9Is1nfwbj452 1XLozHM4fVhV+UVYZpPck4IRYWlRYrRDfd3wV+00pdvS6pUwQjrw7p1eCH2N8tEY7xzV eVNw== X-Gm-Message-State: AOAM531liht5XdVmQjJ0eVGCHMTh9V36nXcycLNIXjb2q5M8DdhDB+T4 UJTt5EIYrC9N6H5IWVvanFnqhgGnY4I= X-Google-Smtp-Source: ABdhPJyJRoznX3C6jES1WmIpqW7LeKkJ6R8QohSpK/RO57dmWRZAAmprZW+xgUYWIJv6Xc2gjVbApw== X-Received: by 2002:a17:90a:8d11:: with SMTP id c17mr5366068pjo.201.1591397945293; Fri, 05 Jun 2020 15:59:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:59:04 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:57:52 -0700 Message-Id: <20200605225811.26342-8-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 07/26] 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