test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] add cpu_id for single cpu on socket 0
@ 2019-07-02  1:49 xiao,qimai
  2019-07-02  2:11 ` Yao, BingX Y
  2019-07-03  5:52 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xiao,qimai @ 2019-07-02  1:49 UTC (permalink / raw)
  To: dts; +Cc: xiao,qimai

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-03  5:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02  1:49 [dts] [PATCH V1] add cpu_id for single cpu on socket 0 xiao,qimai
2019-07-02  2:11 ` Yao, BingX Y
2019-07-03  5:52 ` Tu, Lijuan

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).