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 C865EA0562; Tue, 31 Mar 2020 05:00:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C0A001C07C; Tue, 31 Mar 2020 05:00:40 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7E6742B8B for ; Tue, 31 Mar 2020 05:00:38 +0200 (CEST) IronPort-SDR: qIa3ArEYhKhQe95cFOk1NqHmAAsoVBOCApy2LED95DeGZL/9jcqXl6Thf7LQGxs4CfDLMDakx1 3i03YG/B6ZoA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:00:38 -0700 IronPort-SDR: efKDcNviuXYkomUkn6sfJt1aCgdaHuCYldLb8auju0aY7n3BqRqftIUfYioPvheCafacKJpa9w jALZF7zwYWvQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="241798331" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 30 Mar 2020 20:00:37 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:00:37 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 31 Mar 2020 11:00:35 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 31 Mar 2020 11:00:35 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 02/11]loopback_multi_queues: update script according to testplan's update Thread-Index: AQHWAn3YlH63MuJdvUihJjdMnfk2pahiDBkQ Date: Tue, 31 Mar 2020 03:00:35 +0000 Message-ID: <3b7fa996190d41d7ae9f5127521a7deb@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-2-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-2-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, March 25, 2020 4:11 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1 02/11]loopback_multi_queues: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_loopback_multi_queues.py | 55 > +++++++++++++++++++++++++++----- > 1 file changed, 47 insertions(+), 8 deletions(-) >=20 > 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 =3D self.dut.create_eal_parameters(cores=3Dself.core_l= ist_user, > prefix=3D'virtio', no_pci=3DTrue, > vdevs=3D['net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D%d,%s' % (self.queue_number, args["version"])]) > - command_line_user =3D self.dut.target + "/app/testpmd " + eal_pa= ram + > " -- -i %s --rss-ip --nb-cores=3D%d --rxq=3D%d --txq=3D%d --txd=3D1024 --= rxd=3D1024" % > (args["path"], self.nb_cores, self.queue_number, self.queue_number) > + command_line_user =3D self.dut.target + "/app/testpmd " + > + eal_param + " -- -i %s --nb-cores=3D%d --rxq=3D%d --txq=3D%d --txd=3D10= 24 > + --rxd=3D1024" % (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) >=20 > + > 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 =3D {"version": "in_order=3D0,packed_vq=3D1,mrg_r= xbuf=3D1", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -209,7 +210,7 @@ class TestLoopbackMultiQueues(TestCase): > performance for Vhost PVP virtio1.1 Normal Path. > """ > virtio_pmd_arg =3D {"version": "in_order=3D0,packed_vq=3D1,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -227,7 +228,7 @@ class TestLoopbackMultiQueues(TestCase): > performance for Vhost PVP In_order mergeable Path. > """ > virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D1,mrg_r= xbuf=3D1", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -245,7 +246,7 @@ class TestLoopbackMultiQueues(TestCase): > performance for Vhost PVP In_order no_mergeable Path. > """ > virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D1,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0 --enable-hw-vlan-st= rip"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -263,12 +264,14 @@ class TestLoopbackMultiQueues(TestCase): > performance for Vhost PVP Mergeable Path. > """ > virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D1", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > self.get_core_mask() > self.start_vhost_testpmd() > + if self.queue_number =3D=3D 8: > + virtio_pmd_arg["path"] =3D "--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 =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > + "path": "--enable-hw-vlan-strip"} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -299,7 +302,7 @@ class TestLoopbackMultiQueues(TestCase): > performance for Vhost PVP Vector_RX Path > """ > virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0"} > + "path": ""} > for i in self.verify_queue: > self.nb_cores =3D i > self.queue_number =3D i > @@ -312,6 +315,42 @@ class TestLoopbackMultiQueues(TestCase): > self.result_table_print() > self.verify_liner_for_multi_queue() >=20 > + def > test_loopback_with_virtio11_inorder_mergeable_path_multi_queue(self): > + """ > + performance for Vhost PVP Vector_RX Path > + """ > + virtio_pmd_arg =3D {"version": "packed_vq=3D1,mrg_rxbuf=3D1,in_o= rder=3D1", > + "path": ""} > + for i in self.verify_queue: > + self.nb_cores =3D i > + self.queue_number =3D 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(se > lf): > + """ > + performance for Vhost PVP Vector_RX Path > + """ > + virtio_pmd_arg =3D {"version": "packed_vq=3D1,mrg_rxbuf=3D0,in_o= rder=3D1", > + "path": ""} > + for i in self.verify_queue: > + self.nb_cores =3D i > + self.queue_number =3D 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