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 6F35DA0350; Sat, 6 Jun 2020 00:59:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE1DC1D57E; Sat, 6 Jun 2020 00:59:04 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id ACAD51D519 for ; Sat, 6 Jun 2020 00:59:01 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id g12so4261732pll.10 for ; Fri, 05 Jun 2020 15:59:01 -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=bvy+ET7uW96HQC5r6W4cu0vbmelrmo3X4c8z8/liS5I=; b=SjQCL8oRuUGGs0h3MrqI8a10lf0k7C7X6hp7gocYEGxYrkoT7xXxf7S85llzEcrgZU vMLxBixEZtMHlXWgkaBkd7HobVvdFfuYLoK5BGAxRFQ6B+5iFGlcueOD7/aBcaMVICSC xn0c79HCsLcVLgr25WsI7K9hM1R6wqO/rgH0+jUuExJTqMMaz79NKJgjCJ8p0lU8IHF7 A63WSQMbzAxiUWy7rpv1x6kRnyxHm5T1l+j16sEtcIF7XWfsG7nr7SYXklVOh4mRzSSh 4S/PEGcnRO/SWPyhqO/lBx6iD04Du15SaBRQdGY7maiZRoMd4yJ1SDSsJLiY/8oXk1Ts 8ipg== 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=bvy+ET7uW96HQC5r6W4cu0vbmelrmo3X4c8z8/liS5I=; b=qeqs9b9P44oEiCt4luIc7o+fX2O8xNsvcYAtuGE7ns0s7NAOym7KXB/5Asz8NWkwF1 1tnn74BnurrWTjS7LRBPCNS62iV0sAooFHM4VKhlGnBXQD1M0C8pgTb9rR8fazGvHWq6 pnkJPLBfKH1FmWd8yPRtXnnSzwMZsepvdF/tc4KBnV/lLdgfkMRwjYL8bQ5JpTEyZrxM xvkuPDEkAqKIXqcQ4T2UdpdK1bWtlbwRhwTypVNYjWOToegZqPXPL0ttLJXIuEwgVBX5 6vHEEQKHTcw8E/jzkMGVtvKQASmJ1qZhzsPBpHXF4TWUDwndP6auPHoc6J8pOOLGtnAN 4IZQ== X-Gm-Message-State: AOAM533ub2Rl7ME08pqmHXgsN3weuFiShjQswWU9ahkUBgFiOfP30qFv 9dWrl74mOxQeMx7wARs36CerhPBYHpE= X-Google-Smtp-Source: ABdhPJywftaISDnzuatOT9/AV0k2ImsFxcTBSdAQo28AV6+0TwLYIBrztOCmUJy1UXAHvmdS4pYLLw== X-Received: by 2002:a17:90a:c258:: with SMTP id d24mr5375792pjx.137.1591397939965; Fri, 05 Jun 2020 15:58:59 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j186sm543121pfb.220.2020.06.05.15.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:58:59 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:57:48 -0700 Message-Id: <20200605225811.26342-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605225811.26342-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200605225811.26342-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v2 03/26] 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 fb38dc3a72cb..06288e7f8add 100644 --- a/examples/bbdev_app/main.c +++ b/examples/bbdev_app/main.c @@ -1040,7 +1040,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); @@ -1143,9 +1143,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) { @@ -1157,15 +1157,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