test suite reviews and discussions
 help / color / mirror / Atom feed
From: Ling Wei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Ling Wei <weix.ling@intel.com>
Subject: [dts] [PATCH V1] tests/virtio_event_idx_interrupt: add 2 packed ring cbdma case
Date: Wed,  7 Apr 2021 17:20:03 +0800	[thread overview]
Message-ID: <20210407092003.255794-1-weix.ling@intel.com> (raw)

Add 2 packed ring cbdma testcase 9 and 10 sync with testplan. 

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_virtio_event_idx_interrupt.py | 40 ++++++++++++++++---
 1 file changed, 35 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_virtio_event_idx_interrupt.py b/tests/TestSuite_virtio_event_idx_interrupt.py
index b4c9de15..37634f05 100644
--- a/tests/TestSuite_virtio_event_idx_interrupt.py
+++ b/tests/TestSuite_virtio_event_idx_interrupt.py
@@ -257,7 +257,7 @@ class TestVirtioIdxInterrupt(TestCase):
 
     def test_perf_split_ring_virito_pci_driver_reload(self):
         """
-        virtio-pci driver reload test
+        Test Case 2: Split ring virtio-pci driver reload test
         """
         self.queues = 1
         self.nb_cores = 1
@@ -270,7 +270,7 @@ class TestVirtioIdxInterrupt(TestCase):
 
     def test_perf_wake_up_split_ring_virtio_net_cores_with_event_idx_interrupt_mode_16queue(self):
         """
-        wake up virtio-net cores with event idx interrupt mode 16 queues test
+        Test Case 3: Wake up split ring virtio-net cores with event idx interrupt mode 16 queues test
         """
         self.queues = 16
         self.nb_cores = 16
@@ -283,7 +283,7 @@ class TestVirtioIdxInterrupt(TestCase):
 
     def test_perf_packed_ring_virito_pci_driver_reload(self):
         """
-        virtio-pci driver reload test
+        Test Case 5: Packed ring virtio-pci driver reload test
         """
         self.queues = 1
         self.nb_cores = 1
@@ -296,7 +296,7 @@ class TestVirtioIdxInterrupt(TestCase):
 
     def test_perf_wake_up_packed_ring_virtio_net_cores_with_event_idx_interrupt_mode_16queue(self):
         """
-        wake up virtio-net cores with event idx interrupt mode 16 queues test
+        Test Case 6: Wake up packed ring virtio-net cores with event idx interrupt mode 16 queues test
         """
         self.queues = 16
         self.nb_cores = 16
@@ -331,7 +331,37 @@ class TestVirtioIdxInterrupt(TestCase):
         used_cbdma_num = 16
         self.get_cbdma_ports_info_and_bind_to_dpdk(used_cbdma_num)
         self.start_vhost_testpmd(dmas=self.dmas_info, mode='client')
-        self.start_vms(packed=False, mode='server')
+        self.start_vms(mode='server')
+        self.config_virito_net_in_vm()
+        self.start_to_send_packets(delay=15)
+        self.check_each_queue_has_packets_info_on_vhost()
+        self.stop_all_apps()
+
+    def test_perf_packed_ring_virito_pci_driver_reload_with_cbdma_enabled(self):
+        """
+        Test Case 9: Packed ring virtio-pci driver reload test with CBDMA enabled
+        """
+        self.queues = 1
+        self.nb_cores = 1
+        used_cbdma_num = 1
+        self.get_cbdma_ports_info_and_bind_to_dpdk(used_cbdma_num)
+        self.start_vhost_testpmd(dmas=self.dmas_info)
+        self.start_vms(packed=True)
+        self.config_virito_net_in_vm()
+        res = self.check_packets_after_reload_virtio_device(reload_times=30)
+        self.verify(res is True, "Should increase the wait times of ixia")
+        self.stop_all_apps()
+
+    def test_perf_wake_up_packed_ring_virtio_net_cores_with_event_idx_interrupt_mode_and_cbdma_enabled_16queue(self):
+        """
+        Test Case 10: Wake up packed ring virtio-net cores with event idx interrupt mode and cbdma enabled 16 queues test
+        """
+        self.queues = 16
+        self.nb_cores = 16
+        used_cbdma_num = 16
+        self.get_cbdma_ports_info_and_bind_to_dpdk(used_cbdma_num)
+        self.start_vhost_testpmd(dmas=self.dmas_info, mode='client')
+        self.start_vms(packed=True, mode='server')
         self.config_virito_net_in_vm()
         self.start_to_send_packets(delay=15)
         self.check_each_queue_has_packets_info_on_vhost()
-- 
2.25.1


             reply	other threads:[~2021-04-07  9:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07  9:20 Ling Wei [this message]
2021-04-07  9:22 ` Ling, WeiX
2021-04-12  2:50   ` Wang, Yinan
2021-04-12  5:31     ` Tu, Lijuan

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=20210407092003.255794-1-weix.ling@intel.com \
    --to=weix.ling@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).