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 C283DA0350; Wed, 1 Jul 2020 21:47:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18CDA1C225; Wed, 1 Jul 2020 21:47:07 +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 DAB911C1DF for ; Wed, 1 Jul 2020 21:47:04 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id m9so1177763pfh.0 for ; Wed, 01 Jul 2020 12:47:04 -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=DwxcIiMWchtyBs/ij4VEWyRGTBYrGv2/kMJF6ZedhZifrpALi6jy448ky9sFat7UyU 8S1LAE/4vCCgVd645t8HbE2RAC261PW1FW60yT68ERZfrAkmdWUVZ1lifeqMWORcZYQB nT7t78lvAoszav9O+J/kXeSbE6huUUHpGpvfJKcssuRySXpB3EMthyUi+XW5k03DI5xt 0lp7KJ+orEDMkUOFyjNYCLF/M6xn44m/VhPUJrsByhq03JBGAV/4vTaY2cN73U8pKdj1 WaQfd/unJzu0XK+6H0KY3bG4DLgd/8Dx8Uw0R4DT+2XCUbpsHl2JPAOjTAbVjRma8E0M gkvQ== 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=fJ+xSqj3Vn7UQUXStyhjGb33RAc44KBHCYW4/sHHBMyjR+MD4k/gWlOQEKOm8L2MUZ m7WpmNeRxFwOeVJpIbC9zM3EmImD6HwbscfCDiPRFJ7S8akQRaIbiuGlB3HqFwOSoAre D1lPXBzsLbTghWPvNbGNERwXY1lZfKRwAsG7t1KJ2Qx6KLv49JHsPg0QMiFkFfw7Sx5D B9b41efYzXyx1/poXlMVWs3G5R3LsdQkt4OdFszy5oY6dz/hXGrScknmJgACl+t+OExf 8hJo1fk+QtP6wZe8F2ubQHTYcx3ULjtfQ9UPZhG0vpqrhccJyB7DVsTsB0jVmANtCBei ilxQ== X-Gm-Message-State: AOAM531431AxCwXPHEtST6SFIuzaduxKkJx9u4FkaaF7ZnbCSv4I3Hx5 6F0lPIAnS/4AjsnJBeYOeoo9l4aQO44= X-Google-Smtp-Source: ABdhPJwWLDdp5VkXU+gMgPF+PcaWg4Gjsxw51a3qcaJnvPc0Fp4tD3Dvj076b9y+5A3B2L3o7bu3Bw== X-Received: by 2002:a62:7e51:: with SMTP id z78mr9488659pfc.3.1593632823645; Wed, 01 Jul 2020 12:47:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:26 -0700 Message-Id: <20200701194650.10705-4-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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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