From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6] eal: provide API for querying valid socket id's Date: Mon, 02 Apr 2018 17:27:40 +0200 Message-ID: <3135662.d5SUXWziWm@xps> References: <9755302ee8a1439a152408d4b1c69cc1012153e4.1521715978.git.anatoly.burakov@intel.com> <507411072.Cm6Xjx9PLX@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Bruce Richardson , chaozhu@linux.vnet.ibm.com, gowrishankar.m@linux.vnet.ibm.com To: "Burakov, Anatoly" Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 760D41B013 for ; Mon, 2 Apr 2018 17:27:45 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 31/03/2018 15:35, Burakov, Anatoly: > On 27-Mar-18 5:24 PM, Thomas Monjalon wrote: > > 22/03/2018 13:36, Anatoly Burakov: > >> --- a/lib/librte_eal/common/include/rte_eal.h > >> +++ b/lib/librte_eal/common/include/rte_eal.h > >> @@ -57,6 +57,9 @@ enum rte_proc_type_t { > >> struct rte_config { > >> uint32_t master_lcore; /**< Id of the master lcore */ > >> uint32_t lcore_count; /**< Number of available logical cores. */ > >> + uint32_t numa_node_count; /**< Number of detected NUMA nodes. */ > >> + uint32_t numa_nodes[RTE_MAX_NUMA_NODES]; > >> + /**< List of detected numa nodes. */ > > > > Please keep this comment on the same line if it's below 99 chars. > > If this is allowed, can we fix checkpatch to not report error in these > cases? Checkpatch is just a tool, not an authority. In this case, given all other lines are formatted with comments at the end of lines, it is better to do the same if the line size is reasonnable.