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 DD67BA0553; Mon, 17 Feb 2020 13:10:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4EE41DAA5; Mon, 17 Feb 2020 13:10:57 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B650E1DAA7 for ; Mon, 17 Feb 2020 13:10:55 +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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 04:10:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,452,1574150400"; d="scan'208";a="348488027" 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:54 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Mon, 17 Feb 2020 20:05:39 +0800 Message-Id: <1581941147-230859-3-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1581941147-230859-1-git-send-email-qimaix.xiao@intel.com> References: <1581941147-230859-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 03/11]tests/TestSuite_loopback_multi_paths_port_restart: 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_loopback_multi_paths_port_restart.py | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index b1bd32f..0b54b8d 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -57,8 +57,6 @@ class TestLoopbackPortRestart(TestCase): self.core_config, socket=self.ports_socket) self.core_list_user = self.core_list[0:2] self.core_list_host = self.core_list[2:5] - self.core_mask_user = utils.create_mask(self.core_list_user) - self.core_mask_host = utils.create_mask(self.core_list_host) def set_up(self): """ @@ -81,13 +79,8 @@ class TestLoopbackPortRestart(TestCase): """ self.dut.send_expect("killall -s INT testpmd", "#") self.dut.send_expect("rm -rf ./vhost-net*", "#") - command_client = self.dut.target + "/app/testpmd " + \ - " -n %d -c %s --socket-mem 1024,1024 " + \ - " --legacy-mem --no-pci --file-prefix=vhost " + \ - " --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' " + \ - " -- -i --nb-cores=1 --txd=1024 --rxd=1024" - command_line_client = command_client % ( - self.dut.get_memory_channels(), self.core_mask_host) + eal_param = self.dut.create_eal_parameters(cores=self.core_list_host, prefix='vhost', no_pci=True, vdevs=['net_vhost0,iface=vhost-net,queues=1,client=0']) + command_line_client = self.dut.target + "/app/testpmd " + eal_param + " -- -i --nb-cores=1 --txd=1024 --rxd=1024" self.vhost.send_expect(command_line_client, "testpmd> ", 120) self.vhost.send_expect("set fwd mac", "testpmd> ", 120) @@ -95,13 +88,8 @@ class TestLoopbackPortRestart(TestCase): """ start testpmd of vhost user """ - command_line_user = self.dut.target + "/app/testpmd -n %d -c %s --socket-mem 1024,1024 " + \ - "--legacy-mem --no-pci --file-prefix=virtio " + \ - "--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,%s " + \ - " -- -i %s --rss-ip --nb-cores=1 --txd=1024 --rxd=1024" - command_line_user = command_line_user % (self.dut.get_memory_channels(), - self.core_mask_user, - pmd_arg["version"], pmd_arg["path"]) + eal_param = self.dut.create_eal_parameters(cores=self.core_list_user, prefix='virtio', no_pci=True, vdevs=['net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,%s' % pmd_arg["version"]]) + command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --rss-ip --nb-cores=1 --txd=1024 --rxd=1024" % pmd_arg["path"] self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) self.virtio_user.send_expect("start", "testpmd> ", 120) -- 1.8.3.1