test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1 2/5] tests/vm2vm_virtio_user: delete case 12-23
@ 2022-04-01 10:10 Wei Ling
  0 siblings, 0 replies; only message in thread
From: Wei Ling @ 2022-04-01 10:10 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

As commit 53d3f4778c(vhost: integrate dmadev in asynchronous data-path),
delete cbdma related case 12-23 form tests/vm2vm_virtio_user.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_vm2vm_virtio_user.py | 701 +--------------------------
 1 file changed, 1 insertion(+), 700 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_user.py b/tests/TestSuite_vm2vm_virtio_user.py
index 1e4969cb..e3efe573 100644
--- a/tests/TestSuite_vm2vm_virtio_user.py
+++ b/tests/TestSuite_vm2vm_virtio_user.py
@@ -952,710 +952,11 @@ class TestVM2VMVirtioUser(TestCase):
             path_mode, extern_param, ringsize
         )
 
-    def test_vm2vm_virtio_user_split_virtqueue_non_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 12: split virtqueue vm2vm non-mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        pkts_64_num = 64
-        pkts_960_num = 502
-        total_pkts_num = pkts_64_num + pkts_960_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=0,in_order=0"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2 --enable-hw-vlan-strip "
-        # get dump pcap file of virtio
-        # the virtio0 will send imix small pkts
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_251_960byte_and_32_64byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 566" in out and "RX-bytes:  486016" in out,
-            "expect: virtio-user1 RX-packets is 566 and RX-bytes is 486016",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap, total_pkts_num, pkts_64_num, pkts_960_num
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_251_960byte_and_32_64byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 566" in out and "RX-bytes:  486016" in out,
-                "expect: virtio-user1 RX-packets is 566 and RX-bytes is 486016",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap, total_pkts_num, pkts_64_num, pkts_960_num
-            )
-
-    def test_vm2vm_virtio_user_split_virtqueue_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 13: split virtqueue vm2vm mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 54
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=1,in_order=0"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_27_4640byte_and_224_64byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-            "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_27_4640byte_and_224_64byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-                "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_split_virtqueue_inorder_non_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 14: split virtqueue vm2vm inorder non-mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 0
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=0,in_order=1"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_27_4640byte_and_224_64byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_27_4640byte_and_224_64byte_pkts()
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_split_virtqueue_vectorized_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 15: split virtqueue vm2vm vectorized path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 0
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=0,in_order=0,vectorized=1"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_224_64byte_and_27_4640byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_224_64byte_and_27_4640byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_split_virtqueue_inorder_mergeable_path_test_non_indirect_desc_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 16: split virtqueue vm2vm inorder mergeable path test non-indirect descriptor with cbdma enable
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_8k_pkts_num = 2
-        large_64_pkts_num = 502
-        total_pkts_num = large_8k_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 256
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=1,in_order=1"
-        ringsize = 256
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_251_64_and_32_8k_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 504" in out and "RX-bytes:  48128" in out,
-            "expect: virtio-user1 RX-packets is 504 and RX-bytes is 48128",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_8k_num=large_8k_pkts_num,
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa and virtio")
-            self.relanuch_vhost_iova_pa_and_virtio(path_mode, extern_params, ringsize)
-            self.send_251_64_and_32_8k_pkts()
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 504" in out and "RX-bytes:  48128" in out,
-                "expect: virtio-user1 RX-packets is 504 and RX-bytes is 48128",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_8k_num=large_8k_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_split_virtqueue_mergeable_path_test_indirect_desc_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 17: split virtqueue vm2vm mergeable path test indirect descriptor with cbdma enable
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_8k_pkts_num = 10
-        large_64_pkts_num = 502
-        total_pkts_num = large_8k_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 256
-        path_mode = "server=1,packed_vq=0,mrg_rxbuf=1,in_order=0"
-        ringsize = 256
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_251_64_and_32_8k_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 512" in out and "RX-bytes:  112128" in out,
-            "expect: virtio-user1 RX-packets is 512 and RX-bytes is 112128",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_8k_num=large_8k_pkts_num,
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa and virtio")
-            self.relanuch_vhost_iova_pa_and_virtio(path_mode, extern_params, ringsize)
-            self.send_251_64_and_32_8k_pkts()
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 512" in out and "RX-bytes:  112128" in out,
-                "expect: virtio-user1 RX-packets is 512 and RX-bytes is 112128",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_8k_num=large_8k_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_non_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 18: packed virtqueue vm2vm non mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        pkts_64_num = 448
-        pkts_4640_num = 0
-        total_pkts_num = pkts_64_num + pkts_4640_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=0,in_order=0"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_224_64byte_and_27_4640byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap, total_pkts_num, pkts_64_num, pkts_4640_num
-        )
-
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_224_64byte_and_27_4640byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap, total_pkts_num, pkts_64_num, pkts_4640_num
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 19: packed virtqueue vm2vm mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 54
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=1,in_order=0"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_27_4640byte_and_224_64byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-            "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_27_4640byte_and_224_64byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-                "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_inorder_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 20: packed virtqueue vm2vm inorder mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 54
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=1,in_order=1"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_27_4640byte_and_224_64byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-            "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_27_4640byte_and_224_64byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 502" in out and "RX-bytes:  279232" in out,
-                "expect: virtio-user1 RX-packets is 502 and RX-bytes is 279232",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_inorder_non_mergeable_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 21: packed virtqueue vm2vm inorder non-mergeable path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 0
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=0,in_order=1"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_224_64byte_and_27_4640byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_224_64byte_and_27_4640byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_vectorized_path_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 22: packed virtqueue vm2vm vectorized path multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 0
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1"
-        ringsize = 4096
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_224_64byte_and_27_4640byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_224_64byte_and_27_4640byte_pkts()
-
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
-    def test_vm2vm_virtio_user_packed_virtqueue_vectorized_path_ringsize_not_power_of_2_multi_queues_check_chain_pkts_with_cbdma(
-        self,
-    ):
-        """
-        Test Case 23: packed virtqueue vm2vm vectorized path ringsize_not_power_of_2 multi-queues payload check with cbdma enabled
-        """
-        self.cbdma_nic_dev_num = 4
-        self.get_cbdma_ports_info_and_bind_to_dpdk()
-        large_4640_pkts_num = 0
-        large_64_pkts_num = 448
-        total_pkts_num = large_4640_pkts_num + large_64_pkts_num
-        self.queue_num = 2
-        self.txd_num = 4096
-        path_mode = "server=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1"
-        ringsize = 4097
-        extern_params = "--rxq=2 --txq=2"
-
-        self.logger.info("check pcap file info about virtio")
-        self.vdevs = (
-            f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}]' "
-            f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}]'"
-        )
-
-        self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize)
-        self.send_224_64byte_and_27_4640byte_pkts()
-        self.vhost_user_pmd.execute_cmd("start")
-        # execute stop and port stop all to avoid testpmd tail_pkts issue.
-        self.vhost_user_pmd.execute_cmd("stop")
-        self.vhost_user_pmd.execute_cmd("port stop all")
-        out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-        self.verify(
-            "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-            "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-        )
-        self.check_packet_payload_valid_with_cbdma(
-            self.dump_virtio_pcap,
-            total_pkts_num,
-            pkts_64_num=large_64_pkts_num,
-            pkts_4640_num=large_4640_pkts_num,
-        )
-        if not self.check_2M_env:
-            self.logger.info("relanuch vhost testpmd iova pa")
-            self.relanuch_vhost_testpmd_iova_pa()
-            self.send_224_64byte_and_27_4640byte_pkts()
-            self.vhost_user_pmd.execute_cmd("start")
-            self.vhost_user_pmd.execute_cmd("stop")
-            out = self.virtio_user1_pmd.execute_cmd("show port stats all")
-            self.verify(
-                "RX-packets: 448" in out and "RX-bytes:  28672" in out,
-                "expect: virtio-user1 RX-packets is 448 and RX-bytes is 28672",
-            )
-            self.check_packet_payload_valid_with_cbdma(
-                self.dump_virtio_pcap,
-                total_pkts_num,
-                pkts_64_num=large_64_pkts_num,
-                pkts_4640_num=large_4640_pkts_num,
-            )
-
     def test_vm2vm_virtio_user_packed_virtqueue_vectorized_path_test_indirect_desc(
         self,
     ):
         """
-        Test Case 24: packed virtqueue vm2vm vectorized-tx path multi-queues test indirect descriptor
+        Test Case 12: packed virtqueue vm2vm vectorized-tx path multi-queues test indirect descriptor
         """
         large_8k_pkts_num = 5
         large_64_pkts_num = 251
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-01 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 10:10 [dts][PATCH V1 2/5] tests/vm2vm_virtio_user: delete case 12-23 Wei Ling

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