From: Qian Xu <qian.q.xu@intel.com>
To: dts@dpdk.org
Subject: [dts] [DTS][PATCH 2/2] Update vhost-cuse qemu start up commands in testcase
Date: Mon, 20 Jul 2015 12:59:17 +0800 [thread overview]
Message-ID: <1437368357-4408-1-git-send-email-qian.q.xu@intel.com> (raw)
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
reply other threads:[~2015-07-20 4:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437368357-4408-1-git-send-email-qian.q.xu@intel.com \
--to=qian.q.xu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).