test suite reviews and discussions
 help / color / mirror / Atom feed
From: Dukai Yuan <dukaix.yuan@intel.com>
To: dts@dpdk.org
Cc: Dukai Yuan <dukaix.yuan@intel.com>
Subject: [dts][PATCH V1] tests/virtio_pvp_regression: optimize start testpmd parameter in VM
Date: Thu, 12 Jan 2023 09:27:17 +0800	[thread overview]
Message-ID: <20230112012717.13032-1-dukaix.yuan@intel.com> (raw)

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 <dukaix.yuan@intel.com>
---
 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


             reply	other threads:[~2023-01-12  1:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12  1:27 Dukai Yuan [this message]
2023-01-13  2:44 ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230112012717.13032-1-dukaix.yuan@intel.com \
    --to=dukaix.yuan@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).