From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF085A0553; Mon, 17 Feb 2020 13:10:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 798941DAA1; Mon, 17 Feb 2020 13:10:50 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A41041DAA0 for ; Mon, 17 Feb 2020 13:10:48 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 04:10:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,452,1574150400"; d="scan'208";a="348488011" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by fmsmga001.fm.intel.com with ESMTP; 17 Feb 2020 04:10:46 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Mon, 17 Feb 2020 20:05:37 +0800 Message-Id: <1581941147-230859-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1 01/11]tests/TestSuite_dpdk_gro_lib: optimize testpmd eal parameters 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xiao Qimai --- tests/TestSuite_dpdk_gro_lib.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index f9b7d76..2f89207 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -81,9 +81,8 @@ class TestDPDKGROLib(TestCase): self.verify(self.dut.number_of_cores >= 3, "There has not enought cores to test this case %s" % self.suite_name) cores_list = self.dut.get_core_list("1S/3C/1T", socket=self.socket) - vhost_list = cores_list[0:2] + self.vhost_list = cores_list[0:2] self.qemu_cpupin = cores_list[2:3][0] - self.core_mask_vhost = utils.create_mask(vhost_list) # Set the params for VM self.virtio_ip1 = "1.1.1.2" @@ -112,11 +111,8 @@ class TestDPDKGROLib(TestCase): # mode 2 : tcp traffic heavy mode # mode 3 : vxlan traffic light mode # mode 4 : tcp traffic flush 4 - self.testcmd = self.target + "/app/testpmd -c %s -n %d --socket-mem %s --legacy-mem" \ - + " --vdev 'net_vhost0,iface=%s/vhost-net,queues=1' -- -i --enable-hw-vlan-strip --tx-offloads=0x00" \ - + " --txd=1024 --rxd=1024" - self.testcmd_start = self.testcmd % ( - self.core_mask_vhost, self.memory_channel, self.socket_mem, self.base_dir) + eal_param = self.dut.create_eal_parameters(cores=self.vhost_list, vdevs=['net_vhost0,iface=%s/vhost-net,queues=1' % self.base_dir]) + self.testcmd_start = self.target + "/app/testpmd " + eal_param + " -- -i --enable-hw-vlan-strip --tx-offloads=0x00 --txd=1024 --rxd=1024" self.vhost_user = self.dut.new_session(suite="user") self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120) self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120) -- 1.8.3.1