From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 667AEA0546; Wed, 7 Apr 2021 11:21:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AD1914110F; Wed, 7 Apr 2021 11:21:40 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id F2BE1141100 for ; Wed, 7 Apr 2021 11:21:38 +0200 (CEST) IronPort-SDR: 0G2MhPOqc6b7tbj62YzuehofMo9ZZfCBFp+gLrZ+nyniAfCvH6iDiAbS7Llia7/iz7/t8kHGCd +Z0MM534nxyQ== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="254602413" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="254602413" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 02:21:37 -0700 IronPort-SDR: cqrYMQiB29USozQEP+PF+1XmDJl5ffxM0F15RP+RN9kcwsT+J2/j0tpqCu/790a2IZ/WD53oXl GjeB6Gj9/0Tw== X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415187303" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 02:21:36 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Wed, 7 Apr 2021 17:20:03 +0800 Message-Id: <20210407092003.255794-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/virtio_event_idx_interrupt: add 2 packed ring cbdma case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Add 2 packed ring cbdma testcase 9 and 10 sync with testplan. Signed-off-by: Ling Wei --- 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