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 F03F842380; Wed, 11 Jan 2023 03:17:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA3B040E25; Wed, 11 Jan 2023 03:17:29 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8C61A4021E for ; Wed, 11 Jan 2023 03:17:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673403448; x=1704939448; h=from:to:cc:subject:date:message-id; bh=oetmCWe2oQ4MJe3hlRiB/nXblIlnQbhD4MWvlLEPSto=; b=Aj4+OSLSdiry3ln7UBNLCPHfA6cxSikdBGwFB0DtNpmVUO9g34XItFFy SYnEojg7ToDYWFTOzCySc445Gxav6EMiRJYGrWm3BgeWGOBP8i2VCcHgn 167Tby2MT3npFrT05IPl7zb4fL9iCgahkgwpc9+KswcfttUXaBQxIRkC3 6qBE5ZxbSC0fdCFrn5sxIx6hcjUdZ04HhvvHuqn4h/6x4PGqGlSFjhhf2 7T+YaELASfRC5KZj4ax3KSdcVCn0JCKtMbtQB4fTFnlTAJlhSbwxJoFn3 6LIIfE4bXXHGtzDvhv8BJk34QgRhZywQb6Yutn7Aw7cSZisWLBfHFRX20 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="325319309" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="325319309" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 18:17:27 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="659204137" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="659204137" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 18:17:25 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V2] tests/pvp_qemu_multi_paths_port_restart: add new cases Date: Wed, 11 Jan 2023 10:12:41 +0800 Message-Id: <20230111021241.18992-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 to cover mergeable, normal and vector_rx path. 2.Optimize the script description to be same as 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