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 7642442386; Thu, 12 Jan 2023 02:32:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C12140A7D; Thu, 12 Jan 2023 02:32:10 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id B83B5400EF for ; Thu, 12 Jan 2023 02:32:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673487128; x=1705023128; h=from:to:cc:subject:date:message-id; bh=UKSiVVkL3HOeG8O+9/WwD8S+p2UHabM1PWBTLxQH2NE=; b=B1+csMXR7+jb/P9Xv7OUiUYj8bWKA55AoUpb6qDgyb0DoXpaoIfwAPcq MzJE/J7ANQvelQvOZo7m8jsY65V/xtwtbMTmHoG5+9JAINabVnENt6Sk4 AagJ8Jn4syCLCldWG4WOdMj4DF21ww9mexslF1XRJJEonc7k/q6rwxGBE IrVRX/19ZofqHlMDlzgNr9Hsh9oJRrmdk8Ydg81nUqyWK/tCVV6hW58X5 o75CErcATKAcpbL9ezhJAes4mBM7gPssqM5ja0dkg8IxoWEvTf1s5NV1N jidMjemK8/j9AhIov9reigCyz6FtBKGxagrcXxUPZtQK3Tdi3lHmc+swn Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="311406520" X-IronPort-AV: E=Sophos;i="5.96,318,1665471600"; d="scan'208";a="311406520" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 17:32:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="607609760" X-IronPort-AV: E=Sophos;i="5.96,318,1665471600"; d="scan'208";a="607609760" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 17:32:06 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/virtio_pvp_regression: optimize start testpmd parameter in VM Date: Thu, 12 Jan 2023 09:27:17 +0800 Message-Id: <20230112012717.13032-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.Optimize start testpmd parameter "-a NIC port,vectorized=1" in VM. 2.Optimize the script description to be same as test plan. Signed-off-by: Dukai Yuan --- tests/TestSuite_virtio_pvp_regression.py | 59 +++++++++++++----------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/tests/TestSuite_virtio_pvp_regression.py b/tests/TestSuite_virtio_pvp_regression.py index 83d0e6bc..8151fde9 100644 --- a/tests/TestSuite_virtio_pvp_regression.py +++ b/tests/TestSuite_virtio_pvp_regression.py @@ -286,17 +286,30 @@ class TestVirtioPVPRegression(TestCase): opt_args = "" if virtio_path in ["mergeable", "normal"]: opt_args = "--enable-hw-vlan-strip" - vm_testpmd = ( - self.app_testpmd_path + " -c 0x7 -n 4 " - "-- -i %s --nb-cores=%s " - "--rxq=%s --txq=%s --txd=1024 --rxd=1024" - ) - vm_testpmd = vm_testpmd % ( - opt_args, - self.queues_number, - self.queues_number, - self.queues_number, - ) + vm_testpmd = ( + self.app_testpmd_path + " -c 0x7 -n 4 " + "-- -i %s --nb-cores=%s " + "--rxq=%s --txq=%s --txd=1024 --rxd=1024" + ) + vm_testpmd = vm_testpmd % ( + opt_args, + self.queues_number, + self.queues_number, + self.queues_number, + ) + else: + vm_testpmd = ( + self.app_testpmd_path + " -c 0x7 -n 4 -a %s,vectorized=1 " + "-- -i %s --nb-cores=%s " + "--rxq=%s --txq=%s --txd=1024 --rxd=1024" + ) + vm_testpmd = vm_testpmd % ( + self.vm_dut.get_port_pci(0), + opt_args, + self.queues_number, + self.queues_number, + self.queues_number, + ) self.vm_dut.send_expect(vm_testpmd, "testpmd> ", 20) self.vm_dut.send_expect("set fwd mac", "testpmd> ", 20) self.vm_dut.send_expect("start", "testpmd> ") @@ -456,8 +469,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_with_mergeable_path(self): """ - Test the performance of one vm with virtio 0.95 on mergeable path - diff qemu + multi queue + reconnect + Test Case 1: pvp test with virtio 0.95 mergeable path """ case_info = "virtio-0.95 mergeable" modem = 0 @@ -466,8 +478,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_modern_mergeable_path(self): """ - Test the performance of one vm with virtio 1.0 on mergeable path - diff qemu + multi queue + reconnect + Test Case 4: pvp test with virtio 1.0 mergeable path """ case_info = "virtio-1.0 mergeable" modem = 1 @@ -476,8 +487,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_non_mergeable_path(self): """ - Test the performance of one vm with virtio 0.95 on normal path - diff qemu + multi queue + reconnect + Test Case 2: pvp test with virtio 0.95 non-mergeable path """ case_info = "virtio-0.95 normal" modem = 0 @@ -486,8 +496,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_modern_non_mergeable_path(self): """ - Test the performance of one vm with virtio 1.0 on normal path - diff qemu + multi queue + reconnect + Test Case 5: pvp test with virtio 1.0 non-mergeable path """ case_info = "virtio-1.0 normal" modem = 1 @@ -496,8 +505,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_vector_rx_path(self): """ - Test the performance of one vm with virtio 0.95 on vector_rx path - diff qemu + multi queue + reconnect + Test Case 3: pvp test with virtio 0.95 vrctor_rx path """ case_info = "virtio-0.95 vector_rx" modem = 0 @@ -506,8 +514,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_regression_modern_vector_rx_path(self): """ - Test the performance of one vm with virtio 1.0 on vector_rx path - diff qemu + multi queue + reconnect + Test Case 6: pvp test with virtio 1.0 vrctor_rx path """ case_info = "virtio-1.0 normal" modem = 1 @@ -516,8 +523,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_with_virtio11_mergeable_path(self): """ - Test the performance of one vm with virtio 1.1 on mergeable path - diff qemu + multi queue + reconnect + Test Case 7: pvp test with virtio 1.1 mergeable path """ case_info = "virtio-1.1 mergeable" modem = 1 @@ -526,8 +532,7 @@ class TestVirtioPVPRegression(TestCase): def test_perf_pvp_with_virtio11_non_mergeable_path(self): """ - Test the performance of one vm with virtio 1.1 on mergeable path - diff qemu + multi queue + reconnect + Test Case 8: pvp test with virtio 1.1 non-mergeable path """ case_info = "virtio-1.1 normal" modem = 1 -- 2.17.1