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 A0465A04B7; Tue, 13 Oct 2020 17:32:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 270761DD77; Tue, 13 Oct 2020 17:27:37 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 46ED91DD17 for ; Tue, 13 Oct 2020 17:27:34 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id gm14so42555pjb.2 for ; Tue, 13 Oct 2020 08:27:34 -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=a0z7r16d0ZeHHG9q5BcGyVtahTB/OGNxQ5C6knImBzc=; b=Fu8hKSd6jn1EEU1CE4REG8tCYuYSRWOXSmrq0jZ1IaKqh9JUGeVh8mICRDqPaF4wSu NkfgMcscRTTwXtlqKvGyw7fBzNMtx7LDuZpBlzgQcE6UqiN+hVpzJSTfFjJ6eyGidUyu 24YafyOlzjWN3RWjIiiync4pRI2v/hRNg/Iake5zXpE3f+CipHeLGGna9g1ncB1ekJoN oxdALmb6mnnDUMvxE+8Xq+WGvKnY5x41XrQIj39YXi1bOF8WefztdjFEBq5H868cKSkl D3FjkFu0d6YVhcQmTRX3847kRml0fiVBD2U+5bdYzq7l/8w3kn+HRyKfiMYtoW264UVI T6yw== 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=a0z7r16d0ZeHHG9q5BcGyVtahTB/OGNxQ5C6knImBzc=; b=rFC+XNqC9kADFIO/vI/PwVWOWviZNA6+1AgUnOURQsz8LArE1JTLIXyEXjJVvOt835 ArK2hErSbiMoMtgXa5pA4pBe+AeaIJ1uZBxlp8/19TueArTtSe9wS7BCuekK3baaXR+a 95/TC+Z/6QjF+B93kFx0R+SWI6iKMDIfuoqqey36boohKK26/mcMnoIz61uqvpAiM0dF lD3HcuILfuMyKkzxaBuGBrR8R/67CU874cAlyHbfqs3diRmcarSGQOXZqGVd+YQad6pr nWagVOtikMyMIgxPgndPKRFMvc9aBEINHX7yU24LPWo3wV+vyi4leqUN7oJfdstKvGzR FoCw== X-Gm-Message-State: AOAM530nYASW1LJqz0Ze71ZdR5FeW0EScuMpHRsI6IsjXEvoB+Wi+wEY FDKdi5fE9pSXq+paMe4B1TRDhC7RI7wJnA== X-Google-Smtp-Source: ABdhPJzy92TCzTgJP4ZajLpE7IIOc7ReW1TLImRzDFsJCLpAYOO8LhQwKJiDbW/YrL7g26eNr8u68w== X-Received: by 2002:a17:902:6845:b029:d4:d1d5:2139 with SMTP id f5-20020a1709026845b02900d4d1d52139mr3242pln.53.1602602851176; Tue, 13 Oct 2020 08:27:31 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id z12sm23815233pfr.197.2020.10.13.08.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 08:27:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Tue, 13 Oct 2020 08:26:05 -0700 Message-Id: <20201013152610.2589-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201013152610.2589-1-stephen@networkplumber.org> References: <20200914182002.6750-1-stephen@networkplumber.org> <20201013152610.2589-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 13/18] examples/multi_process: replace 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" Replace master with main and slave with worker. Fix the wording in comments. Acked-by: Anatoly Burakov Signed-off-by: Stephen Hemminger --- .../multi_process/client_server_mp/mp_server/main.c | 10 +++++----- examples/multi_process/simple_mp/main.c | 4 ++-- examples/multi_process/symmetric_mp/main.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c index 280dab867281..ec7f6b11f30e 100644 --- a/examples/multi_process/client_server_mp/mp_server/main.c +++ b/examples/multi_process/client_server_mp/mp_server/main.c @@ -84,7 +84,7 @@ get_printable_mac_addr(uint16_t port) /* * This function displays the recorded statistics for each port * and for each client. It uses ANSI terminal codes to clear - * screen when called. It is called from a single non-master + * screen when called. It is called from a single worker * thread in the server process, when the process is run with more * than one lcore enabled. */ @@ -146,7 +146,7 @@ do_stats_display(void) } /* - * The function called from each non-master lcore used by the process. + * The function called from each worker lcore used by the process. * The test_and_set function is used to randomly pick a single lcore on which * the code to display the statistics will run. Otherwise, the code just * repeatedly sleeps. @@ -244,7 +244,7 @@ process_packets(uint32_t port_num __rte_unused, } /* - * Function called by the master lcore of the DPDK process. + * Function called by the main lcore of the DPDK process. */ static void do_packet_forwarding(void) @@ -297,8 +297,8 @@ main(int argc, char *argv[]) /* clear statistics */ clear_stats(); - /* put all other cores to sleep bar master */ - rte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MASTER); + /* put all other cores to sleep except main */ + rte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MAIN); do_packet_forwarding(); return 0; diff --git a/examples/multi_process/simple_mp/main.c b/examples/multi_process/simple_mp/main.c index fc79528462e9..86b7d244a91f 100644 --- a/examples/multi_process/simple_mp/main.c +++ b/examples/multi_process/simple_mp/main.c @@ -108,12 +108,12 @@ main(int argc, char **argv) RTE_LOG(INFO, APP, "Finished Process Init.\n"); - /* call lcore_recv() on every slave lcore */ + /* call lcore_recv() on every worker lcore */ RTE_LCORE_FOREACH_SLAVE(lcore_id) { rte_eal_remote_launch(lcore_recv, NULL, lcore_id); } - /* call cmd prompt on master lcore */ + /* call cmd prompt on main lcore */ struct cmdline *cl = cmdline_stdin_new(simple_mp_ctx, "\nsimple_mp > "); if (cl == NULL) rte_exit(EXIT_FAILURE, "Cannot create cmdline instance\n"); diff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c index 33643d354ee9..ae7f5e0d5076 100644 --- a/examples/multi_process/symmetric_mp/main.c +++ b/examples/multi_process/symmetric_mp/main.c @@ -470,7 +470,7 @@ main(int argc, char **argv) RTE_LOG(INFO, APP, "Finished Process Init.\n"); - rte_eal_mp_remote_launch(lcore_main, NULL, CALL_MASTER); + rte_eal_mp_remote_launch(lcore_main, NULL, CALL_MAIN); return 0; } -- 2.27.0