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 D8459A058A; Wed, 25 Mar 2020 09:23:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CFA691BFA6; Wed, 25 Mar 2020 09:23:12 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 9DDAD2C15 for ; Wed, 25 Mar 2020 09:23:11 +0100 (CET) IronPort-SDR: DA4EPpIXDfi8Vei2aVwzI5jbVtReMZtitrncm9nO86r7hNNfW7b4m+HV3fh5FP2LeynHRNRYwB GpMd/D28QpLg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:23:10 -0700 IronPort-SDR: 7HYREMszUYUKNEHzYS6UmBMONeP3OKK68ZN3x9AOBe1LhbpVSM7s/ruVkgCo4ogDRE/qc3x6ju LRVOfxxRorsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282074485" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:23:10 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:23:10 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 25 Mar 2020 16:23:07 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 25 Mar 2020 16:23:07 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 02/11]loopback_multi_queues: update script according to testplan's update Thread-Index: AQHWAn3hO+MUjNVzREi2t9JfZkTVkKhY+Dkg Date: Wed, 25 Mar 2020 08:23:07 +0000 Message-ID: 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: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B25=1B$BF|=1B(B 16:11 > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 02/11]loopback_multi_queues: update script accor= ding > 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_list_user, prefix=3D'vir= tio', > no_pci=3DTrue, > vdevs=3D['net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,que= ues=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_rxbuf=3D1", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-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_rxbuf=3D0", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-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_rxbuf=3D1", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-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_rxbuf=3D0", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip"} > + "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_rxbuf=3D1", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-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_rxbuf=3D0", > - "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-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_rxbuf=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_order=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(self): > + """ > + performance for Vhost PVP Vector_RX Path > + """ > + virtio_pmd_arg =3D {"version": > "packed_vq=3D1,mrg_rxbuf=3D0,in_order=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