From patchwork Wed Jul 1 19:46:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 72655 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B32DDA0350; Wed, 1 Jul 2020 21:49:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 287C11D54F; Wed, 1 Jul 2020 21:47:27 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 0ABB51D535 for ; Wed, 1 Jul 2020 21:47:25 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id l6so8293801pjq.1 for ; Wed, 01 Jul 2020 12:47:24 -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=gY95tjbbLspwO1mZqwsh0b2j3kKWOm4FnvQonp+EeR0=; b=cQZa6XeHVwlER+wnzeDY6G+bTNhwPyBytLj23HJy05HnvGEDWUQn7nOO9aKDlG5ZeC lKRu/K+JgXNLDj6e7YM16BI5RzFCQZ2I1OPnejLVFFbmCI1XyCqafIKFGhl5N5y4WIwP VBgrYOrkPgclK6Vf9YgOrAgEiGh+3Im2wEoiWNczXuXCNMy4C48tAoXD66Y5JWm4SceN xnq8yuPYjoCOz7iNOEkZ1CMmgqQoYvXRvNiCGR9MUC3Vs7LnKW9WonSBzu5M5LhdH7Qf MCRwgRxJ8pOv/CiR1dYWWDGYS/6Ax8m0CG6PwAVn3tA7NY+jVz2y3tx8GOegA9NhBDjN Q9Jw== 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=gY95tjbbLspwO1mZqwsh0b2j3kKWOm4FnvQonp+EeR0=; b=BaFgv6jxiHUVoQ9Vhgpx6vOnVG02nyoJVHFxc3a9l9OgLQ36h+oity3Ft52orS5iL1 2tDyZ8vf5mBb/p0cORwfE8oDe91PGWRiDzgmzqon/skkDd0mPjhQIhF/Djsn57ALM58x Jgg4h+EbVEz+KFlbVnJfcllaJj2vDIjXe4f+A+wE3TsoVZvQyZY17I9D7QBPDoUIAqQV 1k4VbbgqW0Q7ehgiHj3SHz6Lk4k1AXTz119KdXcfdUpAXM59fBjfOO+tUdCD5CYoV5yM sNRqKZPuOtdFI4rSwnZ7SHcMGbyW/MnOM0x5KpDPnA/E+C7aA/GQz22IKQLYIwMPjapS ARBA== X-Gm-Message-State: AOAM533/c8lQifX5z+qpW6wqGOZYfTKyNFNSRWPSs4pmGLUPkU5Ku3V+ XCNV4/sooH/BlWkSPxO2V6CIEC8kVNM= X-Google-Smtp-Source: ABdhPJxAFb1b7D1p8I45o5Y6yiGVYFRNuM9NqS4QEV/AJJ89YogVOKbDW2omYC5LLmJsQ2WF7K4f2A== X-Received: by 2002:a17:90b:1b52:: with SMTP id nv18mr24604998pjb.129.1593632843796; Wed, 01 Jul 2020 12:47:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:22 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:41 -0700 Message-Id: <20200701194650.10705-19-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 Subject: [dpdk-dev] [PATCH v3 18/27] app/test-pmd: change references to master/slave 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" Use new API and naming convention Signed-off-by: Stephen Hemminger --- app/test-pmd/config.c | 4 ++-- app/test-pmd/parameters.c | 2 +- app/test-pmd/softnicfwd.c | 2 +- app/test-pmd/testpmd.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index a7112c998bdb..816d9e2064ef 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -2649,9 +2649,9 @@ set_fwd_lcores_list(unsigned int *lcorelist, unsigned int nb_lc) printf("lcore %u not enabled\n", lcore_cpuid); return -1; } - if (lcore_cpuid == rte_get_master_lcore()) { + if (lcore_cpuid == rte_get_initial_lcore()) { printf("lcore %u cannot be masked on for running " - "packet forwarding, which is the master lcore " + "packet forwarding, which is the initial lcore " "and reserved for command line parsing only\n", lcore_cpuid); return -1; diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index f761e14707bf..48aafa289367 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -88,7 +88,7 @@ usage(char* progname) printf(" --nb-ports=N: set the number of forwarding ports " "(1 <= N <= %d).\n", nb_ports); printf(" --coremask=COREMASK: hexadecimal bitmask of cores running " - "the packet forwarding test. The master lcore is reserved for " + "the packet forwarding test. The initial lcore is reserved for " "command line parsing only, and cannot be masked on for " "packet forwarding.\n"); printf(" --portmask=PORTMASK: hexadecimal bitmask of ports used " diff --git a/app/test-pmd/softnicfwd.c b/app/test-pmd/softnicfwd.c index e9d437364467..d773551845e4 100644 --- a/app/test-pmd/softnicfwd.c +++ b/app/test-pmd/softnicfwd.c @@ -654,7 +654,7 @@ softnic_fwd_begin(portid_t pi) if (!rte_lcore_is_enabled(lcore)) continue; - if (lcore == rte_get_master_lcore()) + if (lcore == rte_get_initial_lcore()) continue; if (fwd_core_present == 0) { diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 4989d22ca86c..a68ef351e37e 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -83,7 +83,7 @@ uint16_t verbose_level = 0; /**< Silent by default. */ int testpmd_logtype; /**< Log type for testpmd logs */ -/* use master core for command line ? */ +/* use initial core for command line ? */ uint8_t interactive = 0; uint8_t auto_start = 0; uint8_t tx_first; @@ -552,7 +552,7 @@ set_default_fwd_lcores_config(void) } socket_ids[num_sockets++] = sock_num; } - if (i == rte_get_master_lcore()) + if (i == rte_get_initial_lcore()) continue; fwd_lcores_cpuids[nb_lc++] = i; }