Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119778/?format=api
http://patchwork.dpdk.org/api/patches/119778/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/20221111075222.2425522-1-weix.ling@intel.com/", "project": { "id": 3, "url": "http://patchwork.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20221111075222.2425522-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221111075222.2425522-1-weix.ling@intel.com", "date": "2022-11-11T07:52:22", "name": "[V1,2/2] tests/loopback_virtio_user_server_mode_dsa: add new testsuite", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "f50e99fd277ede287b267b576de9574bdc4f01c1", "submitter": { "id": 1828, "url": "http://patchwork.dpdk.org/api/people/1828/?format=api", "name": "Ling, WeiX", "email": "weix.ling@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/20221111075222.2425522-1-weix.ling@intel.com/mbox/", "series": [ { "id": 25726, "url": "http://patchwork.dpdk.org/api/series/25726/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=25726", "date": "2022-11-11T07:51:57", "name": "modify the dmas and add new testuite", "version": 1, "mbox": "http://patchwork.dpdk.org/series/25726/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/119778/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/119778/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2EBC1A0542;\n\tFri, 11 Nov 2022 08:59:07 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 28ACB410F2;\n\tFri, 11 Nov 2022 08:59:07 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 14F0840150\n for <dts@dpdk.org>; Fri, 11 Nov 2022 08:59:04 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Nov 2022 23:59:04 -0800", "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Nov 2022 23:59:01 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1668153545; x=1699689545;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=3Wubu3PbQ90tswI37vPNTnGXMSIKlydZah0jtUWZ6tM=;\n b=FGfNoJFNebf1c4tvWU7jPCE91vuIvbFIBJ7I/DMegzHKUCSJeweDzuqC\n snEp5arEjf5khxPadHG13RDqeDb6sH9mXE2Txe6w692vA+IH+rY2+JHgX\n Lwwcy+omLb0KtvjtPA+QryCc689GDGlnBPwi+/0ao9C9jzNSyKhG0IJjx\n kMVfUKvENX45a2Wp17VrL86yL8Tsq9/+6+3rCh0qexyaX4dgg+Kr2Ky6X\n GJUbY7O6Ip4hecSYMehPIkEcAvAjKYT1PNDn1HaM03gOSgN9cKFm/7tHh\n hWe1lADvbNog3uN+aT5pEz0N930CqVBxTa8B2ZaE60w61KZalhkhYDmDf Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10527\"; a=\"397846187\"", "E=Sophos;i=\"5.96,156,1665471600\"; d=\"scan'208\";a=\"397846187\"", "E=McAfee;i=\"6500,9779,10527\"; a=\"631959525\"", "E=Sophos;i=\"5.96,156,1665471600\"; d=\"scan'208\";a=\"631959525\"" ], "From": "Wei Ling <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Wei Ling <weix.ling@intel.com>", "Subject": "[dts][PATCH V1 2/2] tests/loopback_virtio_user_server_mode_dsa: add\n new testsuite", "Date": "Fri, 11 Nov 2022 15:52:22 +0800", "Message-Id": "<20221111075222.2425522-1-weix.ling@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "Upstream the new testsuite\nTestSuite_loopback_virtio_user_server_mode_dsa.py.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n ...te_loopback_virtio_user_server_mode_dsa.py | 1935 +++++++++++++++++\n 1 file changed, 1935 insertions(+)\n create mode 100644 tests/TestSuite_loopback_virtio_user_server_mode_dsa.py", "diff": "diff --git a/tests/TestSuite_loopback_virtio_user_server_mode_dsa.py b/tests/TestSuite_loopback_virtio_user_server_mode_dsa.py\nnew file mode 100644\nindex 00000000..7d5e9f9f\n--- /dev/null\n+++ b/tests/TestSuite_loopback_virtio_user_server_mode_dsa.py\n@@ -0,0 +1,1935 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2022 Intel Corporation\n+#\n+\n+\"\"\"\n+DPDK Test suite.\n+Test loopback virtio-user server mode\n+\"\"\"\n+import re\n+import time\n+\n+from framework.packet import Packet\n+from framework.pmd_output import PmdOutput\n+from framework.test_case import TestCase\n+\n+from .dsadev_common import DsaDev_common as DC\n+\n+\n+class TestLoopbackVirtioUserServerModeDsa(TestCase):\n+ def set_up_all(self):\n+ \"\"\"\n+ Run at the start of each test suite.\n+ \"\"\"\n+ self.dut_ports = self.dut.get_ports()\n+ self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n+ self.core_list = self.dut.get_core_list(config=\"all\", socket=self.ports_socket)\n+ self.vhost_core_list = self.core_list[0:9]\n+ self.virtio0_core_list = self.core_list[10:15]\n+ self.path = self.dut.apps_name[\"test-pmd\"]\n+ self.testpmd_name = self.path.split(\"/\")[-1]\n+ self.app_pdump = self.dut.apps_name[\"pdump\"]\n+ self.dump_pcap_q0 = \"/root/pdump-rx-q0.pcap\"\n+ self.dump_pcap_q1 = \"/root/pdump-rx-q1.pcap\"\n+ self.device_str = None\n+ self.cbdma_dev_infos = []\n+ self.vhost_user = self.dut.new_session(suite=\"vhost_user\")\n+ self.virtio_user = self.dut.new_session(suite=\"virtio-user\")\n+ self.pdump_session = self.dut.new_session(suite=\"pdump\")\n+ self.vhost_user_pmd = PmdOutput(self.dut, self.vhost_user)\n+ self.virtio_user_pmd = PmdOutput(self.dut, self.virtio_user)\n+ self.DC = DC(self)\n+\n+ def set_up(self):\n+ \"\"\"\n+ Run before each test case.\n+ \"\"\"\n+ self.dut.send_expect(\"killall -s INT %s\" % self.testpmd_name, \"#\")\n+ self.dut.send_expect(\"rm -rf ./vhost-net*\", \"#\")\n+ self.table_header = [\n+ \"Mode\",\n+ \"Pkt_size\",\n+ \"Throughput(Mpps)\",\n+ \"Queue Number\",\n+ \"Cycle\",\n+ ]\n+ self.result_table_create(self.table_header)\n+ self.use_dsa_list = []\n+ self.DC.reset_all_work_queue()\n+ self.DC.bind_all_dsa_to_kernel()\n+\n+ @property\n+ def check_2M_env(self):\n+ out = self.dut.send_expect(\n+ \"cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'\", \"# \"\n+ )\n+ return True if out == \"2048\" else False\n+\n+ def send_6192_packets_from_vhost(self, set_csum=True):\n+ \"\"\"\n+ start the testpmd of vhost-user, start to send 8k packets\n+ \"\"\"\n+ if set_csum:\n+ self.vhost_user_pmd.execute_cmd(\"set fwd csum\")\n+ self.vhost_user_pmd.execute_cmd(\"set txpkts 64,64,64,2000,2000,2000\")\n+ self.vhost_user_pmd.execute_cmd(\"set burst 1\")\n+ self.vhost_user_pmd.execute_cmd(\"start tx_first 1\")\n+ self.vhost_user_pmd.execute_cmd(\"stop\")\n+\n+ def send_960_packets_from_vhost(self):\n+ \"\"\"\n+ start the testpmd of vhost-user, start to send 8k packets\n+ \"\"\"\n+ self.vhost_user_pmd.execute_cmd(\"set fwd csum\")\n+ self.vhost_user_pmd.execute_cmd(\"set txpkts 64,128,256,512\")\n+ self.vhost_user_pmd.execute_cmd(\"set burst 1\")\n+ self.vhost_user_pmd.execute_cmd(\"start tx_first 1\")\n+ self.vhost_user_pmd.execute_cmd(\"stop\")\n+\n+ def send_chain_packets_from_vhost(self):\n+ self.vhost_user_pmd.execute_cmd(\"set txpkts 65535,65535\")\n+ self.vhost_user_pmd.execute_cmd(\"start tx_first 32\", timeout=30)\n+\n+ def verify_virtio_user_receive_packets(self):\n+ results = 0.0\n+ time.sleep(3)\n+ for _ in range(10):\n+ out = self.virtio_user_pmd.execute_cmd(\"show port stats all\")\n+ lines = re.search(\"Rx-pps:\\s*(\\d*)\", out)\n+ result = lines.group(1)\n+ results += float(result)\n+ Mpps = results / (1000000 * 10)\n+ self.logger.info(Mpps)\n+ self.verify(Mpps > 0, \"virtio-user can not receive packets\")\n+\n+ def launch_pdump_to_capture_pkt(self):\n+ command = (\n+ self.app_pdump\n+ + \" \"\n+ + \"-v --file-prefix=virtio-user0 -- \"\n+ + \"--pdump 'device_id=net_virtio_user0,queue=0,rx-dev=%s,mbuf-size=8000' \"\n+ + \"--pdump 'device_id=net_virtio_user0,queue=1,rx-dev=%s,mbuf-size=8000'\"\n+ )\n+ self.pdump_session.send_expect(\n+ command % (self.dump_pcap_q0, self.dump_pcap_q1), \"Port\"\n+ )\n+\n+ def check_packet_payload_valid(self, pkt_len, check_payload=True):\n+ self.pdump_session.send_expect(\"^c\", \"# \", 60)\n+ dump_file_list = [self.dump_pcap_q0, self.dump_pcap_q1]\n+ for pcap in dump_file_list:\n+ self.dut.session.copy_file_from(src=\"%s\" % pcap, dst=\"%s\" % pcap)\n+ pkt = Packet()\n+ pkts = pkt.read_pcapfile(pcap)\n+ expect_data = str(pkts[0][\"Raw\"])\n+ for i in range(len(pkts)):\n+ self.verify(\n+ len(pkts[i]) == pkt_len,\n+ \"virtio-user0 receive packet's length not equal %s Byte\" % pkt_len,\n+ )\n+ if check_payload:\n+ check_data = str(pkts[i][\"Raw\"])\n+ self.verify(\n+ check_data == expect_data,\n+ \"the payload in receive packets has been changed from %s\" % i,\n+ )\n+\n+ def start_vhost_testpmd(\n+ self,\n+ cores,\n+ eal_param=\"\",\n+ param=\"\",\n+ no_pci=False,\n+ ports=\"\",\n+ port_options=\"\",\n+ iova_mode=\"va\",\n+ ):\n+ if iova_mode:\n+ eal_param += \" --iova=\" + iova_mode\n+ if not no_pci and port_options != \"\":\n+ self.vhost_user_pmd.start_testpmd(\n+ cores=cores,\n+ eal_param=eal_param,\n+ param=param,\n+ port_options=port_options,\n+ ports=ports,\n+ prefix=\"vhost\",\n+ fixed_prefix=True,\n+ )\n+ elif not no_pci and port_options == \"\":\n+ self.vhost_user_pmd.start_testpmd(\n+ cores=cores,\n+ eal_param=eal_param,\n+ param=param,\n+ ports=ports,\n+ prefix=\"vhost\",\n+ fixed_prefix=True,\n+ )\n+ else:\n+ self.vhost_user_pmd.start_testpmd(\n+ cores=cores,\n+ eal_param=eal_param,\n+ param=param,\n+ no_pci=no_pci,\n+ prefix=\"vhost\",\n+ fixed_prefix=True,\n+ )\n+\n+ def start_virtio_testpmd_with_vhost_net0(\n+ self, cores, eal_param, param, set_fwd_csum=True\n+ ):\n+ \"\"\"\n+ launch the testpmd as virtio with vhost_net0\n+ \"\"\"\n+ if self.check_2M_env:\n+ eal_param += \" --single-file-segments\"\n+ self.virtio_user_pmd.start_testpmd(\n+ cores=cores,\n+ eal_param=eal_param,\n+ param=param,\n+ no_pci=True,\n+ prefix=\"virtio-user0\",\n+ fixed_prefix=True,\n+ )\n+ if set_fwd_csum:\n+ self.virtio_user_pmd.execute_cmd(\"set fwd csum\")\n+ self.virtio_user_pmd.execute_cmd(\"start\")\n+\n+ def test_loopback_split_server_mode_large_chain_packets_stress_test_with_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 1: Loopback split ring server mode large chain packets stress test with dsa dpdk driver\n+ \"\"\"\n+ if not self.check_2M_env:\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = \"txq0@%s-q0;\" \"rxq0@%s-q0\" % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'net_vhost0,iface=vhost-net0,queues=1,dmas=[%s],client=1'\"\n+ % dmas\n+ )\n+ vhost_param = \"--nb-cores=1 --txd=1024 --rxd=1024 --mbuf-size=65535\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=1\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1,mrg_rxbuf=1,in_order=0,vectorized=1,queue_size=2048,server=1\"\n+ virtio_param = \"--nb-cores=1 --rxq=1 --txq=1 --txd=2048 --rxd=2048\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=False,\n+ )\n+ self.send_chain_packets_from_vhost()\n+ self.verify_virtio_user_receive_packets()\n+\n+ def test_loopback_packed_server_mode_large_chain_packets_stress_test_with_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 2: Loopback packed ring server mode large chain packets stress test with dsa dpdk driver\n+ \"\"\"\n+ if not self.check_2M_env:\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = \"txq0@%s-q0;\" \"rxq0@%s-q0\" % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'net_vhost0,iface=vhost-net0,queues=1,dmas=[%s],client=1'\"\n+ % dmas\n+ )\n+ vhost_param = \"--nb-cores=1 --txd=1024 --rxd=1024 --mbuf-size=65535\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=1\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1,mrg_rxbuf=1,in_order=0,vectorized=1,packed_vq=1,queue_size=2048,server=1\"\n+ virtio_param = \" --nb-cores=1 --rxq=1 --txq=1 --txd=2048 --rxd=2048\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=False,\n+ )\n+ self.send_chain_packets_from_vhost()\n+ self.verify_virtio_user_receive_packets()\n+\n+ def test_loopback_split_inorder_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 3: Loopback split ring inorder mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_split_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 4: Loopback split ring mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_split_non_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 5: Loopback split ring non-mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,server=1\"\n+ virtio_param = (\n+ \"--enable-hw-vlan-strip --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ )\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_split_inorder_non_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 6: Loopback split ring inorder non-mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_split_vectorized_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 7: Loopback split ring vectorized path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_packed_inorder_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 8: Loopback packed ring inorder mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_packed_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 9: Loopback packed ring mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_packed_non_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 10: Loopback packed ring non-mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_packed_inorder_non_mergeable_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 11: Loopback packed ring inorder non-mergeable path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_packed_vectorized_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 12: Loopback packed ring vectorized path multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--force-max-simd-bitwidth=512 --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_packed_vectorized_not_powerof_2_multi_queues_payload_check_with_server_mode_and_dpdk_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 13: Loopback packed ring vectorized path and ring size is not power of 2 multi-queues payload check with server mode and dsa dpdk driver\n+ \"\"\"\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=1, driver_name=\"vfio-pci\"\n+ )\n+ dmas = (\n+ \"txq0@%s-q0;\"\n+ \"txq1@%s-q0;\"\n+ \"txq2@%s-q0;\"\n+ \"txq3@%s-q0;\"\n+ \"txq4@%s-q1;\"\n+ \"txq5@%s-q1;\"\n+ \"rxq2@%s-q2;\"\n+ \"rxq3@%s-q2;\"\n+ \"rxq4@%s-q3;\"\n+ \"rxq5@%s-q3;\"\n+ \"rxq6@%s-q3;\"\n+ \"rxq7@%s-q3\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=8\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list,\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--force-max-simd-bitwidth=512 --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,queue_size=1025,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1025 --rxd=1025\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_loopback_split_server_mode_large_chain_packets_stress_test_with_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 14: Loopback split ring server mode large chain packets stress test with dsa kernel driver\n+ \"\"\"\n+ if not self.check_2M_env:\n+ self.DC.create_work_queue(work_queue_number=1, dsa_index=0)\n+ dmas = \"txq0@wq0.0;rxq0@wq0.0\"\n+ vhost_eal_param = (\n+ \"--vdev 'net_vhost0,iface=vhost-net0,queues=1,dmas=[%s],client=1'\"\n+ % dmas\n+ )\n+ vhost_param = \"--nb-cores=1 --txd=1024 --rxd=1024 --mbuf-size=65535\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1,mrg_rxbuf=1,in_order=0,vectorized=1,queue_size=2048,server=1\"\n+ virtio_param = \"--nb-cores=1 --rxq=1 --txq=1 --txd=2048 --rxd=2048\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=False,\n+ )\n+ self.send_chain_packets_from_vhost()\n+ self.verify_virtio_user_receive_packets()\n+\n+ def test_loopback_packed_server_mode_large_chain_packets_stress_test_with_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 15: Loopback packed ring server mode large chain packets stress test with dsa kernel driver\n+ \"\"\"\n+ if not self.check_2M_env:\n+ self.DC.create_work_queue(work_queue_number=1, dsa_index=0)\n+ dmas = \"txq0@wq0.0;rxq0@wq0.0\"\n+ vhost_eal_param = (\n+ \"--vdev 'net_vhost0,iface=vhost-net0,queues=1,dmas=[%s],client=1'\"\n+ % dmas\n+ )\n+ vhost_param = \"--nb-cores=1 --txd=1024 --rxd=1024 --mbuf-size=65535\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1,mrg_rxbuf=1,in_order=0,vectorized=1,packed_vq=1,queue_size=2048,server=1\"\n+ virtio_param = \" --nb-cores=1 --rxq=1 --txq=1 --txd=2048 --rxd=2048\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=False,\n+ )\n+ self.send_chain_packets_from_vhost()\n+ self.verify_virtio_user_receive_packets()\n+\n+ def test_loopback_split_inorder_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 16: Loopback split ring inorder mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_split_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 17: Loopback split ring mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_split_non_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 18: Loopback split ring non-mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,server=1\"\n+ virtio_param = (\n+ \"--enable-hw-vlan-strip --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ )\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_split_inorder_non_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 19: Loopback split ring inorder non-mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_split_vectorized_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 20: Loopback split ring vectorized path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_packed_inorder_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 21: Loopback packed ring inorder mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_packed_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 22: Loopback packed ring mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_6192_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=6192)\n+\n+ def test_loopback_packed_non_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 23: Loopback packed ring non-mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_packed_inorder_non_mergeable_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 24: Loopback packed ring inorder non-mergeable path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_packed_vectorized_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 25: Loopback packed ring vectorized path multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--force-max-simd-bitwidth=512 --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,packed_vq=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+\n+ def test_loopback_packed_vectorized_not_powerof_2_multi_queues_payload_check_with_server_mode_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 26: Loopback packed ring vectorized path and ring size is not power of 2 multi-queues payload check with server mode and dsa kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@wq0.1;\"\n+ \"txq5@wq0.1;\"\n+ \"rxq2@wq1.0;\"\n+ \"rxq3@wq1.0;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queue_size=1025,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1025 --rxd=1025\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ self.vhost_user_pmd.quit()\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.1;\"\n+ \"txq2@wq0.2;\"\n+ \"txq3@wq0.3;\"\n+ \"txq4@wq0.4;\"\n+ \"txq5@wq0.5;\"\n+ \"rxq2@wq1.2;\"\n+ \"rxq3@wq1.3;\"\n+ \"rxq4@wq1.4;\"\n+ \"rxq5@wq1.5;\"\n+ \"rxq6@wq1.6;\"\n+ \"rxq7@wq1.7\"\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.send_960_packets_from_vhost()\n+ self.check_packet_payload_valid(pkt_len=960)\n+\n+ def test_pv_split_and_packed_server_mode_txonly_mode_with_dpdk_and_kernel_driver(\n+ self,\n+ ):\n+ \"\"\"\n+ Test Case 27: PV split and packed ring server mode test txonly mode with dsa dpdk and kernel driver\n+ \"\"\"\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=0)\n+ self.DC.create_work_queue(work_queue_number=8, dsa_index=1)\n+ self.use_dsa_list = self.DC.bind_dsa_to_dpdk(\n+ dsa_number=2, driver_name=\"vfio-pci\", dsa_index_list=[2, 3]\n+ )\n+ dmas = (\n+ \"txq0@wq0.0;\"\n+ \"txq1@wq0.0;\"\n+ \"txq2@wq0.0;\"\n+ \"txq3@wq0.0;\"\n+ \"txq4@%s-q0;\"\n+ \"txq5@%s-q0;\"\n+ \"rxq2@%s-q1;\"\n+ \"rxq3@%s-q1;\"\n+ \"rxq4@wq1.1;\"\n+ \"rxq5@wq1.1;\"\n+ \"rxq6@wq1.1;\"\n+ \"rxq7@wq1.1\"\n+ % (\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ self.use_dsa_list[0],\n+ )\n+ )\n+ vhost_eal_param = (\n+ \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[%s]'\" % dmas\n+ )\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ port_options = {self.use_dsa_list[0]: \"max_queues=2\"}\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=False,\n+ ports=self.use_dsa_list[0:1],\n+ port_options=port_options,\n+ iova_mode=\"va\",\n+ )\n+ virtio_eal_param = \"--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,server=1\"\n+ virtio_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_virtio_testpmd_with_vhost_net0(\n+ cores=self.virtio0_core_list,\n+ eal_param=virtio_eal_param,\n+ param=virtio_param,\n+ set_fwd_csum=True,\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.vhost_user_pmd.execute_cmd(\"set fwd txonly\")\n+ self.vhost_user_pmd.execute_cmd(\"async_vhost tx poll completed on\")\n+ self.send_6192_packets_from_vhost(set_csum=False)\n+ self.check_packet_payload_valid(pkt_len=6192, check_payload=False)\n+\n+ self.vhost_user_pmd.quit()\n+ vhost_eal_param = \"--vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1'\"\n+ vhost_param = \"--nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024\"\n+ self.start_vhost_testpmd(\n+ cores=self.vhost_core_list,\n+ eal_param=vhost_eal_param,\n+ param=vhost_param,\n+ no_pci=True,\n+ iova_mode=\"va\",\n+ )\n+ self.launch_pdump_to_capture_pkt()\n+ self.vhost_user_pmd.execute_cmd(\"set fwd txonly\")\n+ self.vhost_user_pmd.execute_cmd(\"async_vhost tx poll completed on\")\n+ self.send_6192_packets_from_vhost(set_csum=False)\n+ self.check_packet_payload_valid(pkt_len=6192, check_payload=False)\n+\n+ def tear_down(self):\n+ \"\"\"\n+ Run after each test case.\n+ \"\"\"\n+ self.dut.send_expect(\"killall -s INT %s\" % self.testpmd_name, \"#\")\n+ self.dut.kill_all()\n+ self.DC.reset_all_work_queue()\n+ self.DC.bind_all_dsa_to_kernel()\n+\n+ def tear_down_all(self):\n+ \"\"\"\n+ Run after each test suite.\n+ \"\"\"\n+ self.dut.close_session(self.vhost_user)\n+ self.dut.close_session(self.virtio_user)\n", "prefixes": [ "V1", "2/2" ] }{ "id": 119778, "url": "