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 63889A04B7; Wed, 14 Oct 2020 08:17:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FF071DBFC; Wed, 14 Oct 2020 08:04:56 +0200 (CEST) Received: from mailgw01.pantheon.sk (mailgw01.pantheon.sk [46.229.239.26]) by dpdk.org (Postfix) with ESMTP id 78FBA1DBE1 for ; Wed, 14 Oct 2020 08:04:54 +0200 (CEST) Received: from mailgw01.pantheon.sk (localhost.localdomain [127.0.0.1]) by mailgw01.pantheon.sk (Proxmox) with ESMTP id 31AD2202571; Wed, 14 Oct 2020 08:04:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; h=cc:cc:content-transfer-encoding:content-type:content-type :date:from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=dkim; bh=ejBqEpO53m5D4ci9j0Vh m7qwr275wIuiOFvVw6QjM1k=; b=cOFrNPWwlsOcmziWZysHbbIZlLpdZot7fxqt pnRvPU0uma8bDygVNr2ovYK3PVaR4z3pcPk5pLMC+ZrDhJK5FCnz7afyNdJBnEZm Bf9bdSySXpDvl9ml+QhCUQXOXV/xt/+dxJrssFG1CbkeE3n9VuZVBP0BBjDqvW7l Z6stTUenIZofZk18iWTatYGmBv/XeyDOLqTRjBVYVX44R0K31bebu/PgrPtvlfF7 ytX5F0psM3MbKsS2kKPijOV528gPZCsHlCuFdEqHW4V8kedWQrOSmjnhSSlvsira iHsXfFDHZs5F3KmI+c3lRYSi85uBsU66Wu/3MXkkAB8jENUC+Q== From: =?utf-8?B?SnVyYWogTGlua2XFoQ==?= To: Bruce Richardson CC: "Ruifeng.Wang@arm.com" , "Honnappa.Nagarahalli@arm.com" , "Phil.Yang@arm.com" , "vcchunga@amazon.com" , "Dharmik.Thakkar@arm.com" , "jerinjacobk@gmail.com" , "hemant.agrawal@nxp.com" , "dev@dpdk.org" Thread-Topic: [RFC PATCH v2 3/6] build: automatic NUMA and cpu counts detection Thread-Index: AQHWoXDPVViXoABmmkq7PndJsCV+pamVjAiAgAENE+A= Date: Wed, 14 Oct 2020 06:04:52 +0000 Message-ID: <42b8d77b7d764e0789fb74ef2f9401d4@pantheon.tech> References: <1600867161-15673-1-git-send-email-juraj.linkes@pantheon.tech> <1602600882-695-1-git-send-email-juraj.linkes@pantheon.tech> <1602600882-695-4-git-send-email-juraj.linkes@pantheon.tech> <20201013154757.GC1496@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20201013154757.GC1496@bricha3-MOBL.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.101.4.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC PATCH v2 3/6] build: automatic NUMA and cpu counts detection 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" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnJ1Y2UgUmljaGFyZHNv biA8YnJ1Y2UucmljaGFyZHNvbkBpbnRlbC5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIE9jdG9iZXIg MTMsIDIwMjAgNTo0OCBQTQ0KPiBUbzogSnVyYWogTGlua2XFoSA8anVyYWoubGlua2VzQHBhbnRo ZW9uLnRlY2g+DQo+IENjOiBSdWlmZW5nLldhbmdAYXJtLmNvbTsgSG9ubmFwcGEuTmFnYXJhaGFs bGlAYXJtLmNvbTsNCj4gUGhpbC5ZYW5nQGFybS5jb207IHZjY2h1bmdhQGFtYXpvbi5jb207IERo YXJtaW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