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 4FF4C423A1; Tue, 10 Jan 2023 09:47:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 231FE40691; Tue, 10 Jan 2023 09:47:52 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E023940689 for ; Tue, 10 Jan 2023 09:47:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673340470; x=1704876470; h=from:to:cc:subject:date:message-id; bh=Rb6uOxOyyJBOwLiwoP6qzZDoWGUcC3gTUx/FxDXdN28=; b=Wuw4Hjjqs9xB9zrqf/vVeUytMazoquxsoS3CUnjU9RWcH5RKuqaBMpB2 BR1IVBfiGt2UcwPWzCAWIg/2VoEXMyIjqI0GveEr2epYur+9hyCEiJKz3 Uvw+SmANHT9wlbvvAKjHfxYFhAfw67En3GxG4RnByeW77dTOVjN88F0+J Kf2zrJyNnH9WAJZ+Tfy4x+yzkl5KUHk0kGySQgTDm4YK/X9RxhjuLrbR+ Pc+Pj4oIPZWezhhJAJrxNce3S7+GFJgYrXnROskkao+njqTistjwSY1/x WN3bPsje/CLBVxJK6mBI7lCYa1kDh8Ik9hK3u4VtrpylkXvig+W4OAm4u Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="385398017" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="385398017" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 00:47:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="689347956" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="689347956" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 00:47:46 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add new cases script code Date: Tue, 10 Jan 2023 16:43:01 +0800 Message-Id: <20230110084301.13292-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.Add 3 virtio11 new cases cover mergeable path normal_path and vector_rx path. 2.Optimize the script description is consistent with test plan. Signed-off-by: Dukai Yuan --- ...Suite_pvp_qemu_multi_paths_port_restart.py | 70 +++++++++++++++---- 1 file changed, 57 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py index f07b698f..64bb4436 100644 --- a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py +++ b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py @@ -6,7 +6,7 @@ DPDK Test suite. Benchmark pvp qemu test with 3 RX/TX PATHs, includes Mergeable, Normal, Vector_RX. -Cover virtio 1.0 and virtio 0.95.Also cover +Cover virtio 1.1 1.0 and virtio 0.95.Also cover port restart test with each path """ import re @@ -109,7 +109,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): self.vm_dut.send_expect("set fwd mac", "testpmd> ", 30) self.vm_dut.send_expect("start", "testpmd> ", 30) - def start_one_vm(self, modem=0, mergeable=0): + def start_one_vm(self, modem=0, mergeable=0, packed=0): """ start qemu """ @@ -118,22 +118,30 @@ class TestPVPQemuMultiPathPortRestart(TestCase): vm_params["driver"] = "vhost-user" vm_params["opt_path"] = "./vhost-net" vm_params["opt_mac"] = self.virtio1_mac - if modem == 1 and mergeable == 0: + if modem == 1 and mergeable == 0 and packed == 0: vm_params[ "opt_settings" ] = "disable-modern=false,mrg_rxbuf=off,rx_queue_size=1024,tx_queue_size=1024" - elif modem == 1 and mergeable == 1: + elif modem == 1 and mergeable == 1 and packed == 0: vm_params[ "opt_settings" ] = "disable-modern=false,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024" - elif modem == 0 and mergeable == 0: + elif modem == 0 and mergeable == 0 and packed == 0: vm_params[ "opt_settings" ] = "disable-modern=true,mrg_rxbuf=off,rx_queue_size=1024,tx_queue_size=1024" - elif modem == 0 and mergeable == 1: + elif modem == 0 and mergeable == 1 and packed == 0: vm_params[ "opt_settings" ] = "disable-modern=true,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024" + elif modem == 1 and mergeable == 0 and packed == 1: + vm_params[ + "opt_settings" + ] = "disable-modern=false,mrg_rxbuf=off,packed=on,rx_queue_size=1024,tx_queue_size=1024" + elif modem == 1 and mergeable == 1 and packed == 1: + vm_params[ + "opt_settings" + ] = "disable-modern=false,mrg_rxbuf=on,packed=on,rx_queue_size=1024,tx_queue_size=1024" self.vm.set_vm_device(**vm_params) try: @@ -275,7 +283,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_mergeable_mac(self): """ - performance for [frame_sizes] and restart port on virtio 0.95 mergeable path + Test Case 1: pvp test with virtio 0.95 mergeable path """ self.start_vhost_testpmd() self.start_one_vm(modem=0, mergeable=1) @@ -287,7 +295,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_normal_mac(self): """ - performance for [frame_sizes] and restart port ob virtio0.95 normal path + Test Case 2: pvp test with virtio 0.95 normal path """ self.start_vhost_testpmd() self.start_one_vm(modem=0, mergeable=0) @@ -299,7 +307,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_vector_rx_mac(self): """ - performance for [frame_sizes] and restart port on virtio0.95 vector_rx + Test Case 3: pvp test with virtio 0.95 vrctor_rx path """ self.start_vhost_testpmd() self.start_one_vm(modem=0, mergeable=0) @@ -311,7 +319,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_modern_mergeable_mac(self): """ - performance for [frame_sizes] and restart port on virtio1.0 mergeable path + Test Case 4: pvp test with virtio 1.0 mergeable path """ self.start_vhost_testpmd() self.start_one_vm(modem=1, mergeable=1) @@ -323,7 +331,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_modern_normal_path(self): """ - performance for [frame_sizes] and restart port on virito1.0 normal path + Test Case 5: pvp test with virtio 1.0 normal path """ self.start_vhost_testpmd() self.start_one_vm(modem=1, mergeable=0) @@ -335,7 +343,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): def test_perf_pvp_qemu_modern_vector_rx_mac(self): """ - performance for frame_sizes and restart port on virtio1.0 vector rx + Test Case 6: pvp test with virtio 1.0 vrctor_rx path """ self.start_vhost_testpmd() self.start_one_vm(modem=1, mergeable=0) @@ -345,9 +353,45 @@ class TestPVPQemuMultiPathPortRestart(TestCase): self.result_table_print() self.vm.stop() + def test_perf_pvp_qemu_with_virtio_11_mergeable_mac(self): + """ + Test Case 7: pvp test with virtio 1.1 mergeable path + """ + self.start_vhost_testpmd() + self.start_one_vm(modem=1, mergeable=1, packed=1) + self.start_vm_testpmd(path="mergeable") + self.send_and_verify("virtio1.1 mergeable") + self.close_all_testpmd() + self.result_table_print() + self.vm.stop() + + def test_perf_pvp_qemu_with_virtio_11_normal_path(self): + """ + Test Case 8: pvp test with virtio 1.1 normal path + """ + self.start_vhost_testpmd() + self.start_one_vm(modem=1, mergeable=0, packed=1) + self.start_vm_testpmd(path="normal") + self.send_and_verify("virtio1.1 normal") + self.close_all_testpmd() + self.result_table_print() + self.vm.stop() + + def test_perf_pvp_qemu_with_virtio_11_vector_rx_mac(self): + """ + Test Case 9: pvp test with virtio 1.1 vrctor_rx path + """ + self.start_vhost_testpmd() + self.start_one_vm(modem=1, mergeable=0, packed=1) + self.start_vm_testpmd(path="vector_rx") + self.send_and_verify("virtio1.1 vector_rx") + self.close_all_testpmd() + self.result_table_print() + self.vm.stop() + def test_perf_pvp_qemu_modern_mergeable_mac_restart_100_times(self): """ - restart port 100 times on virtio1.0 mergeable path + Test Case 10: pvp test with virtio 1.0 mergeable path restart 100 times """ self.start_vhost_testpmd() self.start_one_vm(modem=1, mergeable=1) -- 2.17.1