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 00E7FA0350; Sat, 6 Jun 2020 01:00:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 74D6B1D5E6; Sat, 6 Jun 2020 00:59:11 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by dpdk.org (Postfix) with ESMTP id A1DBB1D5D0 for ; Sat, 6 Jun 2020 00:59:08 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id k2so3247427pjs.2 for ; Fri, 05 Jun 2020 15:59:08 -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=TN1IU4MlvKhihX6I/dxXIGHNUwmlWord9Q2L+ZlIhSw=; b=2RR0GUjCxdt26Dnaum9r/5nhk+swpiQAKnOnb6+UwEx/qCaF4scP4VxdtYiebnK+rD uov/nEE43vCN4RTtPMAvl2hJpDqwJpXzwx5ukO9n31GxsfCNnjCiQkgapOObvLFwj6fy gzCNTnvvKLLe/E/eYIl9JZNS4+Bx58S56MERmbctnNN0ElJpM+wMDj1g7R6HQ2Z8jL0S /RCABRron9pMA+MR4GoMNbn4JngVMPMqfO6SRp7+uWbts4JCL6U6a6Y85UZJbYSl/u9W 41IBzdX91VxrtnttL8debZf9epf1TrjON8myps0XFJQvyZWCZupAUHmj1v60GKTxYRIi WixA== 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=TN1IU4MlvKhihX6I/dxXIGHNUwmlWord9Q2L+ZlIhSw=; b=UPV4eS1XzPxSeGhn7S/LKz6dtkbxJGYf4pMsz2uACzgBhKadUJQcmc92HtOuWNhuSq DmVUdG7f+KT/FRxm5XMqW++sTPb4KHGsHxmlKixi14Whr+GJDuoCGRs+D8ApuQQY+JaA rZFmnCl8O7LaShpoEsCCfXL7Odhq7e5QAz7xCgKttTSIOWucGUUxnDBFglVyvUHfYeKA MHcm6L4Rke7BPx0cTRhfQ5UXN4SgnhstqVUr3QhMn6+QweTllGGWHeh1gTNs4dQdWN9x zkGI+hdmFLoWq0VRHyRB7vmlOvXUv93zlY1p8TjgV11BS+0GQvhRloS5khiOFeeG+O/8 eCVQ== X-Gm-Message-State: AOAM533xMknEirkQaKDlOxfgC1/lZ3uucBXsgAvxtU0K7fbg40Zk4fPu v8AZFw4NKcESCxSR6WRTxYFzfWaulX4= X-Google-Smtp-Source: ABdhPJxZPGHMs4AiaMqWC2Vmzsr9amOf9WsXF+WwrfaoIeLRPVzAS9c5dfiA/esxLYqtUgMVBGpFMg== X-Received: by 2002:a17:90b:2042:: with SMTP id ji2mr5548032pjb.68.1591397946975; Fri, 05 Jun 2020 15:59:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:59:05 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:57:53 -0700 Message-Id: <20200605225811.26342-9-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 08/26] 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