test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [DTS][PATCH 2/2] Update vhost-cuse qemu start up commands in testcase
@ 2015-07-20  4:59 Qian Xu
  0 siblings, 0 replies; only message in thread
From: Qian Xu @ 2015-07-20  4:59 UTC (permalink / raw)
  To: dts

Update vhost-cuse qemu start up commands with some virtio parameters. 

Signed-off-by: Qian Xu <qian.q.xu@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-20  4:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20  4:59 [dts] [DTS][PATCH 2/2] Update vhost-cuse qemu start up commands in testcase Qian Xu

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