From: Gowrishankar <gowrishankar.m@linux.vnet.ibm.com>
To: dts <dts@dpdk.org>
Cc: Gowri Shankar <gowrishankar.m@linux.vnet.ibm.com>
Subject: [dts] [PATCH] framework: fix lscpu parsing for numa id instead of phy socket id
Date: Thu, 17 Mar 2016 17:03:41 +0530 [thread overview]
Message-ID: <1458214421-9768-1-git-send-email-gowrishankar.m@linux.vnet.ibm.com> (raw)
From: Gowri Shankar <gowrishankar.m@linux.vnet.ibm.com>
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 <gowrishankar.m@linux.vnet.ibm.com>
---
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
next reply other threads:[~2016-03-17 11:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 11:33 Gowrishankar [this message]
2016-03-18 7:31 ` Liu, Yong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458214421-9768-1-git-send-email-gowrishankar.m@linux.vnet.ibm.com \
--to=gowrishankar.m@linux.vnet.ibm.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).