[dts] [PATCH V1] tests/vm2vm_virtio_net_perf:add create_eal_parameters function.

zhu,shuai shuaix.zhu at intel.com
Tue Feb 25 10:32:29 CET 2020



Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_vm2vm_virtio_net_perf.py | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py b/tests/TestSuite_vm2vm_virtio_net_perf.py
index 13640a3..cc48905 100644
--- a/tests/TestSuite_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_vm2vm_virtio_net_perf.py
@@ -84,17 +84,12 @@ class TestVM2VMVirtioNetPerf(TestCase):
             zerocopy_arg = ",dequeue-zero-copy=1"
         else:
             zerocopy_arg = ""
-        eal_params = self.dut.create_eal_parameters(cores=self.cores_list,
-                                prefix='vhost', no_pci=True)
-        self.command_line = self.dut.target + "/app/testpmd %s " + \
-            "--socket-mem %s --legacy-mem " + \
-            "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1%s' " + \
-            "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1%s' " + \
-            "-- -i --nb-cores=1 --txd=1024 --rxd=1024"
-
-        self.command_line = self.command_line % (
-                            eal_params, self.socket_mem, self.base_dir,
-                            zerocopy_arg, self.base_dir, zerocopy_arg)
+        testcmd = self.dut.target + "/app/testpmd "
+        vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1%s' " % (self.base_dir, zerocopy_arg)
+        vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1%s' " % (self.base_dir, zerocopy_arg)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores_list, prefix='vhost', no_pci=True)
+        para = " -- -i --nb-cores=1 --txd=1024 --rxd=1024"
+        self.command_line = testcmd + eal_params + vdev1 + vdev2 + para
         self.pmd_vhost.execute_cmd(self.command_line, timeout=30)
         self.pmd_vhost.execute_cmd('start', timeout=30)
 
-- 
2.17.2



More information about the dts mailing list