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 577CBA0350; Wed, 1 Jul 2020 22:24:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 01FAD1D56C; Wed, 1 Jul 2020 22:24:16 +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 CA0D31D52D for ; Wed, 1 Jul 2020 22:24:12 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id cv18so5629675pjb.1 for ; Wed, 01 Jul 2020 13:24:12 -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=QuJ/bJXNZRyHpe6NihzlA53kq2xYzeNuA5myWG2lig0=; b=Hk6BAR5q4VEuQJjGN1kNzE4TS+2P42iphWrt8M+uLxtTfKu05lqAKPwA2ozBSAWM0x tcMR5Bqf0A0F1PT4RvvjRW/V/FAzIRSdIR96GIbmp8nCPU4qntGMJC+0c4ACL6xhd/yK c2mvJeuh7WsgNkjpVrDvTUr6XiC/3SPXneEv5fUsWnPImQT6/b3E85oOUEWa/pE2VX6F qwmKyG1uy6MymnR++sxapPT81Jw/CswDFG3W5eCHfyaV8s91CEHw+YAgK3liIlDAFmtl CV/MkXzmcosPGAQy/Ow9sElnXCwE22ucewnsItHvQChWqSv4hufMc85amRHRCeMsMnFT dG+A== 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=QuJ/bJXNZRyHpe6NihzlA53kq2xYzeNuA5myWG2lig0=; b=HQe3TV+4dS2i/Hhoh3jUmKsmkXQtqa1U77HjD+84f4ZZI/3+3tFs+PvS8vWICKYAMj TmjmoGViX2938rl+IBea4v5oorbVmjuJNeuKwosfSo/ujXoemIbAhoG9EeNe9tLdyhSG G+fTpyPI1F7JHRxwqcYfkow2e13ELxYSg92norAWEvq7Pt/6eHxK0/Y8GUrbwEgcmPfA 0mYmxSlSFZFZFaOrq2zC7X5Nl4rX0gpKEpRXB2s0knZEA3+wB1Gm4Clgwan2CgQnoz5z y5DFxYffTknnY6b2hiuwmuYYLT45+4bpVEbD3Fy+rwfyVkmD/lrdL8NCIxuot8ClbXJw uEAA== X-Gm-Message-State: AOAM531gwdCjSDG4b3GTdNFfQQT02hcNcywLE+aE4DOWVHaSCHl6P1/V dTT2ZN2eLUP5mqxwFqXDga/DJAKv+ws= X-Google-Smtp-Source: ABdhPJxZueWv0C8KeJcXJmEMRR72L4HBtrQe1+sj2MIzTO3DA5JkzWO4jjRyIEE8K8kK9umWzhWA5Q== X-Received: by 2002:a17:90a:658a:: with SMTP id k10mr19433328pjj.220.1593635051657; Wed, 01 Jul 2020 13:24:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:24:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 13:23:35 -0700 Message-Id: <20200701202359.17006-4-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 03/27] bbdev: rename master to initial 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" Conform to new API. Signed-off-by: Stephen Hemminger --- examples/bbdev_app/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c index 68a46050c048..d1db739d4e2f 100644 --- a/examples/bbdev_app/main.c +++ b/examples/bbdev_app/main.c @@ -1042,7 +1042,7 @@ main(int argc, char **argv) struct stats_lcore_params stats_lcore; struct rte_ring *enc_to_dec_ring; bool stats_thread_started = false; - unsigned int master_lcore_id = rte_get_master_lcore(); + unsigned int initial_lcore_id = rte_get_initial_lcore(); rte_atomic16_init(&global_exit_flag); @@ -1145,9 +1145,9 @@ main(int argc, char **argv) stats_lcore.app_params = &app_params; stats_lcore.lconf = lcore_conf; - RTE_LCORE_FOREACH_SLAVE(lcore_id) { + RTE_LCORE_FOREACH_WORKER(lcore_id) { if (lcore_conf[lcore_id].core_type != 0) - /* launch per-lcore processing loop on slave lcores */ + /* launch per-lcore processing loop on worker lcores */ rte_eal_remote_launch(processing_loop, &lcore_conf[lcore_id], lcore_id); else if (!stats_thread_started) { @@ -1159,15 +1159,15 @@ main(int argc, char **argv) } if (!stats_thread_started && - lcore_conf[master_lcore_id].core_type != 0) + lcore_conf[initial_lcore_id].core_type != 0) rte_exit(EXIT_FAILURE, "Not enough lcores to run the statistics printing loop!"); - else if (lcore_conf[master_lcore_id].core_type != 0) - processing_loop(&lcore_conf[master_lcore_id]); + else if (lcore_conf[initial_lcore_id].core_type != 0) + processing_loop(&lcore_conf[initial_lcore_id]); else if (!stats_thread_started) stats_loop(&stats_lcore); - RTE_LCORE_FOREACH_SLAVE(lcore_id) { + RTE_LCORE_FOREACH_WORKER(lcore_id) { ret |= rte_eal_wait_lcore(lcore_id); } -- 2.26.2