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 C7B46A0350; Wed, 1 Jul 2020 21:48:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 77F051D16A; Wed, 1 Jul 2020 21:47:14 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id 648711C2BB for ; Wed, 1 Jul 2020 21:47:11 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id u9so6697676pls.13 for ; Wed, 01 Jul 2020 12:47:11 -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=iURrDw4mcqjpXLPqyxOm87giupxuZKgBPH4SxLnz8w8=; b=KiixRbgve6AfO5rLY0eOAM+l6LolcAns+bqhkX7q1jCq81SJGYJxnh+CXg3dnaBC+u l+4hnMXWK9knMnwlEUQgH5AykR4N+98cc+nuSLalheohlm48rmFN1Ci4JVysc5sAnkpJ vY81jx/Ga4e9Vbjeg2kQFZFUb5PavEIO2Rmh3VDzFTW5cZAuVqdG9Wse6UE6qrLifhN1 Pig/3Lx2TAttIPlWCIt0y4gwRZUE7R+lR1gT9D3nG6u8lCYbSWmegRwNJv2up+RxOn7V Gq84/hXYFc1Jbf+3ADya1veQRM1BNOWCgX9uPAT7CAiyDNPFMVrVjp3dBBSer0ozwxcV XW6Q== 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=iURrDw4mcqjpXLPqyxOm87giupxuZKgBPH4SxLnz8w8=; b=kmrqNJixdtvldR4gc8oiNam50Tumt0qEoMx8Y1Ww/bBoA2reS7x/5+4n5B99JQ1Dgu lLixwp+v7NeFMM1RT9oxGIRora+Fu8vxJypmoGqvLQMJuIxniTjBPIkaeJuN18MUVimE 15H95dXxZNZLCTfZEttXJtkuTAWUYJdYYMLEWYWCgWC3cfqb5T4OSULniWkKNUso5PLu H9js+Ciqj9eHran0ZJwAlzBry8ULOt3tf/z3puk66q8oiJxqJ0YbzGYYsjU8E16jlJw7 +4A5ZQf88tJgiykh/qHb4gbsWzM6x0sgTXjgxdi6Sa9UMlKgZvCkFXK9xAAYwAHDCGcN p4mw== X-Gm-Message-State: AOAM532IrYBI44RynnS9QVtXRhz++RTsZkh9csZQ7yi47QM4M/L4zhYz tPGjX8UigJbz+vFTS5v5tCn164bexoQ= X-Google-Smtp-Source: ABdhPJwYtgmoriqCTzSQvHf1Uqj9gR/I6gKHWR+tWHOdlsRDmvL6XdNvS3q1eG7XzorE30OmV73Bgw== X-Received: by 2002:a17:90a:1544:: with SMTP id y4mr29036628pja.130.1593632830210; Wed, 01 Jul 2020 12:47:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:09 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:31 -0700 Message-Id: <20200701194650.10705-9-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 08/27] examples/ethtool-app: replace references to slave with worker 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" Conforms to new API naming conventions. Signed-off-by: Stephen Hemminger --- examples/ethtool/ethtool-app/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c index 7383413215d6..a55d31d891df 100644 --- a/examples/ethtool/ethtool-app/main.c +++ b/examples/ethtool/ethtool-app/main.c @@ -176,7 +176,7 @@ static void process_frame(struct app_port *ptr_port, rte_ether_addr_copy(&ptr_port->mac_addr, &ptr_mac_hdr->s_addr); } -static int slave_main(__rte_unused void *ptr_data) +static int worker_main(__rte_unused void *ptr_data) { struct app_port *ptr_port; struct rte_mbuf *ptr_frame; @@ -284,16 +284,16 @@ int main(int argc, char **argv) app_cfg.cnt_ports = cnt_ports; if (rte_lcore_count() < 2) - rte_exit(EXIT_FAILURE, "No available slave core!\n"); - /* Assume there is an available slave.. */ + rte_exit(EXIT_FAILURE, "No available worker core!\n"); + /* Assume there is an available worker.. */ id_core = rte_lcore_id(); id_core = rte_get_next_lcore(id_core, 1, 1); - rte_eal_remote_launch(slave_main, NULL, id_core); + rte_eal_remote_launch(worker_main, NULL, id_core); ethapp_main(); app_cfg.exit_now = 1; - RTE_LCORE_FOREACH_SLAVE(id_core) { + RTE_LCORE_FOREACH_WORKER(id_core) { if (rte_eal_wait_lcore(id_core) < 0) return -1; } -- 2.26.2