test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code
@ 2022-05-19  6:12 Wei Ling
  2022-05-19  9:32 ` Huang, ChenyuX
  2022-05-25  9:45 ` lijuan.tu
  0 siblings, 2 replies; 4+ messages in thread
From: Wei Ling @ 2022-05-19  6:12 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

Delete CBDMA related testcases and code.

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

diff --git a/tests/TestSuite_virtio_event_idx_interrupt.py b/tests/TestSuite_virtio_event_idx_interrupt.py
index 2429887b..0195ebbb 100644
--- a/tests/TestSuite_virtio_event_idx_interrupt.py
+++ b/tests/TestSuite_virtio_event_idx_interrupt.py
@@ -89,46 +89,6 @@ class TestVirtioIdxInterrupt(TestCase):
         )
         self.core_list = self.dut.get_core_list(self.core_config)
 
-    def get_cbdma_ports_info_and_bind_to_dpdk(self, cbdma_num):
-        """
-        get all cbdma ports
-        """
-        out = self.dut.send_expect(
-            "./usertools/dpdk-devbind.py --status-dev dma", "# ", 30
-        )
-        cbdma_dev_infos = re.findall("\s*(0000:\S+:\d+.\d+)", out)
-        self.verify(
-            len(cbdma_dev_infos) >= cbdma_num,
-            "There no enough cbdma device to run this suite",
-        )
-        used_cbdma = cbdma_dev_infos[0:cbdma_num]
-        dmas_info = ""
-        for dmas in used_cbdma:
-            number = used_cbdma.index(dmas)
-            dmas = "txq{}@{};".format(number, dmas)
-            dmas_info += dmas
-        self.dmas_info = dmas_info[:-1]
-        self.device_str = " ".join(used_cbdma)
-        self.dut.send_expect(
-            "./usertools/dpdk-devbind.py --force --bind=%s %s"
-            % (self.drivername, self.device_str),
-            "# ",
-            60,
-        )
-
-    def bind_cbdma_device_to_kernel(self):
-        if self.device_str is not None:
-            self.dut.send_expect("modprobe ioatdma", "# ")
-            self.dut.send_expect(
-                "./usertools/dpdk-devbind.py -u %s" % self.device_str, "# ", 30
-            )
-            self.dut.send_expect(
-                "./usertools/dpdk-devbind.py --force --bind=ioatdma  %s"
-                % self.device_str,
-                "# ",
-                60,
-            )
-
     def start_vhost_testpmd(self, dmas=None, mode=False):
         """
         start the testpmd on vhost side
@@ -136,29 +96,12 @@ class TestVirtioIdxInterrupt(TestCase):
         # get the core mask depend on the nb_cores number
         self.get_core_mask()
         testcmd = self.app_testpmd_path + " "
-        if dmas:
-            device_str = self.device_str.split(" ")
-            device_str.append(self.pf_pci)
-            if mode:
-                vdev = [
-                    "'net_vhost,iface=%s/vhost-net,queues=%d,%s=1,dmas=[%s]'"
-                    % (self.base_dir, self.queues, mode, dmas)
-                ]
-            else:
-                vdev = [
-                    "net_vhost,iface=%s/vhost-net,queues=%d,dmas=[%s]"
-                    % (self.base_dir, self.queues, dmas)
-                ]
-            eal_params = self.dut.create_eal_parameters(
-                cores=self.core_list, prefix="vhost", ports=device_str, vdevs=vdev
-            )
-        else:
-            vdev = [
-                "net_vhost,iface=%s/vhost-net,queues=%d " % (self.base_dir, self.queues)
-            ]
-            eal_params = self.dut.create_eal_parameters(
-                cores=self.core_list, prefix="vhost", ports=[self.pf_pci], vdevs=vdev
-            )
+        vdev = [
+            "net_vhost,iface=%s/vhost-net,queues=%d " % (self.base_dir, self.queues)
+        ]
+        eal_params = self.dut.create_eal_parameters(
+            cores=self.core_list, prefix="vhost", ports=[self.pf_pci], vdevs=vdev
+        )
         para = " -- -i --nb-cores=%d --txd=1024 --rxd=1024 --rxq=%d --txq=%d" % (
             self.nb_cores,
             self.queues,
@@ -319,7 +262,7 @@ class TestVirtioIdxInterrupt(TestCase):
         self.start_vhost_testpmd()
         self.start_vms()
         self.config_virito_net_in_vm()
-        res = self.check_packets_after_reload_virtio_device(reload_times=30)
+        res = self.check_packets_after_reload_virtio_device(reload_times=100)
         self.verify(res is True, "Should increase the wait times of ixia")
         self.stop_all_apps()
 
@@ -347,7 +290,7 @@ class TestVirtioIdxInterrupt(TestCase):
         self.start_vhost_testpmd()
         self.start_vms(packed=True)
         self.config_virito_net_in_vm()
-        res = self.check_packets_after_reload_virtio_device(reload_times=30)
+        res = self.check_packets_after_reload_virtio_device(reload_times=100)
         self.verify(res is True, "Should increase the wait times of ixia")
         self.stop_all_apps()
 
@@ -366,70 +309,6 @@ class TestVirtioIdxInterrupt(TestCase):
         self.check_each_queue_has_packets_info_on_vhost()
         self.stop_all_apps()
 
-    def test_perf_split_ring_virito_pci_driver_reload_with_cbdma_enabled(self):
-        """
-        Test Case 7: Split 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()
-        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_split_ring_virtio_net_cores_with_event_idx_interrupt_mode_and_cbdma_enabled_16queue(
-        self,
-    ):
-        """
-        Test Case 8: Wake up split 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(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()
-        self.stop_all_apps()
-
     def tear_down(self):
         """
         Run after each test case.
