get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/109075/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 109075,
    "url": "http://patches.dpdk.org/api/patches/109075/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220401102241.314507-1-weix.ling@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.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": "<20220401102241.314507-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220401102241.314507-1-weix.ling@intel.com",
    "date": "2022-04-01T10:22:41",
    "name": "[V1,1/3] test_plans/vhost_cbdma_test_plan: modify testplan by DPDK22.03 change",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f0bf30777cb856f94a3d43e9df6c5f8f7e8585eb",
    "submitter": {
        "id": 1828,
        "url": "http://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220401102241.314507-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 22316,
            "url": "http://patches.dpdk.org/api/series/22316/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=22316",
            "date": "2022-04-01T10:22:30",
            "name": "modify testplan testsuite and config file by DPDK22.03 change",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22316/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/109075/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/109075/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 4C1A8A0507;\n\tFri,  1 Apr 2022 12:22:53 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4F82042924;\n\tFri,  1 Apr 2022 12:22:52 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 0130942911\n for <dts@dpdk.org>; Fri,  1 Apr 2022 12:22:48 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Apr 2022 03:22:47 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.251.222])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Apr 2022 03:22:45 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1648808569; x=1680344569;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=icVMRNqVjdyycnvGMEQndHaA9Ko3R0UBvD8yeeG1Drw=;\n b=AHuUSBpy9huzcij7U/dH9NZvd/UjxSSdf8pQNd5pmsjzHUqUU0ngqcl8\n sR1kfnhyNpZRLKvP66CVnc3PNk1yCSpVNdxgmYt8SS3uHHAxyP2v+xJKw\n 9mTvCp9s//4brl0C7QpuaJ8KOeG/lvqGLWPH3/oJgGYwT7avMSia1Z3Pr\n MYCiPMojAiezRt0OuD7h5oaQ2IrR+XFfrdY1QJ1cZz03/xM/szuwVlUeX\n dgCaGFAR1Bcsc2tNi4lDoR175rYCGHXPWLRXWJ1bC1pGtAlcJKo+SMUND\n DvwBeI3DZxTA6SR1Y0WAFZ2r73pEjeYoGCW1TTv7RaArfTiaqRZl/H6Aj w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10303\"; a=\"257677893\"",
            "E=Sophos;i=\"5.90,227,1643702400\"; d=\"scan'208\";a=\"257677893\"",
            "E=Sophos;i=\"5.90,227,1643702400\"; d=\"scan'208\";a=\"567367267\""
        ],
        "From": "Wei Ling <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Wei Ling <weix.ling@intel.com>",
        "Subject": "[dts][PATCH V1 1/3] test_plans/vhost_cbdma_test_plan: modify testplan\n by DPDK22.03 change",
        "Date": "Fri,  1 Apr 2022 18:22:41 +0800",
        "Message-Id": "<20220401102241.314507-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": "As commit 53d3f4778c(vhost: integrate dmadev in asynchronous data-path),\nmodify vhost_cbdma testplan by DPDK22.03 Lib change.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n test_plans/vhost_cbdma_test_plan.rst | 1392 ++++++++++++++++++++------\n 1 file changed, 1096 insertions(+), 296 deletions(-)",
    "diff": "diff --git a/test_plans/vhost_cbdma_test_plan.rst b/test_plans/vhost_cbdma_test_plan.rst\nindex c8f8b8c5..cae3d9ae 100644\n--- a/test_plans/vhost_cbdma_test_plan.rst\n+++ b/test_plans/vhost_cbdma_test_plan.rst\n@@ -1,404 +1,1204 @@\n-.. Copyright (c) <2021>, Intel Corporation\n-    All rights reserved.\n-\n-    Redistribution and use in source and binary forms, with or without\n-    modification, are permitted provided that the following conditions\n-    are met:\n-\n-    - Redistributions of source code must retain the above copyright\n- notice, this list of conditions and the following disclaimer.\n-\n-    - Redistributions in binary form must reproduce the above copyright\n- notice, this list of conditions and the following disclaimer in\n- the documentation and/or other materials provided with the\n- distribution.\n-\n-    - Neither the name of Intel Corporation nor the names of its\n- contributors may be used to endorse or promote products derived\n- from this software without specific prior written permission.\n-\n-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n-    \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n-    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n-    FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n-    COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n-    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n-    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n-    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n-    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n-    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n-    OF THE POSSIBILITY OF SUCH DAMAGE.\n+.. Copyright (c) <2022>, Intel Corporation\n+   All rights reserved.\n+\n+   Redistribution and use in source and binary forms, with or without\n+   modification, are permitted provided that the following conditions\n+   are met:\n+\n+   - Redistributions of source code must retain the above copyright\n+     notice, this list of conditions and the following disclaimer.\n+\n+   - Redistributions in binary form must reproduce the above copyright\n+     notice, this list of conditions and the following disclaimer in\n+     the documentation and/or other materials provided with the\n+     distribution.\n+\n+   - Neither the name of Intel Corporation nor the names of its\n+     contributors may be used to endorse or promote products derived\n+     from this software without specific prior written permission.\n+\n+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n+   OF THE POSSIBILITY OF SUCH DAMAGE.\n \n ==========================================================\n DMA-accelerated Tx operations for vhost-user PMD test plan\n ==========================================================\n \n-Overview\n+Description\n+===========\n+\n+Vhost asynchronous data path leverages DMA devices to offload memory\n+copies from the CPU and it is implemented in an asynchronous way. It\n+enables applications, like OVS, to save CPU cycles and hide memory copy\n+overhead, thus achieving higher throughput.\n+\n+Vhost doesn't manage DMA devices and applications, like OVS, need to\n+manage and configure DMA devices. Applications need to tell vhost what\n+DMA devices to use in every data path function call. This design enables\n+the flexibility for applications to dynamically use DMA channels in\n+different function modules, not limited in vhost.\n+\n+In addition, vhost supports M:N mapping between vrings and DMA virtual\n+channels. Specifically, one vring can use multiple different DMA channels\n+and one DMA channel can be shared by multiple vrings at the same time.\n+The reason of enabling one vring to use multiple DMA channels is that\n+it's possible that more than one dataplane threads enqueue packets to\n+the same vring with their own DMA virtual channels. Besides, the number\n+of DMA devices is limited. For the purpose of scaling, it's necessary to\n+support sharing DMA channels among vrings.\n+\n+DPDK 21.11 adds vfio support for DMA device in vhost. When DMA devices\n+are bound to vfio driver, VA mode is the default and recommended.\n+For PA mode, page by page mapping may exceed IOMMU's max capability,\n+better to use 1G guest hugepage.\n+\n+For more about dpdk-testpmd sample, please refer to the DPDK docments:\n+https://doc.dpdk.org/guides/testpmd_app_ug/run_app.html\n+\n+For virtio-user vdev parameter, you can refer to the DPDK docments:\n+https://doc.dpdk.org/guides/nics/virtio.html#virtio-paths-selection-and-usage.\n+\n+Prerequisites\n+=============\n+\n+Topology\n+--------\n+      Test flow: TG-->NIC-->Vhost-->Virtio-->Vhost-->NIC-->TG\n+\n+Hardware\n --------\n+      Supportted NICs: ALL\n+\n+Software\n+--------\n+      Trex:http://trex-tgn.cisco.com/trex/release/v2.26.tar.gz\n+\n+General set up\n+--------------\n+1. Compile DPDK::\n+\n+      # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=<dpdk build dir>\n+      # ninja -C <dpdk build dir> -j 110\n+\n+2. Get the PCI device ID and DMA device ID of DUT, for example, 0000:18:00.0 is PCI device ID, 0000:00:04.0, 0000:00:04.1 is DMA device ID::\n+\n+      <dpdk dir># ./usertools/dpdk-devbind.py -s\n+\n+      Network devices using kernel driver\n+      ===================================\n+      0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci\n+\n+      DMA devices using kernel driver\n+      ===============================\n+      0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci\n+      0000:00:04.1 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci\n+\n+Test case\n+=========\n+\n+Common steps\n+------------\n+1. Bind 1 NIC port and CBDMA channels to vfio-pci::\n+\n+      <dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port pci device id>\n+      <dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port DMA device id>\n+\n+      For example, Bind 1 NIC port and 2 CBDMA channels::\n+      ./usertools/dpdk-devbind.py -b vfio-pci 0000:00:18.0\n+      ./usertools/dpdk-devbind.py -b vfio-pci 0000:00:04.0,0000:00:04.1\n+\n+2. Inject imix packets to NIC by traffic generator::\n+\n+      The packet size include [64, 128, 256, 512, 1024, 1518], and the format of packet is as follows.\n+      +-------------+-------------+-------------+-------------+\n+      | MAC         | MAC         | IPV4        | IPV4        |\n+      | Src address | Dst address | Src address | Dst address |\n+      |-------------|-------------|-------------|-------------|\n+      | Any MAC     | Virtio mac  | Any IP      | Any IP      |\n+      +-------------+-------------+-------------+-------------+\n+      All the packets in this test plan use the Virtio mac:00:11:22:33:44:10.\n+\n+Test Case 1: PVP split ring all path vhost enqueue operations with 1 to 1 mapping between vrings and CBDMA virtual channels\n+---------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of split ring all path vhost enqueue\n+operations with 1 to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 1 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+      --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+      --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+      --lcore-dma=[lcore11@0000:00:04.0]\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+      --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1 \\\n+      -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+      testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+      testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+      testpmd>start\n+      testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+      --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1 \\\n+      -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+      --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1 \\\n+      -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+      --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1 \\\n+      -- -i --enable-hw-vlan-strip --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+      --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=1 \\\n+      -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+11. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+      <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0\n+      --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+      --iova=pa -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+      --lcore-dma=[lcore11@0000:00:04.0]\n+      testpmd>set fwd mac\n+      testpmd>start\n+\n+12. Rerun steps 3-11.\n+\n+Test Case 2: PVP split ring all path multi-queues vhost enqueue operations with 1 to 1 mapping between vrings and CBDMA virtual channels\n+----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of split ring all path multi-queues vhost enqueue\n+operations with 1 to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3,lcore15@0000:00:04.4,lcore16@0000:00:04.5,lcore17@0000:00:04.6,lcore18@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8 \\\n+       -- -i --enable-hw-vlan-strip --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3,lcore15@0000:00:04.4,lcore16@0000:00:04.5,lcore17@0000:00:04.6,lcore18@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Rerun step 7.\n+\n+Test Case 3: PVP split ring all path multi-queues vhost enqueue operations with M to 1 mapping between vrings and CBDMA virtual channels\n+----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of split ring all path multi-queues vhost enqueue\n+operations with M to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8 \\\n+       -- -i --enable-hw-vlan-strip --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Quit all testpmd and relaunch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=3 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Rerun steps 4-6.\n+\n+13. Quit all testpmd and relaunch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0,lcore14@0000:00:04.0,lcore15@0000:00:04.0,lcore16@0000:00:04.0,lcore17@0000:00:04.0,lcore18@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+14. Rerun steps 7.\n+\n+15. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0,lcore14@0000:00:04.0,lcore15@0000:00:04.0,lcore16@0000:00:04.0,lcore17@0000:00:04.0,lcore18@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+16. Rerun steps 7.\n+\n+Test Case 4: PVP split ring all path vhost enqueue operations with 1 to N mapping between vrings and CBDMA virtual channels\n+---------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of split ring all path vhost enqueue\n+operations with 1 to N mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1 \\\n+       -- -i --enable-hw-vlan-strip --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Rerun steps 9.\n+\n+Test Case 5: PVP split ring all path multi-queues vhost enqueue operations with M to N mapping between vrings and CBDMA virtual channels\n+----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of split ring all path multi-queues vhost enqueue\n+operations with M to N mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8 \\\n+       -- -i --enable-hw-vlan-strip --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Quit all testpmd and relaunch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Rerun steps 8.\n+\n+13. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+14. Rerun steps 10.\n+\n+Test Case 6: PVP split ring dynamic queue number vhost enqueue operations with M to N mapping between vrings and CBDMA virtual channels\n+---------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance if the vhost-user can work well when split ring vhost enqueue\n+operations with M to N mapping between vrings and CBDMA virtual channels and the queue number dynamic change.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,client=1' \\\n+       --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8,server=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s).\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Quit and relaunch vhost with 1:1 mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=4,client=1,dmas=[txq0;txq1;txq2;txq3]' \\\n+       --iova=va -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Quit and relaunch vhost with M:N(1:N;M<N) mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18  --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq6;txq7]' \\\n+       --iova=va -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.7,lcore12@0000:00:04.1,lcore12@0000:00:04.2,lcore12@0000:00:04.3,lcore13@0000:00:04.2,lcore13@0000:00:04.3,lcore13@0000:00:04.4,lcore14@0000:00:04.2,lcore14@0000:00:04.3,lcore14@0000:00:04.4,lcore14@0000:00:04.5,lcore15@0000:00:04.0,lcore15@0000:00:04.1,lcore15@0000:00:04.2,lcore15@0000:00:04.3,lcore15@0000:00:04.4,lcore15@0000:00:04.5,lcore15@0000:00:04.6,lcore15@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Quit and relaunch vhost with diff M:N(M:1;M>N) mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6]' \\\n+       --iova=va -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.1,lcore14@0000:00:04.2,lcore15@0000:00:04.1,lcore15@0000:00:04.2]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Quit and relaunch vhost with iova=pa by below command, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7]' \\\n+       --iova=pa -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.1,lcore14@0000:00:04.2,lcore15@0000:00:04.1,lcore15@0000:00:04.2]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+Test Case 7: PVP packed ring all path vhost enqueue operations with 1 to 1 mapping between vrings and CBDMA virtual channels\n+----------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of packed ring all path vhost enqueue\n+operations with 1 to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost  -a 0000:18:00.0 -a 0000:00:04.0\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=1,queue_size=1025 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1025 --rxd=1025\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Rerun steps 3-6.\n+\n+Test Case 8: PVP packed ring all path multi-queues vhost enqueue operations with 1 to 1 mapping between vrings and CBDMA virtual channels\n+-----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of packed ring all path multi-queues vhost enqueue\n+operations with 1 to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3,lcore15@0000:00:04.4,lcore16@0000:00:04.5,lcore17@0000:00:04.6,lcore18@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+3. Launch virtio-user with inorder mergeable path::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n+\n+       testpmd>show port stats all\n+\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n+\n+       testpmd>stop\n+\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n+\n+       testpmd>start\n+       testpmd>show port stats all\n+\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+11. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 4-6::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8,queue_size=1025 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1025 --rxd=1025\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+12. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3,lcore15@0000:00:04.4,lcore16@0000:00:04.5,lcore17@0000:00:04.6,lcore18@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n+\n+13. Rerun step 7.\n+\n+Test Case 9: PVP packed ring all path multi-queues vhost enqueue operations with M to 1 mapping between vrings and CBDMA virtual channels\n+-----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of packed ring all path multi-queues vhost enqueue\n+operations with M to 1 mapping between vrings and CBDMA virtual channels.\n+\n+1. Bind 1 NIC port and 1 CBDMA channel to vfio-pci, as common step 1.\n+\n+2. Launch vhost by below command::\n+\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-This feature supports to offload large data movement in vhost enqueue operations\n-from the CPU to the I/OAT(a DMA engine in Intel's processor) device for every queue.\n-In addition, a queue can only use one I/OAT device, and I/OAT devices cannot be shared\n-among vhost ports and queues. That is, an I/OAT device can only be used by one queue at\n-a time. DMA devices(e.g.,CBDMA) used by queues are assigned by users; for a queue without\n-assigning a DMA device, the PMD will leverages librte_vhost to perform vhost enqueue\n-operations. Moreover, users cannot enable I/OAT acceleration for live-migration. Large\n-copies are offloaded from the CPU to the DMA engine in an asynchronous manner. The CPU\n-just submits copy jobs to the DMA engine and without waiting for DMA copy completion;\n-there is no CPU intervention during DMA data transfer. By overlapping CPU\n-computation and DMA copy, we can save precious CPU cycles and improve the overall\n-throughput for vhost-user PMD based applications, like OVS. Due to startup overheads\n-associated with DMA engines, small copies are performed by the CPU.\n-DPDK 21.11 adds vfio support for DMA device in vhost. When DMA devices are bound to\n-vfio driver, VA mode is the default and recommended. For PA mode, page by page mapping\n-may exceed IOMMU's max capability, better to use 1G guest hugepage.\n-\n-We introduce a new vdev parameter to enable DMA acceleration for Tx operations of queues:\n-- dmas: This parameter is used to specify the assigned DMA device of a queue.\n+3. Launch virtio-user with inorder mergeable path::\n \n-Here is an example:\n-./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 \\\n---vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@0000:00:04.0] \\\n---iova=va -- -i'\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-Test Case 1: PVP split ring all path vhost enqueue operations with cbdma\n-========================================================================\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n \n-Packet pipeline:\n-================\n-TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n+       testpmd>show port stats all\n \n-1. Bind 1 CBDMA port and 1 NIC port to vfio-pci, then launch vhost by below command::\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@0000:00:04.0]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       testpmd>stop\n \n-2. Launch virtio-user with inorder mergeable path::\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       testpmd>start\n+       testpmd>show port stats all\n \n-3. Send imix packets [64,1518] from packet generator, check the throughput can get expected data, restart vhost port and send imix pkts again, check get same throuhput::\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n \n-    testpmd>show port stats all\n-    testpmd>stop\n-    testpmd>start\n-    testpmd>show port stats all\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-4. Relaunch virtio-user with mergeable path, then repeat step 3::\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-5. Relaunch virtio-user with inorder non-mergeable path, then repeat step 3::\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-6. Relaunch virtio-user with non-mergeable path, then repeat step 3::\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1 \\\n-    -- -i --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-7. Relaunch virtio-user with vector_rx path, then repeat step 3::\n+11. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,vectorized=1,queues=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8,queue_size=1025 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1025 --rxd=1025\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-8. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+12. Quit all testpmd and relaunch vhost by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@0000:00:04.0]' \\\n-    --iova=pa -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=3 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-9. Rerun steps 2-7.\n+13. Rerun steps 3-6.\n \n-Test Case 2: PVP split ring dynamic queue number vhost enqueue operations with cbdma\n-=====================================================================================\n+14. Quit all testpmd and relaunch vhost by below command::\n \n-1. Bind 8 CBDMA ports and 1 NIC port to vfio-pci, then launch vhost by below command::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0,lcore14@0000:00:04.0,lcore15@0000:00:04.0,lcore16@0000:00:04.0,lcore17@0000:00:04.0,lcore18@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+15. Rerun steps 7.\n \n-2. Launch virtio-user by below command::\n+16. Quit all testpmd and relaunch vhost with iova=pa by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8,server=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 -a 0000:00:04.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=8 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.0,lcore14@0000:00:04.0,lcore15@0000:00:04.0,lcore16@0000:00:04.0,lcore17@0000:00:04.0,lcore18@0000:00:04.0]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-3. Send imix packets[64,1518] from packet generator with random ip, check perforamnce can get target.\n+17. Rerun steps 8.\n \n-4. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+Test Case 10: PVP packed ring all path vhost enqueue operations with 1 to N mapping between vrings and CBDMA virtual channels\n+-----------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of packed ring all path vhost enqueue\n+operations with 1 to N mapping between vrings and CBDMA virtual channels.\n \n-5. Quit and relaunch vhost with 4 queues w/ cbdma and 4 queues w/o cbdma::\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.1;txq2@0000:00:04.2;txq3@0000:00:04.3]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+2. Launch vhost by below command::\n \n-6. Send imix packets[64,1518] from packet generator with random ip, check perforamnce can get target.\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-7. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+3. Launch virtio-user with inorder mergeable path::\n \n-8. Quit and relaunch vhost with 8 queues w/ cbdma::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.1;txq2@0000:00:04.2;txq3@0000:00:04.3;txq4@0000:00:04.4;txq5@0000:00:04.5;txq6@0000:00:04.6;txq7@0000:00:04.7]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n \n-9. Send imix packets[64,1518] from packet generator with random ip, check perforamnce can get target.\n+       testpmd>show port stats all\n \n-10. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n \n-11. Quit and relaunch vhost with iova=pa, 6 queues w/ cbdma and 2 queues w/o cbdma::\n+       testpmd>stop\n \n-\t./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-\t--vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.1;txq2@0000:00:04.2;txq3@0000:00:04.3;txq4@0000:00:04.4;txq5@0000:00:04.5]' \\\n-\t--iova=pa -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-\t>set fwd mac\n-\t>start\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n \n-12. Send imix packets[64,1518] from packet generator with random ip, check perforamnce can get target.\n+       testpmd>start\n+       testpmd>show port stats all\n \n-13. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n \n-Test Case 3: PVP packed ring all path vhost enqueue operations with cbdma\n-=========================================================================\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-Packet pipeline:\n-================\n-TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n \n-1. Bind 1 CBDMA port and 1 NIC port to vfio-pci, then launch vhost by below command::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@0000:80:04.0]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n \n-2. Launch virtio-user with inorder mergeable path::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1,packed_vq=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n \n-3. Send imix packets [64,1518] from packet generator, check the throughput can get expected data, restart vhost port and send imix pkts again, check get same throuhput::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queues=1 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    testpmd>show port stats all\n-    testpmd>stop\n-    testpmd>start\n-    testpmd>show port stats all\n+11. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 3::\n \n-4. Relaunch virtio-user with mergeable path, then repeat step 3::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queues=1,queue_size=1025 \\\n+       -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1025 --rxd=1025\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1,packed_vq=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+12. Quit all testpmd and relaunch vhost with iova=pa by below command::\n \n-5. Relaunch virtio-user with inorder non-mergeable path, then repeat step 3::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1,packed_vq=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+13. Rerun steps 9.\n \n-6. Relaunch virtio-user with non-mergeable path, then repeat step 3::\n+Test Case 11: PVP packed ring all path multi-queues vhost enqueue operations with M to N mapping between vrings and CBDMA virtual channels\n+------------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance of packed ring all path multi-queues vhost enqueue\n+operations with M to N mapping between vrings and CBDMA virtual channels.\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1,packed_vq=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n \n-7. Relaunch virtio-user with vectorized path, then repeat step 3::\n+2. Launch vhost by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queues=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-8. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 3::\n+3. Launch virtio-user with inorder mergeable path::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queues=1,queue_size=1025 \\\n-    -- -i --nb-cores=1 --txd=1025 --rxd=1025\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-9. Quit all testpmd and relaunch vhost with iova=pa by below command::\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@0000:80:04.0]' \\\n-    --iova=pa -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-    >set fwd mac\n-    >start\n+       testpmd>show port stats all\n \n-10. Rerun steps 2-8.\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s)::\n \n-Test Case 4: PVP packed ring dynamic queue number vhost enqueue operations with cbdma\n-=====================================================================================\n+       testpmd>stop\n \n-1. Bind 8 CBDMA ports and 1 NIC port to vfio-pci, then launch vhost by below command::\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+       testpmd>start\n+       testpmd>show port stats all\n \n-2. Launch virtio-user by below command::\n+7. Relaunch virtio-user with mergeable path, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8,server=1,packed_vq=1 \\\n-    -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-3. Send imix packets from packet generator with random ip, check perforamnce can get target.\n+8. Relaunch virtio-user with inorder non-mergeable path, then repeat step 4-6::\n \n-4. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-5. Quit and relaunch vhost with 4 queues w/ cbdma and 4 queues w/o cbdma::\n+9. Relaunch virtio-user with non-mergeable path, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:80:04.0;txq1@0000:80:04.1;txq2@0000:80:04.2;txq3@0000:80:04.3]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=8,packed_vq=1 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-6. Send imix packets from packet generator with random ip, check perforamnce can get target.\n+10. Relaunch virtio-user with vectorized path, then repeat step 4-6::\n \n-7. Stop vhost port, check vhost RX and TX direction both exist packtes in 4 queues from vhost log.\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8, \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-8. Quit and relaunch vhost with 8 queues w/ cbdma::\n+11. Relaunch virtio-user with vectorized path and ring size is not power of 2, then repeat step 4-6::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-    --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:80:04.0;txq1@0000:80:04.1;txq2@0000:80:04.2;txq3@0000:80:04.3;txq4@0000:80:04.4;txq5@0000:80:04.5;txq6@0000:80:04.6;txq7@0000:80:04.7]' \\\n-    --iova=va -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-    >set fwd mac\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,packed_vq=1,vectorized=1,queues=8,queue_size=1025 \\\n+       -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1025 --rxd=1025\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-9. Send imix packets from packet generator with random ip, check perforamnce can get target.\n+12. Quit all testpmd and relaunch vhost by below command::\n \n-10. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=va -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-11. Quit and relaunch vhost with iova=pa, 6 queues w/ cbdma and 2 queues w/o cbdma::\n+13. Rerun steps 7.\n \n-\t./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29 --file-prefix=vhost \\\n-\t--vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0@0000:80:04.0;txq1@0000:80:04.1;txq2@0000:80:04.2;txq3@0000:80:04.3;txq4@0000:80:04.4;txq5@0000:80:04.5]' \\\n-\t--iova=pa -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=8 --rxq=8\n-\t>set fwd mac\n-\t>start\n+14. Quit all testpmd and relaunch vhost with iova=pa by below command::\n \n-12. Send imix packets from packet generator with random ip, check perforamnce can get target.\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7],dma_ring_size=2048' \\\n+       --iova=pa -- -i --nb-cores=1 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.1,lcore11@0000:00:04.2,lcore11@0000:00:04.3,lcore11@0000:00:04.4,lcore11@0000:00:04.5,lcore11@0000:00:04.6,lcore11@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-13. Stop vhost port, check vhost RX and TX direction both exist packtes in 8 queues from vhost log.\n+15. Rerun steps 9.\n \n-Test Case 5: loopback split ring large chain packets stress test with cbdma enqueue\n-====================================================================================\n+Test Case 12: PVP packed ring dynamic queue number vhost enqueue operations with M to N mapping between vrings and CBDMA virtual channels\n+-----------------------------------------------------------------------------------------------------------------------------------------\n+This case uses testpmd and Traffic Generator(For example, Trex) to test performance if the vhost-user can work well when packed ring vhost enqueue\n+operations with M to N mapping between vrings and CBDMA virtual channels and the queue number dynamic change.\n \n-Packet pipeline:\n-================\n-Vhost <--> Virtio\n+1. Bind 1 NIC port and 8 CBDMA channel to vfio-pci, as common step 1.\n \n-1. Bind 1 CBDMA channel to vfio-pci and launch vhost::\n+2. Launch vhost by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 -n 4 \\\n-    --vdev 'eth_vhost0,iface=vhost-net0,queues=1,dmas=[txq0@0000:00:04.0]' \\\n-    --iova=va -- -i --nb-cores=1 --mbuf-size=65535\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost -a 0000:18:00.0 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=1,client=1' \\\n+        --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-2. Launch virtio and start testpmd::\n+3. Launch virtio-user by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4  --file-prefix=testpmd0 --no-pci  \\\n-    --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1, \\\n-    mrg_rxbuf=1,in_order=0,vectorized=1,queue_size=2048 \\\n-    -- -i --rxq=1 --txq=1 --txd=2048 --rxd=2048 --nb-cores=1\n-    >start\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 2-3 --no-pci --file-prefix=virtio \\\n+       --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1,server=1,packed_vq=1 \\\n+       -- -i  --nb-cores=1 --txq=1 --rxq=1 --txd=1024 --rxd=1024\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-3. Send large packets from vhost, check virtio can receive packets::\n+4. Send imix packets [64,1518] from packet generator as common step2, and check the throughput can get expected data::\n \n-    testpmd> vhost enable tx all\n-    testpmd> set txpkts 65535,65535,65535,65535,65535\n-    testpmd> start tx_first 32\n-    testpmd> show port stats all\n+       testpmd>show port stats all\n \n-4. Quit all testpmd and relaunch vhost with iova=pa::\n+5. Stop vhost port, check whether there are packets in both directions of vhost RX and TX in all queue(s).\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 -n 4 \\\n-    --vdev 'eth_vhost0,iface=vhost-net0,queues=1,dmas=[txq0@0000:00:04.0]' \\\n-    --iova=pa -- -i --nb-cores=1 --mbuf-size=65535\n+       testpmd>stop\n \n-5. Rerun steps 2-3.\n+6. Restart vhost port and send imix pkts again, check get same throuhput can get expected data::\n \n-Test Case 6: loopback packed ring large chain packets stress test with cbdma enqueue\n-====================================================================================\n+       testpmd>start\n+       testpmd>show port stats all\n \n-Packet pipeline:\n-================\n-Vhost <--> Virtio\n+7. Quit and relaunch vhost with 1:1 mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n \n-1. Bind 1 CBDMA channel to vfio-pci and launch vhost::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18  --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 \\\n+        --vdev 'net_vhost0,iface=/tmp/s0,queues=4,client=1,dmas=[txq0;txq1;txq2;txq3]' \\\n+       --iova=va -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.3]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 -n 4 \\\n-    --vdev 'eth_vhost0,iface=vhost-net0,queues=1,dmas=[txq0@0000:00:04.0]' \\\n-    --iova=va -- -i --nb-cores=1 --mbuf-size=65535\n+9. Quit and relaunch vhost with M:N(1:N;M<N) mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n \n-2. Launch virtio and start testpmd::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 -a 0000:00:04.3 -a 0000:00:04.4 -a 0000:00:04.5 -a 0000:00:04.6 -a 0000:00:04.7 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq6;txq7]' \\\n+       --iova=va -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore11@0000:00:04.7,lcore12@0000:00:04.1,lcore12@0000:00:04.2,lcore12@0000:00:04.3,lcore13@0000:00:04.2,lcore13@0000:00:04.3,lcore13@0000:00:04.4,lcore14@0000:00:04.2,lcore14@0000:00:04.3,lcore14@0000:00:04.4,lcore14@0000:00:04.5,lcore15@0000:00:04.0,lcore15@0000:00:04.1,lcore15@0000:00:04.2,lcore15@0000:00:04.3,lcore15@0000:00:04.4,lcore15@0000:00:04.5,lcore15@0000:00:04.6,lcore15@0000:00:04.7]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4  --file-prefix=testpmd0 --no-pci  \\\n-    --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=1, \\\n-    mrg_rxbuf=1,in_order=0,vectorized=1,packed_vq=1,queue_size=2048 \\\n-    -- -i --rxq=1 --txq=1 --txd=2048 --rxd=2048 --nb-cores=1\n-    >start\n+11. Quit and relaunch vhost with diff M:N(M:1;M>N) mapping between vrings and CBDMA virtual channels, then repeat step 4-6::\n \n-3. Send large packets from vhost, check virtio can receive packets::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6]' \\\n+       --iova=va -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.1,lcore14@0000:00:04.2,lcore15@0000:00:04.1,lcore15@0000:00:04.2]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    testpmd> vhost enable tx all\n-    testpmd> set txpkts 65535,65535,65535,65535,65535\n-    testpmd> start tx_first 32\n-    testpmd> show port stats all\n+13. Quit and relaunch vhost with iova=pa by below command::\n \n-4. Quit all testpmd and relaunch vhost with iova=pa::\n+       <dpdk dir># ./<dpdk build dir>/app/dpdk-testpmd -n 4 -l 10-18 --file-prefix=vhost \\\n+       -a 0000:18:00.0 -a 0000:00:04.0 -a 0000:00:04.1 -a 0000:00:04.2 \\\n+       --vdev 'net_vhost0,iface=/tmp/s0,queues=8,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7]' \\\n+       --iova=pa -- -i --nb-cores=5 --txq=8 --rxq=8 --txd=1024 --rxd=1024 \\\n+       --lcore-dma=[lcore11@0000:00:04.0,lcore12@0000:00:04.0,lcore13@0000:00:04.1,lcore13@0000:00:04.2,lcore14@0000:00:04.1,lcore14@0000:00:04.2,lcore15@0000:00:04.1,lcore15@0000:00:04.2]\n+       testpmd>set fwd mac\n+       testpmd>start\n \n-    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 -n 4 \\\n-    --vdev 'eth_vhost0,iface=vhost-net0,queues=1,dmas=[txq0@0000:00:04.0]' --iova=pa -- -i --nb-cores=1 --mbuf-size=65535\n+14. Rerun step 4-6.\n \n-5. Rerun steps 2-3.\n",
    "prefixes": [
        "V1",
        "1/3"
    ]
}