test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v1] tests: update case due to virtio path selection logic change in TestSuite_loopback_multi_paths_port_restart.py
@ 2020-04-28 18:59 Yinan
  2020-05-06  3:14 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yinan @ 2020-04-28 18:59 UTC (permalink / raw)
  To: dts; +Cc: Wang Yinan

From: Wang Yinan <yinan.wang@intel.com>

Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
 ...Suite_loopback_multi_paths_port_restart.py | 23 +++++++++++++++----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py
index 5f1faad..8d23196 100644
--- a/tests/TestSuite_loopback_multi_paths_port_restart.py
+++ b/tests/TestSuite_loopback_multi_paths_port_restart.py
@@ -49,7 +49,7 @@ class TestLoopbackPortRestart(TestCase):
         """
         Run at the start of each test suite.
         """
-        self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
+        self.frame_sizes = [64, 1518]
         self.core_config = "1S/5C/1T"
         self.dut_ports = self.dut.get_ports()
         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
@@ -230,7 +230,20 @@ class TestLoopbackPortRestart(TestCase):
         """
         performance for [frame_sizes] and restart port on inorder mergeable path
         """
-        pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1",
+        pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1",
+                          "path": "--rx-offloads=0x10 --enable-hw-vlan-strip"}
+        for frame_size in self.frame_sizes:
+            self.start_vhost_testpmd()
+            self.start_virtio_user_testpmd(pmd_arg)
+            self.send_and_verify("packed ring inorder non-mergeable", frame_size)
+            self.close_all_testpmd()
+        self.result_table_print()
+
+    def test_lookback_test_with_packed_ring_vectorized_path(self):
+        """
+        performance for [frame_sizes] and restart port on inorder mergeable path
+        """
+        pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1",
                           "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
         for frame_size in self.frame_sizes:
             self.start_vhost_testpmd()
@@ -282,7 +295,7 @@ class TestLoopbackPortRestart(TestCase):
         """
         performance for [frame_sizes] and restart port on virtio normal path
         """
-        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
+        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
                           "path": "--tx-offloads=0x0 --enable-hw-vlan-strip "}
         for frame_size in self.frame_sizes:
             self.start_vhost_testpmd()
@@ -295,8 +308,8 @@ class TestLoopbackPortRestart(TestCase):
         """
         performance for frame_sizes and restart port on virtio vector rx
         """
-        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0 ",
-                          "path": ""}
+        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
+                          "path": "--tx-offloads=0x0 "}
         for frame_size in self.frame_sizes:
             self.start_vhost_testpmd()
             self.start_virtio_user_testpmd(pmd_arg)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH v1] tests: update case due to virtio path selection logic change in TestSuite_loopback_multi_paths_port_restart.py
  2020-04-28 18:59 [dts] [PATCH v1] tests: update case due to virtio path selection logic change in TestSuite_loopback_multi_paths_port_restart.py Yinan
@ 2020-05-06  3:14 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-05-06  3:14 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Wednesday, April 29, 2020 3:00 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH v1] tests: update case due to virtio path selection logic
> change in TestSuite_loopback_multi_paths_port_restart.py
> 
> From: Wang Yinan <yinan.wang@intel.com>
> 
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
>  ...Suite_loopback_multi_paths_port_restart.py | 23 +++++++++++++++----
>  1 file changed, 18 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py
> b/tests/TestSuite_loopback_multi_paths_port_restart.py
> index 5f1faad..8d23196 100644
> --- a/tests/TestSuite_loopback_multi_paths_port_restart.py
> +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py
> @@ -49,7 +49,7 @@ class TestLoopbackPortRestart(TestCase):
>          """
>          Run at the start of each test suite.
>          """
> -        self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
> +        self.frame_sizes = [64, 1518]
>          self.core_config = "1S/5C/1T"
>          self.dut_ports = self.dut.get_ports()
>          self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> @@ -230,7 +230,20 @@ class TestLoopbackPortRestart(TestCase):
>          """
>          performance for [frame_sizes] and restart port on inorder mergeable
> path
>          """
> -        pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1",
> +        pmd_arg = {"version":
> "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1",
> +                          "path": "--rx-offloads=0x10 --enable-hw-vlan-strip"}
> +        for frame_size in self.frame_sizes:
> +            self.start_vhost_testpmd()
> +            self.start_virtio_user_testpmd(pmd_arg)
> +            self.send_and_verify("packed ring inorder non-mergeable",
> frame_size)
> +            self.close_all_testpmd()
> +        self.result_table_print()
> +
> +    def test_lookback_test_with_packed_ring_vectorized_path(self):
> +        """
> +        performance for [frame_sizes] and restart port on inorder mergeable
> path
> +        """
> +        pmd_arg = {"version":
> "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1",
>                            "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
>          for frame_size in self.frame_sizes:
>              self.start_vhost_testpmd()
> @@ -282,7 +295,7 @@ class TestLoopbackPortRestart(TestCase):
>          """
>          performance for [frame_sizes] and restart port on virtio normal path
>          """
> -        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
> +        pmd_arg = {"version":
> "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
>                            "path": "--tx-offloads=0x0 --enable-hw-vlan-strip "}
>          for frame_size in self.frame_sizes:
>              self.start_vhost_testpmd()
> @@ -295,8 +308,8 @@ class TestLoopbackPortRestart(TestCase):
>          """
>          performance for frame_sizes and restart port on virtio vector rx
>          """
> -        pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0 ",
> -                          "path": ""}
> +        pmd_arg = {"version":
> "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
> +                          "path": "--tx-offloads=0x0 "}
>          for frame_size in self.frame_sizes:
>              self.start_vhost_testpmd()
>              self.start_virtio_user_testpmd(pmd_arg)
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-06  3:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 18:59 [dts] [PATCH v1] tests: update case due to virtio path selection logic change in TestSuite_loopback_multi_paths_port_restart.py Yinan
2020-05-06  3:14 ` Tu, Lijuan

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).