@@ -437,7 +316,6 @@ class TestVirtioIdxInterrupt(TestCase):
         self.dut.close_session(self.vhost)
         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()
 
     def tear_down_all(self):
         """
-- 
2.25.1


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

* RE: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code
  2022-05-19  6:12 [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code Wei Ling
@ 2022-05-19  9:32 ` Huang, ChenyuX
  2022-05-19 12:28   ` He, Xingguang
  2022-05-25  9:45 ` lijuan.tu
  1 sibling, 1 reply; 4+ messages in thread
From: Huang, ChenyuX @ 2022-05-19  9:32 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> -----Original Message-----
> From: Wei Ling <weix.ling@intel.com>
> Sent: Thursday, May 19, 2022 2:12 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA
> related testcases and code
> 
> Delete CBDMA related testcases and code.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>
> ---
Tested-by: Chenyu Huang <chenyux.huang@intel.com>

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

* RE: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code
  2022-05-19  9:32 ` Huang, ChenyuX
@ 2022-05-19 12:28   ` He, Xingguang
  0 siblings, 0 replies; 4+ messages in thread
From: He, Xingguang @ 2022-05-19 12:28 UTC (permalink / raw)
  To: dts; +Cc: Ling, WeiX

> -----Original Message-----
> From: Huang, ChenyuX <chenyux.huang@intel.com>
> Sent: Thursday, May 19, 2022 5:33 PM
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: RE: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete
> CBDMA related testcases and code
> 
> > -----Original Message-----
> > From: Wei Ling <weix.ling@intel.com>
> > Sent: Thursday, May 19, 2022 2:12 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete
> > CBDMA related testcases and code
> >
> > Delete CBDMA related testcases and code.
> >
> > Signed-off-by: Wei Ling <weix.ling@intel.com>
> > ---
> Tested-by: Chenyu Huang <chenyux.huang@intel.com>

Acked-by: Xingguang He<xingguang.he@intel.com>

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

* [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code
  2022-05-19  6:12 [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code Wei Ling
  2022-05-19  9:32 ` Huang, ChenyuX
@ 2022-05-25  9:45 ` lijuan.tu
  1 sibling, 0 replies; 4+ messages in thread
From: lijuan.tu @ 2022-05-25  9:45 UTC (permalink / raw)
  To: dts, Wei Ling; +Cc: Wei Ling

On Thu, 19 May 2022 02:12:06 -0400, Wei Ling <weix.ling@intel.com> wrote:
> Delete CBDMA related testcases and code.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


Series applied, thanks

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

end of thread, other threads:[~2022-05-25  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  6:12 [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt: delete CBDMA related testcases and code Wei Ling
2022-05-19  9:32 ` Huang, ChenyuX
2022-05-19 12:28   ` He, Xingguang
2022-05-25  9:45 ` lijuan.tu

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