From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v3] eal: add function to return number of detected sockets Date: Mon, 5 Feb 2018 17:39:41 +0000 Message-ID: References: <3cf7f9aa904a5ba53ba63d7c32539e8b78638939.1513946317.git.anatoly.burakov@intel.com> <750e30c6dcc7a22a87df9c56fb824042b1db984f.1517848624.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 689151B64F for ; Mon, 5 Feb 2018 18:39:46 +0100 (CET) In-Reply-To: <750e30c6dcc7a22a87df9c56fb824042b1db984f.1517848624.git.anatoly.burakov@intel.com> Content-Language: en-US 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 05-Feb-18 4:37 PM, Anatoly Burakov wrote: > During lcore scan, find maximum socket ID and store it. > > Signed-off-by: Anatoly Burakov > --- > > Notes: > v3: > - Added ABI backwards compatibility > > v2: > - checkpatch changes > - check socket before deciding if the core is not to be used > > lib/librte_eal/common/eal_common_lcore.c | 37 +++++++++++++++++++++---------- > lib/librte_eal/common/include/rte_eal.h | 25 +++++++++++++++++++++ > lib/librte_eal/common/include/rte_lcore.h | 8 +++++++ > lib/librte_eal/linuxapp/eal/eal.c | 27 +++++++++++++++++++++- > lib/librte_eal/rte_eal_version.map | 9 +++++++- > 5 files changed, 92 insertions(+), 14 deletions(-) > This patch does not break ABI, but does it in a very ugly way. Is it worth it? -- Thanks, Anatoly