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 8BAD2A0352; Wed, 6 May 2020 05:26:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 824A21D6DB; Wed, 6 May 2020 05:26:03 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 73D9A1D6DB for ; Wed, 6 May 2020 05:26:02 +0200 (CEST) IronPort-SDR: C75Ducm7+7dmknzwPc+MAEI6loHSf8EL7tMMSHZEE0Sb1f3zkO172nDl9AZzc8MevRBqp5118P jAQ7ZXetq4Gg== 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:26:02 -0700 IronPort-SDR: k5/tnx+InZCoGs1YiY5lRGSd3Cif5mXGbWie7tzb8Yc52ZXul29pYrzyTGdYlk1QOAMIOxfQdD cTMSxhoyh69w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="284470755" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 05 May 2020 20:26:02 -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; Tue, 5 May 2020 20:26:01 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:26:01 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.95]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:25:59 +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_loopback_virtio_user_server_mode.py Thread-Index: AQHWHrAJJRwE9u22bE6aWGqwCvgLbaiabrsg Date: Wed, 6 May 2020 03:25:58 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21F85@SHSMSX101.ccr.corp.intel.com> References: <20200429222053.28091-1-yinan.wang@intel.com> In-Reply-To: <20200429222053.28091-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_loopback_virtio_user_server_mode.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:21 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] tests: update test commonds for vectorized case= s in > TestSuite_loopback_virtio_user_server_mode.py >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > ...tSuite_loopback_virtio_user_server_mode.py | 41 +++++++++++++++++-- > 1 file changed, 38 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py > b/tests/TestSuite_loopback_virtio_user_server_mode.py > index b3a73af..32ee1c3 100644 > --- a/tests/TestSuite_loopback_virtio_user_server_mode.py > +++ b/tests/TestSuite_loopback_virtio_user_server_mode.py > @@ -364,7 +364,42 @@ class TestLoopbackVirtioUserServerMode(TestCase): > self.queue_number =3D 2 > self.nb_cores =3D 2 > case_info =3D 'virtio1.1 non_mergeable path' > - mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0" > + mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D= 1" > + extern_params =3D '--rx-offloads=3D0x10 --enable-hw-vlan-strip -= -rss-ip' > + self.lanuch_vhost_testpmd_with_multi_queue() > + self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > + self.start_to_send_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "before reconnet") > + > + # reconnect from vhost > + self.logger.info('now reconnet from vhost') > + self.relanuch_vhost_testpmd_with_multi_queue() > + self.start_to_send_packets(self.virtio_user, self.vhost) > + self.calculate_avg_throughput(case_info, "reconnet from vhost") > + > + # reconnet from virtio > + self.logger.info('now reconnet from virtio_user') > + self.relanuch_virtio_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > + self.start_to_send_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "reconnet from > + virtio_user") > + > + # port restart > + self.logger.info('now vhost port restart') > + self.port_restart() > + self.calculate_avg_throughput(case_info, "after port restart") > + > + self.result_table_print() > + self.check_packets_of_each_queue() > + self.close_all_testpmd() > + > + def > test_server_mode_reconnect_with_virtio11_inorder_vectorized_path(self): > + """ > + reconnect test with virtio 1.1 inorder non_mergeable path and se= rver > mode > + """ > + self.queue_number =3D 2 > + self.nb_cores =3D 2 > + case_info =3D 'virtio1.1 non_mergeable path' > + mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D= 1" > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) @@ -504,7 +539,7 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > self.queue_number =3D 2 > self.nb_cores =3D 2 > case_info =3D 'virtio1.0 non_mergeable path' > - mode =3D "in_order=3D0,mrg_rxbuf=3D0" > + mode =3D "in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1" > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) @@ -539,7 +574,7 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > self.queue_number =3D 2 > self.nb_cores =3D 2 > case_info =3D 'virtio1.0 vector_rx path' > - mode =3D "in_order=3D0,mrg_rxbuf=3D0" > + mode =3D "in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1" > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode) > self.start_to_send_packets(self.vhost, self.virtio_user) > -- > 2.17.1