From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02BD9A0093; Fri, 23 Dec 2022 09:16:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F21B040A7F; Fri, 23 Dec 2022 09:15:59 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 317DF40698 for ; Fri, 23 Dec 2022 09:15:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671783358; x=1703319358; h=from:to:cc:subject:date:message-id; bh=uSsGp0HsAED22BhiUK913oFaklgnFNMBUBLU+H5BubA=; b=c9ITiRC38ffIcqnPdKjmZyPLDhd4j6s6wQEl3r5NtQY36m64URzUEB60 J2JguEpYZ4zn4oaqREqRnAVj3Pn+BE6vdO3fcDlhxsZKxmxLx1/xojBLR hoP2ThwBeDVHcNdmwl6N6kgOzFWR/DDBS5px71c8YHuVqm4imLg3Yxflr TRz2H98VJTrV0wRFtJwj13bpeQ4orB5qMFAQUGupFP+SZftuvudjAq+gX MyLf3HgDqJp/ctVi9DZgBNc7Xr2kM+IAS4XVSVIPEbPJz0R0076P68NqW g6hJK7KrA6bco4h+g3oobzFypJFKZxVt1D/BliUstbHGu3DdaBOq9Udvu g==; X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="384685076" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="384685076" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2022 00:15:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="980881097" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="980881097" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2022 00:15:47 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/loopback multi paths port restart: optimize the script to be consistent with test plan Date: Fri, 23 Dec 2022 16:10:58 +0800 Message-Id: <20221223081058.12501-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 1.remove invalid description. 2.optimize the description of each case so that it can correspond to the testplan. 3.modify case 10 incorrect parameter inorder=1 to inorder=0. Signed-off-by: Dukai Yuan --- ...Suite_loopback_multi_paths_port_restart.py | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index c14070ce..76bf02f3 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -2,12 +2,6 @@ # Copyright(c) 2010-2019 Intel Corporation # -""" -DPDK Test suite. -Benchmark Vhost loopback for 7 RX/TX PATHs. -Includes Mergeable, Normal, Vector_RX,Inorder_mergeable, -Inorder_no_mergeable, VIRTIO1.1_mergeable, VIRTIO1.1_normal Path. -""" import re import time @@ -204,7 +198,7 @@ class TestLoopbackPortRestart(TestCase): def test_loopback_test_with_packed_ring_mergeable_path(self): """ - performance for [frame_sizes] and restart port on virtio1.1 mergeable path + Test Case 1: loopback test with packed ring mergeable path """ pmd_arg = { "version": "packed_vq=1,in_order=0,mrg_rxbuf=1 ", @@ -219,7 +213,7 @@ class TestLoopbackPortRestart(TestCase): def test_loopback_test_with_packed_ring_nonmergeable_path(self): """ - performance for [frame_sizes] and restart port ob virtio1.1 normal path + Test Case 2: loopback test with packed ring non-mergeable path """ pmd_arg = { "version": "packed_vq=1,in_order=0,mrg_rxbuf=0 ", @@ -233,6 +227,9 @@ class TestLoopbackPortRestart(TestCase): self.result_table_print() def test_lookback_test_with_packed_ring_inorder_mergeable_path(self): + """ + Test Case 3: loopback test with packed ring inorder mergeable path + """ pmd_arg = { "version": "packed_vq=1,mrg_rxbuf=1,in_order=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", @@ -246,7 +243,7 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_packed_ring_inorder_nonmergeable_path(self): """ - performance for [frame_sizes] and restart port on inorder mergeable path + Test Case 4: loopback test with packed ring inorder non-mergeable path """ pmd_arg = { "version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", @@ -261,10 +258,10 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_packed_ring_vectorized_path(self): """ - performance for [frame_sizes] and restart port on inorder mergeable path + Test Case 10: loopback test with packed ring vectorized path """ pmd_arg = { - "version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", + "version": "packed_vq=1,mrg_rxbuf=0,in_order=0,vectorized=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", } for frame_size in self.frame_sizes: @@ -276,7 +273,7 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_split_ring_inorder_mergeable_path(self): """ - performance for [frame_sizes] and restart port on inorder normal path + Test Case 5: loopback test with split ring inorder mergeable path """ pmd_arg = { "version": "packed_vq=0,in_order=1,mrg_rxbuf=1", @@ -291,7 +288,7 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_split_ring_inorder_nonmergeable_path(self): """ - performance for [frame_sizes] and restart port on virtio normal path + Test Case 6: loopback test with split ring inorder non-mergeable path """ pmd_arg = { "version": "packed_vq=0,in_order=1,mrg_rxbuf=0 ", @@ -306,7 +303,7 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_split_ring_mergeable_path(self): """ - performance for [frame_sizes] and restart port on virtio normal path + Test Case 7: loopback test with split ring mergeable path """ pmd_arg = { "version": "packed_vq=0,in_order=0,mrg_rxbuf=1", @@ -321,11 +318,11 @@ class TestLoopbackPortRestart(TestCase): def test_lookback_test_with_split_ring_nonmergeable_path(self): """ - performance for [frame_sizes] and restart port on virtio normal path + Test Case 8: loopback test with split ring non-mergeable path """ pmd_arg = { "version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip ", + "path": "--rx-offloads=0x0 --enable-hw-vlan-strip ", } for frame_size in self.frame_sizes: self.start_vhost_testpmd() @@ -336,7 +333,7 @@ class TestLoopbackPortRestart(TestCase): def test_loopback_test_with_split_ring_vector_rx_path(self): """ - performance for frame_sizes and restart port on virtio vector rx + Test Case 9: loopback test with split ring vector_rx path """ pmd_arg = { "version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", -- 2.17.1