[dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
lihong
lihongx.ma at intel.com
Tue Feb 18 08:04:52 CET 2020
Signed-off-by: lihong <lihongx.ma at 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 f707d1e..f2320be 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase):
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
- eal_params = self.dut.create_eal_parameters(cores=self.cores)
+ ports_info = []
+ for i in range(port_num):
+ ports_info.append(i)
+ eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=ports_info)
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:
cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params)
--
2.17.2
More information about the dts
mailing list