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 BF24DA0350; Wed, 1 Jul 2020 22:25:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 380321D5B1; Wed, 1 Jul 2020 22:24:22 +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 936D71D58C for ; Wed, 1 Jul 2020 22:24:19 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id u9so6732169pls.13 for ; Wed, 01 Jul 2020 13:24:19 -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=lRacB3PqNzjh/cJLR5zSL4jtUW+YYvxqJhD/3vlpBdq99ehZVJ8+D3/ALCBazt4f7f /BCL4SCxpKishHOXlG1IJ3006jbJ44s6dju/Byf/iAYHOqlGWFD53GoN1cG3qXp2U0w7 E0hYD7LIJjTkal36iiMPoZCYeUgU/6xYns6XrFVDXtrTnqNskVvDBbi3bvdqFSvjSdYN 7CTXDrSA39pHR3D0DJ72chyGARsxJTUTtU8aLLVf/yygwa26509cE/gMcujIfYruj2D/ plxA9GM6pjgPVCLoz92uRnNnOGOLcQpknuFbeYFk91zgyhcZhVyg5Ql+dJlJS6d/ehoQ lVCg== 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=hldBgPOdIsu3flFaVIidTll230pdO+So8VzEAXzH60+/MZmSTHTGNsVtyng0Foa57S Gr/jmQvJm9wbcr2FRO80tuLK5qXzGw8+Ycfo+Ir/Bx7MLlcmRYw0qNAFDYTCbTYgufa4 PpX3vnxnb234WeFodR6dsv/L2CaGIV6NeUkVCV/ci4gtD1elAx1ur8OOXZKoIOxh5ika O3yG4vXcqZZeB4y9h+X6v/2NIf1WMa0Be3gk78El7eBFp8d2Z3HHCyW3suNhc8KqkxuC E6hxNuoPU1+XAClmlAilwk4Uh0jAlXjIMYE0sKwGtDFFRxH4LYlgJxIou23v5FhuBFyp Mglw== X-Gm-Message-State: AOAM532intKvIRYlAPmkvEUhd2tIS5Z404yfS8632U2bdc560vY6/89K WZekWIjVEfcLiPaRxMABqkQVkqTgupw= X-Google-Smtp-Source: ABdhPJwYBnSmn38YvB95f4ybPI62VPUhn8WqaofDi6aNVdp4A4PLAobBLG+E9R43FgcZl6mNNqK6DQ== X-Received: by 2002:a17:90a:fd12:: with SMTP id cv18mr22747849pjb.66.1593635058396; Wed, 01 Jul 2020 13:24:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:24:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 13:23:40 -0700 Message-Id: <20200701202359.17006-9-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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 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