From: "xiao,qimai" <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: "xiao,qimai" <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1] add cpu_id for single cpu on socket 0
Date: Tue, 2 Jul 2019 09:49:32 +0800 [thread overview]
Message-ID: <1562032172-122236-1-git-send-email-qimaix.xiao@intel.com> (raw)
add cpu_id for env with single cpu on socket 0
Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_flow_classify_softnic.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py
index 88dcc7e..a649a44 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -82,7 +82,10 @@ class TestFlowClassifySoftnic(TestCase):
"""
self.set_ports(filename, port_num)
TESTPMD = "./%s/app/testpmd" % self.target
- VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=1,conn_port=8086'" % filename
+ cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci
+ numa_node = int(self.dut.send_expect(cmd, "# ", 60))
+ cpu_id = numa_node if numa_node > 0 else 0
+ VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=%s,conn_port=8086'" % (filename,cpu_id)
if port_num == 4:
DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\
.format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci)
--
2.17.1
next reply other threads:[~2019-07-02 1:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 1:49 xiao,qimai [this message]
2019-07-02 2:11 ` Yao, BingX Y
2019-07-03 5:52 ` Tu, Lijuan
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=1562032172-122236-1-git-send-email-qimaix.xiao@intel.com \
--to=qimaix.xiao@intel.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).