summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQian Xu <qian.q.xu@intel.com>2015-07-20 12:59:17 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-21 10:21:18 +0800
commit6c25dd320ca6c5b0fe23d3bac7af8321d1021a95 (patch)
tree5ba8ee12f4fae4f95a006e0bc1d8b6b437c28304
parent47a04a58a33f12db89724026f74c22713615577c (diff)
downloaddts-6c25dd320ca6c5b0fe23d3bac7af8321d1021a95.zip
dts-6c25dd320ca6c5b0fe23d3bac7af8321d1021a95.tar.gz
dts-6c25dd320ca6c5b0fe23d3bac7af8321d1021a95.tar.xz
Update vhost-cuse qemu start up commands in testcase
Update vhost-cuse qemu start up commands with some virtio parameters. Signed-off-by: Qian Xu <qian.q.xu@intel.com>
-rw-r--r--tests/TestSuite_vhost_cuse_sample.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/TestSuite_vhost_cuse_sample.py b/tests/TestSuite_vhost_cuse_sample.py
index 30b78ce..161700b 100644
--- a/tests/TestSuite_vhost_cuse_sample.py
+++ b/tests/TestSuite_vhost_cuse_sample.py
@@ -107,7 +107,7 @@ class TestVhostCUSESample(TestCase, IxiaPacketGenerator):
self.dst1 = "192.168.3.1"
self.dst2 = "192.168.4.1"
self.vm_dut = None
-
+ self.virtio_cmd_params = 'csum=off,gso=off,guest_csum=off,guest_tso4=off,guest_tso6=off,guest_ecn=off'
# Define the table columns
self.header_row = ["Test", "Mode", "Frame", "Mpps", "% linerate"]
self.memory_channel = 4
@@ -185,10 +185,12 @@ class TestVhostCUSESample(TestCase, IxiaPacketGenerator):
vm_params = {}
vm_params['driver'] = 'vhost-cuse'
vm_params['opt_mac'] = self.virtio1_mac
+ vm_params['opt_settings'] = self.virtio_cmd_params
self.vm.set_vm_device(**vm_params)
+
vm_params['opt_mac'] = self.virtio2_mac
+ vm_params['opt_settings'] = self.virtio_cmd_params
self.vm.set_vm_device(**vm_params)
- print "cuse setup is done, vm_params: ", vm_params
try:
self.vm_dut = self.vm.start(auto_portmap=False)
if self.vm_dut is None:
@@ -414,7 +416,7 @@ class TestVhostCUSESample(TestCase, IxiaPacketGenerator):
linerate = self.wirespeed(self.nic, frame_size, 1)
pct = pps * 100 / linerate
scenario = self.running_case
- mode = "vhost user"
+ mode = "vhost cuse"
data_row = [scenario, mode, frame_size, str(pps), str(pct)]
dts.results_table_add_row(data_row)