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 A7EC4A0353; Wed, 6 May 2020 05:25:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84B0A1D6D3; Wed, 6 May 2020 05:25:47 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 6DA311C11E for ; Wed, 6 May 2020 05:25:46 +0200 (CEST) IronPort-SDR: ix2sna/UxcSkIqnxpqB/tzj7HdRs6Bxaz0Zyqa1f6NwQiws9NSbiWGJZic61g07XF55a1OJRIk mzsw8Oyvt3ww== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:25:45 -0700 IronPort-SDR: QbwMBUabKciJuqYLOLhOfrR19G7rLbyXhXEMpDlPT9r3AuV/7+UeaLGbKiMhxC17qGiJ15yRv0 HiVjUdodfXFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="284470700" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 05 May 2020 20:25:45 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:25:45 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:25:44 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.92]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:25:41 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_performance.py Thread-Index: AQHWHq5H9IJ4FJLYbUiV3md/bwi7baiabqpw Date: Wed, 6 May 2020 03:25:41 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21F3B@SHSMSX101.ccr.corp.intel.com> References: <20200429220826.27662-1-yinan.wang@intel.com> In-Reply-To: <20200429220826.27662-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_performance.py 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Thursday, April 30, 2020 6:08 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] tests: update test commonds for vectorized case= s in > TestSuite_pvp_multi_paths_performance.py >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > .../TestSuite_pvp_multi_paths_performance.py | 35 +++++++++++++------ > 1 file changed, 25 insertions(+), 10 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_multi_paths_performance.py > b/tests/TestSuite_pvp_multi_paths_performance.py > index 092d98c..14a0fd7 100644 > --- a/tests/TestSuite_pvp_multi_paths_performance.py > +++ b/tests/TestSuite_pvp_multi_paths_performance.py > @@ -106,6 +106,7 @@ class TestPVPMultiPathPerformance(TestCase): > for frame_size in self.frame_sizes: > tgen_input =3D [] > self.throughput[frame_size] =3D dict() > + > self.logger.info("Test running at parameters: " + > "framesize: {}, rxd/txd: {}".format(frame_size, self.nb_= desc)) > rx_port =3D self.tester.get_local_port( @@ -114,7 +115,6 @@ = class > TestPVPMultiPathPerformance(TestCase): > self.dut_ports[0]) > destination_mac =3D self.dut.get_mac_address( > self.dut_ports[0]) > - > pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dframe_size) > pkt.config_layer('ether', {'dst': '%s' % destination_mac}) > pkt.save_pcapfile(self.tester, "%s/multi_path.pcap" % (self.= out_path)) > @@ -122,9 +122,7 @@ class TestPVPMultiPathPerformance(TestCase): >=20 > self.tester.pktgen.clear_streams() > streams =3D > self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100, None, > self.tester.pktgen) > - # set traffic option > - traffic_opt =3D {'delay': 5} > - _, pps =3D self.tester.pktgen.measure_throughput(stream_ids= =3Dstreams, > options=3Dtraffic_opt) > + _, pps =3D > + self.tester.pktgen.measure_throughput(stream_ids=3Dstreams) > Mpps =3D pps / 1000000.0 > self.verify(Mpps > 0.0, "%s can not receive packets of frame= size %d" % > (self.running_case, frame_size)) >=20 > @@ -344,7 +342,24 @@ class TestPVPMultiPathPerformance(TestCase): > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - virtio_pmd_arg =3D {"version": "in_order=3D1,packed_vq=3D1,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,vectorized=3D1", > + "path": "--rx-offloads=3D0x10 --enable-hw-vl= an-strip"} > + self.start_vhost_testpmd() > + self.start_virtio_testpmd(virtio_pmd_arg) > + self.send_and_verify("virtio_1.1_inorder_normal") > + self.close_all_testpmd() > + self.logger.info('result of all framesize result') > + self.result_table_print() > + self.handle_expected() > + self.handle_results() > + > + def test_perf_pvp_virtio11_vectorized(self): > + """ > + performance for PVP virtio1.1 Vectorized Path. > + """ > + self.test_target =3D self.running_case > + self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > + virtio_pmd_arg =3D {"version": > + "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > @@ -372,9 +387,9 @@ class TestPVPMultiPathPerformance(TestCase): > self.handle_expected() > self.handle_results() >=20 > - def test_perf_pvp_inorder_no_mergeable(self): > + def test_perf_pvp_inorder_normal(self): > """ > - performance for PVP In_order no_mergeable Path. > + performance for PVP In_order Normal Path. > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > @@ -412,7 +427,7 @@ class TestPVPMultiPathPerformance(TestCase): > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > @@ -425,11 +440,11 @@ class TestPVPMultiPathPerformance(TestCase): >=20 > def test_perf_pvp_vector_rx(self): > """ > - performance for PVP Vector Path > + performance for PVP Vector_RX Path > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0 "} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > -- > 2.17.1