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 A44A8A058A; Wed, 25 Mar 2020 09:17:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE5561BFA6; Wed, 25 Mar 2020 09:17:31 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6AD611BE8A for ; Wed, 25 Mar 2020 09:17:30 +0100 (CET) IronPort-SDR: ZjL6nW7yz3Xio29J3wneoxlxSK7Vf2qNQEGPeN16jN/vJxC3ZHMmPlt+HRHk5/Az1zAqctjQoL n5sNLrTQTRLw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:17:30 -0700 IronPort-SDR: HL1X+n6XZXa8OvnmlyUVZiQtDd7umMPHqtN4OGJTcVm+XDUPDST49qafjVSCbermafb2NAjXBC aeajoFYW1TiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071528" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:17:28 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:48 +0800 Message-Id: <1585123857-130281-2-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 02/11]loopback_multi_queues: update script according to testplan's update 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_queues.py | 55 +++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_loopback_multi_queues.py b/tests/TestSuite_loopback_multi_queues.py index 589bf06..174ce01 100644 --- a/tests/TestSuite_loopback_multi_queues.py +++ b/tests/TestSuite_loopback_multi_queues.py @@ -98,7 +98,7 @@ class TestLoopbackMultiQueues(TestCase): start testpmd on virtio """ 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,queues=%d,%s' % (self.queue_number, args["version"])]) - command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --rss-ip --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024" % (args["path"], self.nb_cores, self.queue_number, self.queue_number) + command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024" % (args["path"], self.nb_cores, self.queue_number, self.queue_number) 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) @@ -162,6 +162,7 @@ class TestLoopbackMultiQueues(TestCase): if self.queue_number > 1: self.check_packets_of_each_queue(frame_size) + def verify_liner_for_multi_queue(self): """ verify the Mpps of 8 queues is eight times of 1 queue @@ -191,7 +192,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP virtio 1.1 Mergeable Path. """ virtio_pmd_arg = {"version": "in_order=0,packed_vq=1,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -209,7 +210,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP virtio1.1 Normal Path. """ virtio_pmd_arg = {"version": "in_order=0,packed_vq=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -227,7 +228,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP In_order mergeable Path. """ virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -245,7 +246,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP In_order no_mergeable Path. """ virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -263,12 +264,14 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP Mergeable Path. """ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i self.get_core_mask() self.start_vhost_testpmd() + if self.queue_number == 8: + virtio_pmd_arg["path"] = "--enable-hw-vlan-strip" self.start_virtio_testpmd(virtio_pmd_arg) self.send_and_verify("virito mergeable") self.close_all_testpmd() @@ -281,7 +284,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP Normal Path. """ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} + "path": "--enable-hw-vlan-strip"} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -299,7 +302,7 @@ class TestLoopbackMultiQueues(TestCase): performance for Vhost PVP Vector_RX Path """ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", - "path": "--tx-offloads=0x0"} + "path": ""} for i in self.verify_queue: self.nb_cores = i self.queue_number = i @@ -312,6 +315,42 @@ class TestLoopbackMultiQueues(TestCase): self.result_table_print() self.verify_liner_for_multi_queue() + def test_loopback_with_virtio11_inorder_mergeable_path_multi_queue(self): + """ + performance for Vhost PVP Vector_RX Path + """ + virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=1,in_order=1", + "path": ""} + for i in self.verify_queue: + self.nb_cores = i + self.queue_number = i + self.get_core_mask() + self.start_vhost_testpmd() + self.start_virtio_testpmd(virtio_pmd_arg) + self.send_and_verify("virtio 1.1 inorder mergeable") + self.close_all_testpmd() + + self.result_table_print() + self.verify_liner_for_multi_queue() + + def test_loopback_with_virtio11_inorder_nonmergeable_path_multi_queue(self): + """ + performance for Vhost PVP Vector_RX Path + """ + virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1", + "path": ""} + for i in self.verify_queue: + self.nb_cores = i + self.queue_number = i + self.get_core_mask() + self.start_vhost_testpmd() + self.start_virtio_testpmd(virtio_pmd_arg) + self.send_and_verify("virtio 1.1 inorder non-mergeable") + self.close_all_testpmd() + + self.result_table_print() + self.verify_liner_for_multi_queue() + def tear_down(self): """ Run after each test case. -- 1.8.3.1