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 0DE0CA0540; Mon, 13 Jul 2020 14:37:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DE171D6A8; Mon, 13 Jul 2020 14:37:29 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8DECF1D6A2 for ; Mon, 13 Jul 2020 14:37:26 +0200 (CEST) IronPort-SDR: DAaf6qusfbbjbZvFlgD/ELFcDfvTqd61zUiPObFM7YC8zkQTiJgl5dR8oLbXcq4lV5Gxps9wzG WrYwtl6wTbDg== X-IronPort-AV: E=McAfee;i="6000,8403,9680"; a="128655695" X-IronPort-AV: E=Sophos;i="5.75,347,1589266800"; d="scan'208";a="128655695" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2020 05:37:25 -0700 IronPort-SDR: FHs0mcY9AOGLD6Cj/4N8ArW73iT0Z2kF46a/BsG7xG+/KxG8SAneJn1tV3q2WxM/v5JciR/QOG P0/Aqz5hnrQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,347,1589266800"; d="scan'208";a="459277126" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.213.225.87]) ([10.213.225.87]) by orsmga005.jf.intel.com with ESMTP; 13 Jul 2020 05:37:24 -0700 To: Stephen Hemminger , dev@dpdk.org References: <20200604210200.25405-1-stephen@networkplumber.org> <20200701202359.17006-1-stephen@networkplumber.org> <20200701202359.17006-5-stephen@networkplumber.org> From: "Burakov, Anatoly" Message-ID: <4d6b160c-bd7a-b2d8-3b0a-8e70a2d8b008@intel.com> Date: Mon, 13 Jul 2020 13:37:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200701202359.17006-5-stephen@networkplumber.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 04/27] librte_power: change reference to rte_master_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" On 01-Jul-20 9:23 PM, Stephen Hemminger wrote: > New API name is rte_get_initial_lcore() > > Signed-off-by: Stephen Hemminger > --- > lib/librte_power/rte_power_empty_poll.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c > index 70c07b1533f3..d54a09b9d6a4 100644 > --- a/lib/librte_power/rte_power_empty_poll.c > +++ b/lib/librte_power/rte_power_empty_poll.c > @@ -452,7 +452,7 @@ rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb, > if (get_freq_index(LOW) > total_avail_freqs[i]) > return -1; > > - if (rte_get_master_lcore() != i) { > + if (rte_get_initial_lcore() != i) { > w->wrk_stats[i].lcore_id = i; > set_policy(&w->wrk_stats[i], policy); > } > Acked-by: Anatoly Burakov -- Thanks, Anatoly