From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by dpdk.org (Postfix) with ESMTP id 291822BB4 for ; Thu, 17 Mar 2016 12:34:49 +0100 (CET) Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Mar 2016 21:34:44 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 17 Mar 2016 21:34:41 +1000 X-IBM-Helo: d23dlp02.au.ibm.com X-IBM-MailFrom: gowrishankar.m@linux.vnet.ibm.com X-IBM-RcptTo: dts@dpdk.org Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 800ED2BB0054 for ; Thu, 17 Mar 2016 22:34:40 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2HBYSff61341936 for ; Thu, 17 Mar 2016 22:34:40 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2HBY4rg001278 for ; Thu, 17 Mar 2016 22:34:04 +1100 Received: from chozha.in.ibm.com ([9.124.211.220]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u2HBY1EQ000924; Thu, 17 Mar 2016 22:34:03 +1100 From: Gowrishankar To: dts Cc: Gowri Shankar Date: Thu, 17 Mar 2016 17:03:41 +0530 Message-Id: <1458214421-9768-1-git-send-email-gowrishankar.m@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.10.4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16031711-0029-0000-0000-00004477013C Subject: [dts] [PATCH] framework: fix lscpu parsing for numa id instead of phy socket id X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 11:34:51 -0000 From: Gowri Shankar NIC ports associate with numa node number, as our tests parse sysfs for their ports. In recent patch on CPU info parsing, lscpu -p was used to prepare cores list in which, socket ID column was used for phy socket. Ideally it should have been numa column which our tests look for (eg, pmd test). Signed-off-by: Gowrishankar --- framework/crb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/crb.py b/framework/crb.py index 33ceb8c..3194f69 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -504,7 +504,7 @@ class Crb(object): core_id = 0 coremap = {} for line in cpuinfo: - (thread, core, socket) = line.split(',')[0:3] + (thread, core, unused, socket) = line.split(',')[0:4] if core not in coremap.keys(): coremap[core] = core_id -- 1.7.10.4