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 292B0A0562; Tue, 31 Mar 2020 05:06:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 200731C07F; Tue, 31 Mar 2020 05:06:12 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 6CA3B1C06A for ; Tue, 31 Mar 2020 05:06:10 +0200 (CEST) IronPort-SDR: 2cOI0ppxnT/Sc+cOMpTusQsm3/UIw88YFl/Qogx9JjaDm5kBJ+10AeSqgcuDUBkoV2r8C2zIcM zHcpYOulVkjQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:06:09 -0700 IronPort-SDR: 3iKhESs5yfkBJcpy14cBD0vWsjERozuXRm9iIuGkj6aYNf61a3z3VpGX/Qgac+imFqVbroUtT5 jp0hKgzizUIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="241800070" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 30 Mar 2020 20:06:09 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:06:09 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 30 Mar 2020 20:06:08 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 30 Mar 2020 20:06:08 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.209]) with mapi id 14.03.0439.000; Tue, 31 Mar 2020 11:06:06 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 01/11]loopback_multi_paths_port_restart: update script according to testplan's update Thread-Index: AQHWAn3lZF4HBPTb1EmkWmgT6EMqnqhiDZxA Date: Tue, 31 Mar 2020 03:06:05 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC03511@SHSMSX101.ccr.corp.intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@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 01/11]loopback_multi_paths_port_restart: 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" Applied the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Wednesday, March 25, 2020 4:11 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 01/11]loopback_multi_paths_port_restart: update > script according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > .../TestSuite_loopback_multi_paths_port_restart.py | 85 +++++++++++++++-= - > ----- > 1 file changed, 57 insertions(+), 28 deletions(-) >=20 > diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py > b/tests/TestSuite_loopback_multi_paths_port_restart.py > index 0b54b8d..5f1faad 100644 > --- a/tests/TestSuite_loopback_multi_paths_port_restart.py > +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py > @@ -121,15 +121,21 @@ class TestLoopbackPortRestart(TestCase): > break > time.sleep(3) > loop =3D loop + 1 > - > self.verify("down" not in port_status, "port can not up after re= start") >=20 > - def port_restart(self): > - self.vhost.send_expect("stop", "testpmd> ", 120) > - self.vhost.send_expect("port stop 0", "testpmd> ", 120) > - self.check_port_throughput_after_port_stop() > - self.vhost.send_expect("clear port stats all", "testpmd> ", 120) > - self.vhost.send_expect("port start all", "testpmd> ", 120) > + def port_restart(self, restart_times=3D1): > + if restart_times =3D=3D 1: > + self.vhost.send_expect("stop", "testpmd> ", 120) > + self.vhost.send_expect("port stop 0", "testpmd> ", 120) > + self.check_port_throughput_after_port_stop() > + self.vhost.send_expect("clear port stats all", "testpmd> ", = 120) > + self.vhost.send_expect("port start all", "testpmd> ", 120) > + else: > + for i in range(restart_times): > + self.vhost.send_expect("stop", "testpmd> ", 120) > + self.vhost.send_expect("port stop 0", "testpmd> ", 120) > + self.vhost.send_expect("clear port stats all", "testpmd>= ", 120) > + self.vhost.send_expect("port start all", "testpmd> ", > + 120) > self.check_port_link_status_after_port_restart() > self.vhost.send_expect("set burst 1", "testpmd> ", 120) > self.vhost.send_expect("start tx_first 1", "testpmd> ", 120) @@ = -156,7 > +162,7 @@ class TestLoopbackPortRestart(TestCase): > self.verify(Mpps > 0, "%s can not receive packets" % self.runnin= g_case) > return Mpps >=20 > - def send_and_verify(self, case_info, frame_size): > + def send_and_verify(self, case_info, frame_size, restart_times=3D1): > """ > start to send packets and calculate the average throughput > """ > @@ -166,7 +172,7 @@ class TestLoopbackPortRestart(TestCase): > Mpps =3D self.calculate_avg_throughput() > self.update_table_info(case_info, frame_size, Mpps, "Before Rest= art") >=20 > - self.port_restart() > + self.port_restart(restart_times) > Mpps =3D self.calculate_avg_throughput() > self.update_table_info(case_info, frame_size, Mpps, "After Resta= rt and > set burst to 1") >=20 > @@ -184,7 +190,7 @@ class TestLoopbackPortRestart(TestCase): > self.dut.close_session(self.vhost) > self.dut.close_session(self.virtio_user) >=20 > - def test_vhost_loopback_virtio11_mergeable_mac(self): > + def test_loopback_test_with_packed_ring_mergeable_path(self): > """ > performance for [frame_sizes] and restart port on virtio1.1 merg= eable > path > """ > @@ -193,11 +199,11 @@ class TestLoopbackPortRestart(TestCase): > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("virtio1.1 mergeable", frame_size) > + self.send_and_verify("packed ring mergeable", frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtio11_normal_mac(self): > + def test_loopback_test_with_packed_ring_nonmergeable_path(self): > """ > performance for [frame_sizes] and restart port ob virtio1.1 norm= al path > """ > @@ -206,63 +212,86 @@ class TestLoopbackPortRestart(TestCase): > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("virtio1.1 normal", frame_size) > + self.send_and_verify("packed ring non-mergeable", frame_size= ) > + self.close_all_testpmd() > + self.result_table_print() > + > + def test_lookback_test_with_packed_ring_inorder_mergeable_path(self)= : > + pmd_arg =3D {"version": "packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D= 1", > + "path": "--tx-offloads=3D0x0 --enable-hw-vlan-strip"} > + for frame_size in self.frame_sizes: > + self.start_vhost_testpmd() > + self.start_virtio_user_testpmd(pmd_arg) > + self.send_and_verify("packed ring non-mergeable", > + frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtiouser_inorder_mergeable_mac(self): > + def > test_lookback_test_with_packed_ring_inorder_nonmergeable_path(self): > """ > performance for [frame_sizes] and restart port on inorder mergea= ble > path > """ > - pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D1,mrg_rxbuf=3D= 1 ", > - "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip "} > + pmd_arg =3D {"version": "packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D= 1", > + "path": "--tx-offloads=3D0x0 > + --enable-hw-vlan-strip"} > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("inorder mergeable", frame_size) > + self.send_and_verify("packed ring inorder non-mergeable", > + frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtiouser_inorder_mergeable_off_mac(self): > + def test_lookback_test_with_split_ring_inorder_mergeable_path(self): > """ > performance for [frame_sizes] and restart port on inorder normal= path > """ > + pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D1,mrg_rxbuf=3D= 1", > + "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip "} > + for frame_size in self.frame_sizes: > + self.start_vhost_testpmd() > + self.start_virtio_user_testpmd(pmd_arg) > + self.send_and_verify("split ring inorder mergeable", frame_s= ize) > + self.close_all_testpmd() > + self.result_table_print() > + > + def test_lookback_test_with_split_ring_inorder_nonmergeable_path(sel= f): > + """ > + performance for [frame_sizes] and restart port on virtio normal = path > + """ > pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D1,mrg_rxbuf=3D= 0 ", > "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip "} > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("inorder normal", frame_size) > + self.send_and_verify("split ring inorder non-mergeable", > + frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtiouser_mergeable_mac(self): > + def test_lookback_test_with_split_ring_mergeable_path(self): > """ > - performance for [frame_sizes] and restart port on virtio mergeab= le > path > + performance for [frame_sizes] and restart port on virtio normal > + path > """ > - pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D= 1 ", > + pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D= 1", > "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip "} > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("virtiouser mergeable", frame_size) > + self.send_and_verify("split ring mergeable", frame_size, > + restart_times=3D100) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtiouser_normal_mac(self): > + def test_lookback_test_with_split_ring_nonmergeable_path(self): > """ > performance for [frame_sizes] and restart port on virtio normal = path > """ > - pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D= 0 ", > + pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D= 0", > "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip "} > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("virtiouser normal", frame_size) > + self.send_and_verify("split ring non-mergeable", > + frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > - def test_vhost_loopback_virtiouser_vector_rx_mac(self): > + def test_loopback_test_with_split_ring_vector_rx_path(self): > """ > performance for frame_sizes and restart port on virtio vector rx > """ > @@ -271,7 +300,7 @@ class TestLoopbackPortRestart(TestCase): > for frame_size in self.frame_sizes: > self.start_vhost_testpmd() > self.start_virtio_user_testpmd(pmd_arg) > - self.send_and_verify("virtiouser vector_rx", frame_size) > + self.send_and_verify("split ring vector_rx", frame_size) > self.close_all_testpmd() > self.result_table_print() >=20 > -- > 1.8.3.1