test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan
@ 2021-04-02  8:37 Ling Wei
  2021-04-02  8:41 ` Ling, WeiX
  2021-04-07  6:55 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Ling Wei @ 2021-04-02  8:37 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

Add 1 packed ring cbdma testcase 7 sync with testplan.

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

diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
index 57bcf6c7..675a15ee 100644
--- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py
@@ -180,7 +180,10 @@ class TestVhostVirtioPmdInterrupt(TestCase):
         vm_params['opt_path'] = '%s/vhost-net' % self.base_dir
         vm_params['opt_mac'] = "00:11:22:33:44:55"
         vm_params['opt_queue'] = self.queues
-        opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2*self.queues+2) if not packed else "mrg_rxbuf=on,csum=on,mq=on,vectors=%d,packed=on" % (2*self.queues+2)
+        if not packed:
+            opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2 * self.queues + 2)
+        else:
+            opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d,packed=on" % (2 * self.queues + 2)
         if mode == 0:
             vm_params['opt_settings'] = "disable-modern=true," + opt_param
         elif mode == 1:
@@ -309,7 +312,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
 
     def test_perf_virtio_pmd_interrupt_with_4queues(self):
         """
-        wake up virtio_user 0.95 core with l3fwd-power sample
+        Test Case 1: Basic virtio interrupt test with 4 queues
         """
         self.queues = 4
         self.nb_cores = 4
@@ -321,7 +324,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
 
     def test_perf_virtio_pmd_interrupt_with_16queues(self):
         """
-        wake up virtio_user 0.95 core with l3fwd-power sample
+        Test Case 2: Basic virtio interrupt test with 16 queues
         """
         self.queues = 16
         self.nb_cores = 16
@@ -333,7 +336,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
 
     def test_perf_virito10_pmd_interrupt_with_4queues(self):
         """
-        wake up virtio_user 1.0 core with l3fwd-power sample
+        Test Case 3: Basic virtio-1.0 interrupt test with 4 queues
         """
         self.queues = 4
         self.nb_cores = 4
@@ -345,7 +348,7 @@ class TestVhostVirtioPmdInterrupt(TestCase):
 
     def test_perf_packed_ring_virtio_interrupt_with_16queues(self):
         """
-        wake up virtio_user 0.95 core with l3fwd-power sample
+        Test Case 4: Packed ring virtio interrupt test with 16 queues
         """
         self.queues = 16
         self.nb_cores = 16
@@ -383,12 +386,27 @@ class TestVhostVirtioPmdInterrupt(TestCase):
         self.launch_l3fwd_power_in_vm()
         self.send_and_verify()
 
+    def test_perf_packed_ring_virtio_interrupt_with_16_queues_and_cbdma_enabled(self):
+        """
+        Test Case 7: Packed ring virtio interrupt test with 16 queues and cbdma enabled
+        """
+        used_cbdma_num = 16
+        self.queues = 16
+        self.nb_cores = 16
+        self.get_cbdma_ports_info_and_bind_to_dpdk(used_cbdma_num)
+        self.start_testpmd_on_vhost(self.dmas_info)
+        self.start_vms(mode=0, packed=True)
+        self.prepare_vm_env()
+        self.launch_l3fwd_power_in_vm()
+        self.send_and_verify()
+
     def tear_down(self):
         """
         Run after each test case.
         """
         self.stop_all_apps()
         self.dut.kill_all()
+        self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
         self.bind_cbdma_device_to_kernel()
 
-- 
2.25.1


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

* Re: [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan
  2021-04-02  8:37 [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan Ling Wei
@ 2021-04-02  8:41 ` Ling, WeiX
  2021-04-12  2:50   ` Wang, Yinan
  2021-04-07  6:55 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2021-04-02  8:41 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Friday, April 2, 2021 04:38 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed
> ring cbdma testcase sync with testplan
> 
Tested-by: Wei Ling <weix.ling@intel.com>

[-- Attachment #2: TestVhostUserInterrupt.log --]
[-- Type: application/octet-stream, Size: 37363 bytes --]

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

* Re: [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan
  2021-04-02  8:37 [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan Ling Wei
  2021-04-02  8:41 ` Ling, WeiX
@ 2021-04-07  6:55 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-04-07  6:55 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> Add 1 packed ring cbdma testcase 7 sync with testplan.
> 
> Signed-off-by: Ling Wei <weix.ling@intel.com>

Applied.

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

* Re: [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan
  2021-04-02  8:41 ` Ling, WeiX
@ 2021-04-12  2:50   ` Wang, Yinan
  0 siblings, 0 replies; 4+ messages in thread
From: Wang, Yinan @ 2021-04-12  2:50 UTC (permalink / raw)
  To: Ling, WeiX, dts

Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?4?2? 16:41
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1
> packed ring cbdma testcase sync with testplan
> 
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling@intel.com>
> > Sent: Friday, April 2, 2021 04:38 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed
> > ring cbdma testcase sync with testplan
> >
> Tested-by: Wei Ling <weix.ling@intel.com>

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

end of thread, other threads:[~2021-04-12  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02  8:37 [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan Ling Wei
2021-04-02  8:41 ` Ling, WeiX
2021-04-12  2:50   ` Wang, Yinan
2021-04-07  6:55 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git