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 9281DA00BE; Mon, 27 Apr 2020 09:51:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 816921C19A; Mon, 27 Apr 2020 09:51:01 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8778C1C190 for ; Mon, 27 Apr 2020 09:50:58 +0200 (CEST) IronPort-SDR: jlFkmIiLHMkZiGW2i6/sV9EC6OXqighdqaCdXGLYskJB5ubSH+xmnBozSexCz937VcvaCkLzvn oBKHqwE9Phyw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:50:57 -0700 IronPort-SDR: 0YRYnXA8gH6gm6gKB1oVKmFBP6lFRguo4Rg5vS3uWW6AMtnGFXa9cZ6ai9pvRyMPvqqyrzuBSE WFevdTF6QgJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="246030608" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga007.jf.intel.com with ESMTP; 27 Apr 2020 00:50:55 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:50:53 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:50:53 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.213]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:50:50 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v2] tests: add packed ring vectorized cases in vhost_pmd_xstats Thread-Index: AQHWG2bPnUVoh6SEwE+ieUVHyXRRfKiMmlNQ Date: Mon, 27 Apr 2020 07:50:49 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12A3C@SHSMSX101.ccr.corp.intel.com> References: <20200425175909.49518-1-yinan.wang@intel.com> In-Reply-To: <20200425175909.49518-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 v2] tests: add packed ring vectorized cases in vhost_pmd_xstats 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: Sunday, April 26, 2020 1:59 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v2] tests: add packed ring vectorized cases in > vhost_pmd_xstats >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > tests/TestSuite_vhost_pmd_xstats.py | 35 ++++++++++++++++++++++++----- > 1 file changed, 29 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_pmd_xstats.py > b/tests/TestSuite_vhost_pmd_xstats.py > index ad9e245..3873213 100755 > --- a/tests/TestSuite_vhost_pmd_xstats.py > +++ b/tests/TestSuite_vhost_pmd_xstats.py > @@ -182,7 +182,7 @@ class TestVhostPmdXstats(TestCase): > date_new =3D date_old + datetime.timedelta(minutes=3D2) > while (1): > date_now =3D datetime.datetime.now() > - scope =3D 'broadcast' > + scope =3D 'multicast' > self.dmac =3D '01:00:00:33:00:01' > self.scapy_send_packet(64, self.dmac, 1) > if date_now >=3D date_new: > @@ -216,8 +216,8 @@ class TestVhostPmdXstats(TestCase): > """ > performance for Vhost PVP virtio1.1 inorder no_mergeable Path. > """ > - virtio_pmd_arg =3D {"version": "in_order=3D1,packed_vq=3D1,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip --rss-ip"} > + 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 --rss-ip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > self.xstats_number_and_type_verify() > @@ -227,7 +227,7 @@ class TestVhostPmdXstats(TestCase): > """ > performance for Vhost PVP virtio1.1 inorder no_mergeable Path. > """ > - virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,lro=3D0", > + 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 --rss-ip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > @@ -246,6 +246,29 @@ class TestVhostPmdXstats(TestCase): > self.send_verify(scope, self.scapy_num) > self.close_all_testpmd() >=20 > + def test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2(self): > + """ > + performance for Vhost PVP virtio1.1 inorder no_mergeable Path. > + """ > + virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,vectorized=3D1,queue_size=3D122= 1", > + "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip --rss-ip -- > rxd=3D1221 --txd=3D1221"} > + self.start_vhost_testpmd() > + self.start_virtio_testpmd(virtio_pmd_arg) > + self.xstats_number_and_type_verify() > + # stability test with basic packets number check > + self.scapy_num =3D 0 > + date_old =3D datetime.datetime.now() > + date_new =3D date_old + datetime.timedelta(minutes=3D2) > + while (1): > + date_now =3D datetime.datetime.now() > + scope =3D 'broadcast' > + self.dmac =3D 'ff:ff:ff:ff:ff:ff' > + self.scapy_send_packet(64, self.dmac, 1) > + if date_now >=3D date_new: > + break > + self.send_verify(scope, self.scapy_num) > + self.close_all_testpmd() > + > def test_vhost_xstats_inorder_mergeable(self): > """ > performance for Vhost PVP In_order mergeable Path. > @@ -283,7 +306,7 @@ class TestVhostPmdXstats(TestCase): > """ > performance for Vhost PVP no_mergeable Path. > """ > - 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 --rss-ip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > @@ -294,7 +317,7 @@ class TestVhostPmdXstats(TestCase): > """ > performance for Vhost PVP Vector_RX Path > """ > - 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