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 923B6A00C5; Mon, 26 Dec 2022 10:23:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96DF14114B; Mon, 26 Dec 2022 10:23:48 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 64C5540E2D for ; Mon, 26 Dec 2022 10:23:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672046627; x=1703582627; h=from:to:cc:subject:date:message-id; bh=N89cMAceO3IPcUec6+dqQzDvaqTtklOd5+QHZA4w2Kk=; b=HQiSb29v6dwh89HX/LeXf3MGasXaPxksfwqb8ne+3XL1qXf34zbrVAi/ oyxkJ4wswyu5D3o1eL5oXxZJXRVPcHvLBSVqJyTcUWmJTu3/cFHTuOS6C rnzycEwJOtPL0yxGGX0xnv3R6Dn/YnjUJmbOZ8OI4OMdDqoHLYpEHcz5O WSJFLHOay0aGw3KJVtN94YYLy5xPw0WEmM8bmDiNz9uGNscR0SYHUt+OL izxsHrjbJRymWULeqAmsqo0YixXi3ZuFNoamIk+Ib8jtMmQ3gzyxmzL5n 98f9m+ZidFJkMFiipTNDNJWPEBk4JVZqlsjL+N57spvDBVqQzaTsFg+NC A==; X-IronPort-AV: E=McAfee;i="6500,9779,10571"; a="347739916" X-IronPort-AV: E=Sophos;i="5.96,275,1665471600"; d="scan'208";a="347739916" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2022 01:23:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10571"; a="898072669" X-IronPort-AV: E=Sophos;i="5.96,275,1665471600"; d="scan'208";a="898072669" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2022 01:23:44 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/perf_virtio_user_loopback: optimize script code to be consistent with test plan Date: Mon, 26 Dec 2022 17:19:04 +0800 Message-Id: <20221226091904.21757-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 redundant parameters. 2.Optimize script code to be consistent with test plan. Signed-off-by: Dukai Yuan --- tests/TestSuite_perf_virtio_user_loopback.py | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/TestSuite_perf_virtio_user_loopback.py b/tests/TestSuite_perf_virtio_user_loopback.py index 457db559..b1dbdeae 100644 --- a/tests/TestSuite_perf_virtio_user_loopback.py +++ b/tests/TestSuite_perf_virtio_user_loopback.py @@ -118,7 +118,7 @@ class TestPerfVirtioUserLoopback(TestCase): eal_param += " --single-file-segments" if "vectorized_path" in self.running_case: eal_param += " --force-max-simd-bitwidth=512" - param = "{} --rss-ip --nb-cores={} --rxq={} --txq={} --txd={} --rxd={}".format( + param = "{} --nb-cores={} --rxq={} --txq={} --txd={} --rxd={}".format( args["path"], self.nb_cores, self.queue_number, @@ -313,11 +313,11 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_packed_ring_inorder_mergeable(self): """ - performance for Vhost PVP virtio 1.1 inorder mergeable Path. + Test Case 3: loopback test with packed ring inorder mergeable path """ virtio_pmd_arg = { "version": "in_order=1,packed_vq=1,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.test_target = "packed_ring_inorder_mergeable" self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ @@ -333,12 +333,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_packed_ring_inorder_non_mergeable(self): """ - performance for Vhost PVP virtio1.1 inorder non-mergeable Path. + Test Case 4: loopback test with packed ring inorder non-mergeable path """ self.test_target = "packed_ring_inorder_non-mergeable" virtio_pmd_arg = { "version": "in_order=1,packed_vq=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -353,11 +353,11 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_packed_ring_mergeable(self): """ - performance for Vhost PVP virtio 1.1 Mergeable Path. + Test Case 1: loopback test with packed ring mergeable path. """ virtio_pmd_arg = { "version": "in_order=0,packed_vq=1,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.test_target = "packed_ring_mergeable" self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ @@ -373,12 +373,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_packed_ring_non_mergeable(self): """ - performance for Vhost PVP virtio1.1 non-mergeable Path. + Test Case 2: loopback test with packed ring non-mergeable path. """ self.test_target = "packed_ring_non-mergeable" virtio_pmd_arg = { "version": "in_order=0,packed_vq=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -393,12 +393,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_split_ring_inorder_mergeable(self): """ - performance for Vhost PVP In_order Mergeable Path. + Test Case 8: loopback test with split ring inorder mergeable path """ self.test_target = "split_ring_inorder_mergeable" virtio_pmd_arg = { "version": "packed_vq=0,in_order=1,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -413,12 +413,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_split_ring_inorder_non_mergeable(self): """ - performance for Vhost PVP Inorder Non-mergeable Path. + Test Case 9: loopback test with split ring inorder non-mergeable path. """ self.test_target = "split_ring_inorder_non-mergeable" virtio_pmd_arg = { "version": "packed_vq=0,in_order=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -433,12 +433,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_split_ring_mergeable(self): """ - performance for Vhost PVP Mergeable Path. + Test Case 5: loopback test with split ring mergeable path. """ self.test_target = "split_ring_mergeable" virtio_pmd_arg = { "version": "packed_vq=0,in_order=0,mrg_rxbuf=1", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -453,12 +453,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_split_ring_non_mergeable(self): """ - performance for Vhost PVP Non-mergeable Path. + Test Case 6: loopback test with split ring non-mergeable path """ self.test_target = "split_ring_non-mergeable" virtio_pmd_arg = { "version": "packed_vq=0,in_order=0,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip", + "path": "--tx-offloads=0x0", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -473,12 +473,12 @@ class TestPerfVirtioUserLoopback(TestCase): def test_perf_loopback_split_ring_vector_rx(self): """ - performance for Vhost PVP Vector_RX Path + Test Case 7: loopback test with split ring vector_rx path """ self.test_target = "split_ring_vector_rx" virtio_pmd_arg = { - "version": "packed_vq=0,in_order=0,mrg_rxbuf=0", - "path": "--tx-offloads=0x0", + "version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target @@ -498,7 +498,7 @@ class TestPerfVirtioUserLoopback(TestCase): self.test_target = "packed_ring_vectorized_path" virtio_pmd_arg = { "version": "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1", - "path": "--tx-offloads=0x0", + "path": "", } self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ self.test_target -- 2.17.1