[dts] [PATCH V1] tests/vm2vm_virtio_net_perf:add create_eal_parameters function.
Zhu, ShuaiX
shuaix.zhu at intel.com
Thu Feb 27 10:49:57 CET 2020
Tested-by: Zhu, ShuaiX <shuaix.zhu at intel.com>
> -----Original Message-----
> From: Zhu, ShuaiX
> Sent: Tuesday, February 25, 2020 5:32 PM
> To: dts at dpdk.org
> Cc: Wang, Yinan <yinan.wang at intel.com>; Zhu, ShuaiX <shuaix.zhu at intel.com>
> Subject: [dts][PATCH V1] tests/vm2vm_virtio_net_perf:add
> create_eal_parameters function.
>
>
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVM2VMVirtioNetPerf.log
Type: application/octet-stream
Size: 659147 bytes
Desc: TestVM2VMVirtioNetPerf.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200227/5d2a46ef/attachment.obj>
More information about the dts
mailing list