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 1908EA04B7; Wed, 14 Oct 2020 17:31:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 753231DEE1; Wed, 14 Oct 2020 17:28:23 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id 8D6091DEBF for ; Wed, 14 Oct 2020 17:28:15 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id u3so1375pjr.3 for ; Wed, 14 Oct 2020 08:28:15 -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=Y3aaE9OGA/mZnkFZYNEbYHN9r1yOV/2+5XTLgeuR39Y=; b=Pa7zqrm/CviVRsnP4yZoLd7KrDdch6rh2oICGrgL5LyxNVjyLNgw4uE+Y1xXnjIkuf gAckC3CMes6Hpi4HprUfnT8siptAS3dTpll0ZMfUSLOV27t5NwsUqxfQbHFQPjeuPD0A cgiPFyy69prgqRDF4TcnEJ35kguyeHp076vuUfWys59BMD/fAFPspfaOrKC2m8EmoT7r feMOYiAvwjURU0YagsOkfSUVP+XcbNjZ2545Kz3pWTuFDNBfBoR43xvweBjwgn90vP9T V9LZBbiA4V5SKYfLNgk2ueIWPQoTCrPjAcR/zYVMkUuSGV+j/38R8h0XptMBa3eBjsRZ gD2Q== 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=Y3aaE9OGA/mZnkFZYNEbYHN9r1yOV/2+5XTLgeuR39Y=; b=DnuO8wA4BYqxgWnwnw5E4t4xmC3TLpOkFjcX7z7lXFmNtXJYGPq5X8Pt+csfGpOsGf G7Pvn6lGSASNQFiMLe13FfL/O1nFYxIoZrF7nVkV27m3LLDhr+3eBn51cAdQIjA27BIN OtHQCuv0otnizxTd8FRQFCvzEz5NhOGXxp0fX/K4c6ig/LMG7bJcH5F2kjCdcU8aXqpl ndrzgz72eyGbk4QlOdvGwWFmBc6UihIRiBBEnlQT59cHneHjWf45GEnSN3mPh3hz7YTh nUnZj9PXZncQLbzDXXnybXAruJ+RNAFh539VMK8lk2k5B0ON3sBmHVV+Qo/lrBiymf2E SSVw== X-Gm-Message-State: AOAM533mGbuww955PbMTr9MS8Oc9hfwQFgcRXjQ7ISGO7H8hLiLMZiG7 J6jIP01oFHUAXYzzashTwzDgb39RWLJ5Mg== X-Google-Smtp-Source: ABdhPJzGFvMmCSW0HMgND+SYnVPBHGoLKmSlQ/tuaBnfPm2SuiQlCD/84xZ/GzMR6ziSbV0EKo9hVw== X-Received: by 2002:a17:902:fe95:b029:d4:c98c:55b6 with SMTP id x21-20020a170902fe95b02900d4c98c55b6mr4586533plm.85.1602689292940; Wed, 14 Oct 2020 08:28:12 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j11sm3653457pfh.143.2020.10.14.08.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:28:12 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Wed, 14 Oct 2020 08:27:47 -0700 Message-Id: <20201014152756.6518-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201014152756.6518-1-stephen@networkplumber.org> References: <20200911190701.29171-1-stephen@networkplumber.org> <20201014152756.6518-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 09/18] app/test-pmd: replace master lcore with main 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" Replace wording around main lcore. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 4 ++-- app/test-pmd/parameters.c | 2 +- app/test-pmd/testpmd.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 273fb1af627a..1cb4718d7e07 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -20109,7 +20109,7 @@ cmdline_read_from_file(const char *filename) printf("Read CLI commands from %s\n", filename); } -/* prompt function, called from main on MASTER lcore */ +/* prompt function, called from main on MAIN lcore */ void prompt(void) { diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 8ccd989562a9..4f8fafbcb02c 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -2929,9 +2929,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_main_lcore()) { printf("lcore %u cannot be masked on for running " - "packet forwarding, which is the master lcore " + "packet forwarding, which is the main 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 1ead59579bfc..712d9ec70b66 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -89,7 +89,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 main 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/testpmd.c b/app/test-pmd/testpmd.c index ccba71c07610..21f977cc3f3b 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 main core for command line ? */ uint8_t interactive = 0; uint8_t auto_start = 0; uint8_t tx_first; @@ -566,7 +566,7 @@ set_default_fwd_lcores_config(void) } socket_ids[num_sockets++] = sock_num; } - if (i == rte_get_master_lcore()) + if (i == rte_get_main_lcore()) continue; fwd_lcores_cpuids[nb_lc++] = i; } -- 2.27.0