test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v2] tests: add packed ring vectorized cases in vhost_pmd_xstats
@ 2020-04-25 17:59 Yinan
  2020-04-27  7:50 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yinan @ 2020-04-25 17: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>
---
 tests/TestSuite_vhost_pmd_xstats.py | 35 ++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
index ad9e245..3873213 100755
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -182,7 +182,7 @@ class TestVhostPmdXstats(TestCase):
         date_new = date_old + datetime.timedelta(minutes=2)
         while (1):
             date_now = datetime.datetime.now()
-            scope = 'broadcast'
+            scope = 'multicast'
             self.dmac = '01:00:00:33:00:01'
             self.scapy_send_packet(64, self.dmac, 1)
             if date_now >= date_new:
@@ -216,8 +216,8 @@ class TestVhostPmdXstats(TestCase):
         """
         performance for Vhost PVP virtio1.1 inorder no_mergeable Path.
         """
-        virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0",
-                            "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
+        virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1",
+                            "path": "--rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip"}
         self.start_vhost_testpmd()
         self.start_virtio_testpmd(virtio_pmd_arg)
         self.xstats_number_and_type_verify()
@@ -227,7 +227,7 @@ class TestVhostPmdXstats(TestCase):
         """
         performance for Vhost PVP virtio1.1 inorder no_mergeable Path.
         """
-        virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,lro=0",
+        virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1",
                             "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
         self.start_vhost_testpmd()
         self.start_virtio_testpmd(virtio_pmd_arg)
@@ -246,6 +246,29 @@ class TestVhostPmdXstats(TestCase):
         self.send_verify(scope, self.scapy_num)
         self.close_all_testpmd()
 
+    def test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2(self):
+        """
+        performance for Vhost PVP virtio1.1 inorder no_mergeable Path.
+        """
+        virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1,queue_size=1221",
+                            "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --rxd=1221 --txd=1221"}
+        self.start_vhost_testpmd()
+        self.start_virtio_testpmd(virtio_pmd_arg)
+        self.xstats_number_and_type_verify()
+        # stability test with basic packets number check
+        self.scapy_num = 0
+        date_old = datetime.datetime.now()
+        date_new = date_old + datetime.timedelta(minutes=2)
+        while (1):
+            date_now = datetime.datetime.now()
+            scope = 'broadcast'
+            self.dmac = 'ff:ff:ff:ff:ff:ff'
+            self.scapy_send_packet(64, self.dmac, 1)
+            if date_now >= date_new:
+                break
+        self.send_verify(scope, self.scapy_num)
+        self.close_all_testpmd()
+
     def test_vhost_xstats_inorder_mergeable(self):
         """
         performance for Vhost PVP In_order mergeable Path.
@@ -283,7 +306,7 @@ class TestVhostPmdXstats(TestCase):
         """
         performance for Vhost PVP no_mergeable Path.
         """
-        virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
+        virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
                             "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
         self.start_vhost_testpmd()
         self.start_virtio_testpmd(virtio_pmd_arg)
@@ -294,7 +317,7 @@ class TestVhostPmdXstats(TestCase):
         """
         performance for Vhost PVP Vector_RX Path
         """
-        virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
+        virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
                             "path": "--tx-offloads=0x0"}
         self.start_vhost_testpmd()
         self.start_virtio_testpmd(virtio_pmd_arg)
-- 
2.17.1


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

end of thread, other threads:[~2020-04-27  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25 17:59 [dts] [PATCH v2] tests: add packed ring vectorized cases in vhost_pmd_xstats Yinan
2020-04-27  7:50 ` 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).