From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 693A7C3CE for ; Mon, 20 Jul 2015 06:59:26 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 19 Jul 2015 21:59:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,507,1432623600"; d="scan'208";a="750540343" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 19 Jul 2015 21:59:24 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6K4xMJr004202; Mon, 20 Jul 2015 12:59:22 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6K4xK7X004444; Mon, 20 Jul 2015 12:59:22 +0800 Received: (from qxu10@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6K4xKnV004440; Mon, 20 Jul 2015 12:59:20 +0800 From: Qian Xu To: dts@dpdk.org Date: Mon, 20 Jul 2015 12:59:17 +0800 Message-Id: <1437368357-4408-1-git-send-email-qian.q.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [DTS][PATCH 2/2] Update vhost-cuse qemu start up commands in testcase X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 04:59:26 -0000 Update vhost-cuse qemu start up commands with some virtio parameters. Signed-off-by: Qian Xu 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