From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id AF84EA0096 for ; Thu, 14 Mar 2019 04:49:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D02F3572; Thu, 14 Mar 2019 04:49:20 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id ADDA211C5 for ; Thu, 14 Mar 2019 04:49:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2019 20:49:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,477,1544515200"; d="scan'208";a="122528846" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 13 Mar 2019 20:49:16 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 13 Mar 2019 20:49:08 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.223]) with mapi id 14.03.0415.000; Thu, 14 Mar 2019 11:49:07 +0800 From: "Wang, Yinan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] add test case about virito1.1 inorder mac path Thread-Index: AQHU2XT+9pwX4YXZg0WEfZXJZ4XRMaYKflrw Date: Thu, 14 Mar 2019 03:49:07 +0000 Message-ID: References: <1552438594-5698-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1552438594-5698-1-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2Y5NTNjYjktNjIyZS00ZTc2LWI2MjMtYTAxMjI4NWU0ODY2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMG1YZjRONzA3aXEyRGpKNStlaXp4c01NcHdNN2Z2OWh6UUNYZ1BTSFpVVitXZTloaFZpV0w2MWhVWnpJcWwrVCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] add test case about virito1.1 inorder mac path 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" Virtio1.1 only three path: inorder,mergable and normal,no inorder Mergeable= and inorder no-Mergeable path. Best Wishes, Yinan > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: 2019=1B$BG/=1B(B3=1B$B7n=1B(B13=1B$BF|=1B(B 8:57 > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] add test case about virito1.1 inorder mac path >=20 > Add test path about virito1.1 inorder mergeable and normal And optimizati= on > code >=20 > Signed-off-by: lihong > --- > ...vp_multi_paths_vhost_single_core_performance.py | 50 > +++++++++++++++++----- > 1 file changed, 39 insertions(+), 11 deletions(-) >=20 > diff --git > a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > index c085e6e..9ec91ce 100644 > --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > @@ -31,7 +31,7 @@ >=20 > """ > DPDK Test suite. > -Test PVP vhost single core performance using virtio_user on 7 tx/rx path= . > +Test PVP vhost single core performance using virtio_user on 9 tx/rx path= . > """ >=20 > import utils > @@ -46,21 +46,16 @@ class TestPVPMultiPathVhostPerformance(TestCase): > Run at the start of each test suite. > """ > self.frame_sizes =3D [64, 128, 256, 512, 1024, 1518] > - self.test_cycles =3D {'Mpps': {}, 'pct': {}} > self.core_config =3D "1S/5C/1T" > self.number_of_ports =3D 1 > self.headers_size =3D HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \ > HEADER_SIZE['udp'] > self.dut_ports =3D self.dut.get_ports() > self.ports_socket =3D self.dut.get_numa_id(self.dut_ports[0]) > - ports =3D [] > - for port in xrange(self.number_of_ports): > - ports.append(self.dut_ports[port]) > self.core_list =3D self.dut.get_core_list( > self.core_config, socket=3Dself.ports_socket) > self.core_list_user =3D self.core_list[0:3] > self.core_list_host =3D self.core_list[3:5] > - self.port_mask =3D utils.create_mask(ports) > self.core_mask_user =3D utils.create_mask(self.core_list_user) > self.core_mask_host =3D utils.create_mask(self.core_list_host) > if self.dut.cores[len(self.dut.cores) - 1]['socket'] =3D=3D '0': > @@ -191,11 +186,44 @@ class > TestPVPMultiPathVhostPerformance(TestCase): > self.close_all_session() > self.result_table_print() >=20 > + def test_perf_vhost_single_core_virtio11_inorder_mergeable(self): > + """ > + performance for Vhost PVP virtio 1.1 inorder Mergeable Path. > + """ > + virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D1", > + "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip --rss-ip"} > + self.vhost_user =3D self.dut.new_session(suite=3D"user") > + self.vhost =3D self.dut.new_session(suite=3D"vhost") > + for frame_size in self.frame_sizes: > + self.start_vhost_testpmd() > + self.start_virtio_testpmd(virtio_pmd_arg) > + self.send_and_verify("virtio_1.1 inorder mergeable on", > frame_size) > + self.close_all_testpmd() > + > + self.close_all_session() > + self.result_table_print() > + > + def test_perf_vhost_single_core_virtio11_inorder_no_mergeable(self): > + """ > + performance for Vhost PVP virtio1.1 inorder Normal Path. > + """ > + virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0", > + "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip --rss-ip"} > + self.vhost_user =3D self.dut.new_session(suite=3D"user") > + self.vhost =3D self.dut.new_session(suite=3D"vhost") > + for frame_size in self.frame_sizes: > + self.start_vhost_testpmd() > + self.start_virtio_testpmd(virtio_pmd_arg) > + self.send_and_verify("virtio_1.1 inorder mergeable off", > frame_size) > + self.close_all_testpmd() > + self.close_all_session() > + self.result_table_print() > + > def test_perf_vhost_single_core_inorder_mergeable(self): > """ > performance for Vhost PVP In_order mergeable Path. > """ > - virtio_pmd_arg =3D {"version": "in_order=3D1,mrg_rxbuf=3D1", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D1,mrg_rxbuf=3D1", > "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip --rss-ip"} > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > @@ -211,7 +239,7 @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > performance for Vhost PVP In_order no_mergeable Path. > """ > - virtio_pmd_arg =3D {"version": "in_order=3D1,mrg_rxbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D1,mrg_rxbuf=3D0", > "path": "--tx-offloads=3D0x0 --enable-hw-vlan-st= rip > --rss-ip"} > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > @@ -227,7 +255,7 @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > performance for Vhost PVP Mergeable Path. > """ > - virtio_pmd_arg =3D {"version": "in_order=3D0,mrg_rxbuf=3D1", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D1", > "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip --rss-ip"} > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > @@ -243,7 +271,7 @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > performance for Vhost PVP Normal Path. > """ > - virtio_pmd_arg =3D {"version": "in_order=3D0,mrg_rxbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0", > "path": "--tx-offloads=3D0x0 > --enable-hw-vlan-strip --rss-ip"} > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > @@ -259,7 +287,7 @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > performance for Vhost PVP Vector_RX Path > """ > - virtio_pmd_arg =3D {"version": "in_order=3D0,mrg_rxbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0", > "path": "--tx-offloads=3D0x0"} > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > -- > 2.7.4