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 7AD70A04DB; Fri, 16 Oct 2020 01:04:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9CCF71E8B8; Fri, 16 Oct 2020 00:58:31 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id EE3A01E570 for ; Fri, 16 Oct 2020 00:58:14 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id c20so321189pfr.8 for ; Thu, 15 Oct 2020 15:58:14 -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=8az8/JDgyeVHML6Fyn4aTjQk/m2nPVkxW8lSZ3opPF0=; b=qAPmjJ0BtA1Qbgb/J/LMYkCRi3pkPs7mZSKxMEJVB8xLX5AFgeby5nGbnaaFe3LuP/ dNiGc7lp+Lvu2yR/li04YjfjdQM6Q+gM2tdozIY5fzfmdbo6EqSOHgBo53dCEBSYk16+ ounmuEL/aOLYadmSH+LgsG4eMJwld0zDGZqStocI422e0ZxWHxatxvI9ew+XYlwnPRXO yAZOUOcPuffLF4sbBW0bQXrV1s1/9nrDNebHGWwUzfIdZD2AyCPO8yyVRkhYuVYxktdH JWyoT4JN1rfUAChE7vsrkw8Lzpt7OF2aeYyFLeY3yfIo8SmUr43qRUXNhUe3+JkbwAzA JwKw== 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=8az8/JDgyeVHML6Fyn4aTjQk/m2nPVkxW8lSZ3opPF0=; b=QpLz8vXlEuXiUITThN1FheCw7wE/+MYy+l3joAhhU6nt0OWAdOxNjz6tKupUiTmOt5 UpmNLHdRkHbobFULruyvuLX1VqR6ct0UCCg0w+gJN4Kdme0XllCtNkFv9/hrO6d/KuxF wQHfNhmTIaRMx0Bwvf0Gtt+K1xASYL3PiPFN6OjgZATf5BqfEOy5H7EhiO7gBLyb0Ls3 Q2IZ/oM9lWaexGsB65diE9wRLLucAp74AvMgFsDMQumQ9hQQS5mayYRzQIGRfUT0TKrs S220UCowzkQwLGRAu9aNReEAldrOhIa4/BvoSTZ/eFfxex8/q9FA3PFILbrX+ayaYAPH iZAQ== X-Gm-Message-State: AOAM532Ewi0D3A0xItgNfpZ3EnYx8v4/X1MY20GpxL0YPlaZHnoZRyh+ 4PhfDtyC+JCYeOJjBUGowSkKcuqwbEJWeQ== X-Google-Smtp-Source: ABdhPJyqigunw6L8UxLRZ9uKnyLetx5dpjWj/hUC943chZTxYIJn6X6vCwbqMzV5468JNfBEg8HOGg== X-Received: by 2002:a62:cf81:0:b029:152:4f70:7d9b with SMTP id b123-20020a62cf810000b02901524f707d9bmr843267pfg.64.1602802692736; Thu, 15 Oct 2020 15:58:12 -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 x4sm324055pfm.86.2020.10.15.15.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 15:58:12 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 15 Oct 2020 15:57:35 -0700 Message-Id: <20201015225736.12167-20-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201015225736.12167-1-stephen@networkplumber.org> References: <20200911190701.29171-1-stephen@networkplumber.org> <20201015225736.12167-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v7 19/20] drivers/octeontx2: replace master/slave wording 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" This test uses master/slave to describe the main thread versus worker thread. Signed-off-by: Stephen Hemminger --- drivers/event/octeontx2/otx2_evdev_selftest.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/event/octeontx2/otx2_evdev_selftest.c b/drivers/event/octeontx2/otx2_evdev_selftest.c index 8440a50aa7ad..334a9ccb7c77 100644 --- a/drivers/event/octeontx2/otx2_evdev_selftest.c +++ b/drivers/event/octeontx2/otx2_evdev_selftest.c @@ -586,8 +586,8 @@ wait_workers_to_join(const rte_atomic32_t *count) } static inline int -launch_workers_and_wait(int (*master_worker)(void *), - int (*slave_workers)(void *), uint32_t total_events, +launch_workers_and_wait(int (*main_thread)(void *), + int (*worker_thread)(void *), uint32_t total_events, uint8_t nb_workers, uint8_t sched_type) { rte_atomic32_t atomic_total_events; @@ -623,9 +623,9 @@ launch_workers_and_wait(int (*master_worker)(void *), w_lcore = rte_get_next_lcore( /* start core */ -1, - /* skip master */ 1, + /* skip main */ 1, /* wrap */ 0); - rte_eal_remote_launch(master_worker, ¶m[0], w_lcore); + rte_eal_remote_launch(main_thread, ¶m[0], w_lcore); for (port = 1; port < nb_workers; port++) { param[port].total_events = &atomic_total_events; @@ -634,7 +634,7 @@ launch_workers_and_wait(int (*master_worker)(void *), param[port].dequeue_tmo_ticks = dequeue_tmo_ticks; rte_smp_wmb(); w_lcore = rte_get_next_lcore(w_lcore, 1, 0); - rte_eal_remote_launch(slave_workers, ¶m[port], w_lcore); + rte_eal_remote_launch(worker_thread, ¶m[port], w_lcore); } rte_smp_wmb(); -- 2.27.0