get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95204,
    "url": "https://patches.dpdk.org/api/patches/95204/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210702172635.839710-1-yinan.wang@intel.com/",
    "project": {
        "id": 3,
        "url": "https://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": "<20210702172635.839710-1-yinan.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210702172635.839710-1-yinan.wang@intel.com",
    "date": "2021-07-02T17:26:35",
    "name": "[v2] test_plans/vswitch_sample_cbdma: improve test coverage",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "28ba8cdb1b3e86ec2dc6e2da11799131a7d8c41b",
    "submitter": {
        "id": 1081,
        "url": "https://patches.dpdk.org/api/people/1081/?format=api",
        "name": "Wang, Yinan",
        "email": "yinan.wang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210702172635.839710-1-yinan.wang@intel.com/mbox/",
    "series": [
        {
            "id": 17591,
            "url": "https://patches.dpdk.org/api/series/17591/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=17591",
            "date": "2021-07-02T17:26:35",
            "name": "[v2] test_plans/vswitch_sample_cbdma: improve test coverage",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/17591/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/95204/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/95204/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 D676FA0A0C;\n\tFri,  2 Jul 2021 10:43:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D25C84136D;\n\tFri,  2 Jul 2021 10:43:00 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id D565B4136A\n for <dts@dpdk.org>; Fri,  2 Jul 2021 10:42:58 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Jul 2021 01:42:57 -0700",
            "from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39])\n by fmsmga002.fm.intel.com with ESMTP; 02 Jul 2021 01:42:56 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10032\"; a=\"294344090\"",
            "E=Sophos;i=\"5.83,316,1616482800\"; d=\"scan'208\";a=\"294344090\"",
            "E=Sophos;i=\"5.83,316,1616482800\"; d=\"scan'208\";a=\"493863566\""
        ],
        "X-ExtLoop1": "1",
        "From": "Yinan Wang <yinan.wang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Yinan Wang <yinan.wang@intel.com>",
        "Date": "Fri,  2 Jul 2021 13:26:35 -0400",
        "Message-Id": "<20210702172635.839710-1-yinan.wang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=y",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH v2] test_plans/vswitch_sample_cbdma: improve test\n coverage",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Yinan Wang <yinan.wang@intel.com>\n---\n test_plans/vswitch_sample_cbdma_test_plan.rst | 329 ++++++++++++------\n 1 file changed, 227 insertions(+), 102 deletions(-)",
    "diff": "diff --git a/test_plans/vswitch_sample_cbdma_test_plan.rst b/test_plans/vswitch_sample_cbdma_test_plan.rst\nindex 974c2ee2..8fcf0b0a 100644\n--- a/test_plans/vswitch_sample_cbdma_test_plan.rst\n+++ b/test_plans/vswitch_sample_cbdma_test_plan.rst\n@@ -1,3 +1,35 @@\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+\n ========================================================\n Vswitch sample test with vhost async data path test plan\n ========================================================\n@@ -6,17 +38,10 @@ Description\n ===========\n \n Vswitch sample can leverage IOAT to accelerate vhost async data-path from dpdk 20.11. This plan test\n-vhost DMA operation callbacks for CBDMAV PMD and vhost async data-path in vhost sample. Also compare\n-the performance between CPU copy, CBDMA copy and Sync copy. \n-CPU copy means vhost enqueue w/o cbdma channel; CBDMA copy needs vhost enqueue with cbdma channel\n-using parameter '-dmas'; Sync copy needs vhost enqueue with cbdma channel, but threshold ( can be\n-adjusted by change value of f.async_threshold in dpdk code) is larger than forwarding packet length.\n-\n-CBDMA performance indicator\n-===========================\n-\n-(1)CPU copy vs. sync copy delta < 10% for 64B packet size\n-(2)CBDMA copy vs sync copy delta > 5% for 1518 packet size\n+vhost DMA operation callbacks for CBDMA PMD and vhost async data-path in vhost sample.\n+From 20.11 to 21.02, only split ring support cbdma copy with vhost enqueue direction;\n+from 21.05,packed ring also can support cbdma copy with vhost enqueue direction;\n+from 21.08, split ring support cbdma copy both vhost enqueue and dequeue direction.\n \n Prerequisites\n =============\n@@ -38,175 +63,152 @@ Modify the testpmd code as following::\n Test Case1: PVP performance check with CBDMA channel using vhost async driver\n =============================================================================\n \n-1. Adjust dpdk code as below::\n-\n-\t--- a/examples/vhost/main.c\n-\t+++ b/examples/vhost/main.c\n-\t@@ -1343,7 +1343,7 @@ new_device(int vid)\n-\n-        if (async_vhost_driver) {\n-                \tf.async_inorder = 1;\n-\t-               f.async_threshold = 256;\n-\t+               f.async_threshold = 1518;\n-                \treturn rte_vhost_async_channel_register(vid, VIRTIO_RXQ,\n-                        \tf.intval, &channel_ops);\n-        }\n-\n-2. Bind physical port to vfio-pci and CBDMA channel to igb_uio.\n+1. Bind physical port to vfio-pci and CBDMA channel to igb_uio.\n \n-3. On host, launch dpdk-vhost by below command::\n+2. On host, launch dpdk-vhost by below command::\n \n \t./dpdk-vhost -c 0x1c000000 -n 4 -- \\\n-\t-p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@00:04.0]\n+\t-p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --client\n \n-4. Launch virtio-user with testpmd::\n+3. Launch virtio-user with packed ring::\n \n \t./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \\\n-\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,server=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \n-5. Start pkts from virtio-user side to let vswitch know the mac addr::\n+4. Start pkts from virtio-user side to let vswitch know the mac addr::\n \n-\ttestpmd>set fwd mac #if use io fwd ,ixia can't receive packets\n+\ttestpmd>set fwd mac\n \ttestpmd>start tx_first\n-\ttestpmd>stop\n-\ttestpmd>start #start to forward\n-\n-6. Inject different length pkts (packets length=64,512,1024,1518) seperately with VLAN_id=1000 and dest_mac=virtio_mac_addresss ( specific in above cmd with 00:11:22:33:44:10) to NIC using packet generator, record performance number.\n-\n-7. Adjust vswitch code as below, re-test step 3-6 and record perfromance of different packet length::\n-\n-\t--- a/examples/vhost/main.c\n-\t+++ b/examples/vhost/main.c\n-\t@@ -1343,7 +1343,7 @@ new_device(int vid)\n-\n-        if (async_vhost_driver) {\n-                \tf.async_inorder = 1;\n-\t-               f.async_threshold = 256;\n-\t+               f.async_threshold = 0;\n-                \treturn rte_vhost_async_channel_register(vid, VIRTIO_RXQ,\n-                        \tf.intval, &channel_ops);\n-        }\n \n-8. Re-test step 3-6 except to launch dpdk-vhost by below command, record perfromance of different packet length::\n+5. Inject pkts (packets length=64...1518) separately with VLAN_id=1000 and dest_mac=virtio_mac_addresss (specific in above cmd with 00:11:22:33:44:10) to NIC using packet generator, record pvp (PG>nic>vswitch>virtio-user>vswitch>nic>PG) performance number can get expected.\n \n-\t./dpdk-vhost -c 0x1c000000 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net\n+6. Quit and re-launch virtio-user with split ring::\n \n-9. Compare performance, check below two performance indicator::\n+\t./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,mrg_rxbuf=1,in_order=1,vectorized=1,server=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \n-\t(1)CPU copy vs. sync copy delta < 10% for 64B packet size\n-\t(2)CBDMA copy vs sync copy delta > 5% for 1518 packet size\n+7. Re-test step 4-5, record performance of different packet length.\n \n-Test Case2: PV test with multiple CBDMA channels using vhost async driver\n-==========================================================================\n+Test Case2: PVP test with two VM and two CBDMA channels using vhost async driver\n+=================================================================================\n \n 1. Bind one physical ports to vfio-pci and two CBDMA channels to igb_uio.\n \n 2. On host, launch dpdk-vhost by below command::\n \n \t./dpdk-vhost -l 26-28 -n 4 -- \\\n-\t-p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@00:04.0,txd1@00:04.1] --client\n+\t-p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1] --client\n \n 3. launch two virtio-user ports::\n \n \t./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \\\n-\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \t\n \t./dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=0,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \n 4. Start pkts from two virtio-user side individually to let vswitch know the mac addr::\n \n-\ttestpmd0>start tx_first\n+\ttestpmd0>set fwd mac\n+\ttestpmd1>set fwd mac\n+\ttestpmd1>start tx_first\n \ttestpmd1>start tx_first\n \n-5. Inject 1518B packets with VLAN_id=1000 and dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator,check two virtio-user ports can receive according packets.\n+5. Inject IMIX packets (64b...1518b) with VLAN_id=1000 and dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator,record performance number can get expected from Packet generator rx side.\n \n 6. Stop dpdk-vhost side and relaunch it with same cmd as step2.\n \n-7.Start pkts from two virtio-user side individually to let vswitch know the mac addr, check two virtio-user ports still can receive according packets and get same throughput as step5::\n+7. Start pkts from two virtio-user side individually to let vswitch know the mac addr::\n+\n+    testpmd0>stop\n+    testpmd0>start tx_first\n+    testpmd1>stop\n+    testpmd1>start tx_first\n \n-        testpmd0>stop\n-        testpmd0>start tx_first\n-        testpmd1>stop\n-        testpmd1>start tx_first\n+8. Inject IMIX packets (64b...1518b) to NIC using packet generator, ensure get same throughput as step5.\n \n-Test Case3: VM2VM performance test with two CBDMA channels using vhost async driver\n-====================================================================================\n+Test Case3: VM2VM forwarding test with two CBDMA channels\n+=========================================================\n \n 1.Bind one physical ports to vfio-pci and two CBDMA channels to igb_uio.\n \n 2. On host, launch dpdk-vhost by below command::\n \n-\t./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n-\t--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@00:04.0,txd1@00:04.1]\n+\t./x86_64-native-linuxapp-gcc/examples/dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n+\t--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1]  --client\n \n 3. Launch virtio-user::\n \n-\t./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \\\n-\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\t./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \n-\t./dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net0,queues=1,mrg_rxbuf=0,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\t./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n \n-4. Start pkts from two virtio-user sides, record performance number with txpkts=256 and 2000 from testpmd1 seperately::\n+4. Loop pkts between two virtio-user sides, record performance number with 64b/2000b/8000b/IMIX pkts can get expected::\n \n \ttestpmd0>set fwd mac\n \ttestpmd0>start tx_first\n \ttestpmd0>stop\n \ttestpmd0>set eth-peer 0 00:11:22:33:44:11\n \ttestpmd0>start\n-\n \ttestpmd1>set fwd mac\n \ttestpmd1>set eth-peer 0 00:11:22:33:44:10\n+\ttestpmd1>set txpkts 64\n+\ttestpmd1>start tx_first\n+\ttestpmd1>show port stats all\n+\ttestpmd1>stop\n \ttestpmd1>set txpkts 2000\n \ttestpmd1>start tx_first\n \ttestpmd1>show port stats all\n \ttestpmd1>stop\n-\ttestpmd1>set txpkts 256\n+\ttestpmd1>set txpkts 2000,2000,2000,2000\n+\ttestpmd1>start tx_first\n+\ttestpmd1>show port stats all\n+\ttestpmd1>stop\n+\ttestpmd1>set txpkts 64,256,2000,64,256,2000\n \ttestpmd1>start tx_first\n \ttestpmd1>show port stats all\n \n-5. Re-test step 2-4 except to launch dpdk-vhost by below command, record perfromance::\n-\n-\t./dpdk-vhost -l 27-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1\n+5. Stop dpdk-vhost side and relaunch it with same cmd as step2.\n \n-6. Compare perfromance number, when txpkts=2000, first test has better performance; while txpkts=256, the second test has better performance.\n+6. Rerun step 4.\n \n-Test Case4: VM2VM test with 2 vhost device using vhost async driver\n-=======================================================================\n+Test Case4: VM2VM test with cbdma channels register/unregister stable check\n+============================================================================\n \n 1. Bind one physical ports to vfio-pci and two CBDMA channels to igb_uio.\n \n 2. On host, launch dpdk-vhost by below command::\n \n-\t./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n-\t--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@00:04.0,txd1@00:04.1]\n+    ./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n+    --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1] --client\n \n-3. Start VM0::\n+3. Start VM0 with qemu-5.2.0::\n \n- \t/home/qemu-install/qemu-4.2.1/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+ \tqemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n         -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n         -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n         -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n         -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n         -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n         -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-        -chardev socket,id=char0,path=/tmp/vhost-net0 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n         -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on -vnc :10\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on -vnc :10\n \n-4. Start VM1::\n+4. Start VM1 with qemu-5.2.0::\n \n-\t/home/qemu-install/qemu-4.2.1/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+\tqemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n         -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n         -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n         -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n         -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n         -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-        -netdev user,id=nttsip1,hostfwd=tcp:10.67.119.61:6003-:22 \\\n-        -chardev socket,id=char0,path=/tmp/vhost-net1 \\\n+        -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n         -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:02,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on -vnc :12\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:02,disable-modern=true,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on -vnc :12\n \n 5. Bind virtio port to vfio-pci in both two VMs::\n \n@@ -219,30 +221,153 @@ Test Case4: VM2VM test with 2 vhost device using vhost async driver\n \n \t./dpdk-testpmd -l 1-2 -n 4 -- -i --rxq=1 --txq=1 --nb-cores=1 --txd=1024 --rxd=1024\n \n-7. Start pkts from two virtio-pmd, record performance number with txpkts=256 and 2000 from testpmd1 seperately::\n+7. Loop pkts between two virtio-user sides, record performance number with 64b/2000b/8000b/IMIX pkts can get expected::\n \n \ttestpmd0>set fwd mac\n \ttestpmd0>start tx_first\n \ttestpmd0>stop\n \ttestpmd0>set eth-peer 0 52:54:00:00:00:02\n \ttestpmd0>start\n-\n \ttestpmd1>set fwd mac\n \ttestpmd1>set eth-peer 0 52:54:00:00:00:01\n+\ttestpmd1>set txpkts 64\n+\ttestpmd1>start tx_first\n+\ttestpmd1>show port stats all\n+\ttestpmd1>stop\n \ttestpmd1>set txpkts 2000\n \ttestpmd1>start tx_first\n \ttestpmd1>show port stats all\n \ttestpmd1>stop\n-\ttestpmd1>set txpkts 256\n+\ttestpmd1>set txpkts 2000,2000,2000,2000\n+\ttestpmd1>start tx_first\n+\ttestpmd1>show port stats all\n+\ttestpmd1>stop\n+\ttestpmd1>set txpkts 64,256,2000,64,256,2000\n \ttestpmd1>start tx_first\n \ttestpmd1>show port stats all\n \n-8. Inject traffic with VLAN_id=1000 and dest_mac=virtio_mac_addresss (52:54:00:00:00:02 and 52:54:00:00:00:02) to NIC using packet generator, check two virtio-pmd can receive according packets.\n-\n-9. Quit two testpmd in two VMs, bind virtio-pmd port to virtio-pci,then bind port back to vfio-pci, rerun below cmd 50 times::\n+8. Quit two testpmd in two VMs, bind virtio-pmd port to virtio-pci,then bind port back to vfio-pci, rerun below cmd 50 times::\n \n \t./usertools/dpdk-devbind.py -u 00:05.0\n \t./usertools/dpdk-devbind.py --bind=virtio-pci 00:05.0\n \t./usertools/dpdk-devbind.py --bind=vfio-pci 00:05.0\n \n-10. Rerun step 6-8,check vhost can stable work.\n+9. Restart vhost, then rerun step 7,check vhost can stable work and get expected throughput.\n+\n+Test Case5: VM2VM split ring test with iperf and reconnect stable check\n+=======================================================================\n+\n+1. Bind one physical ports to vfio-pci and two CBDMA channels to igb_uio.\n+\n+2. On host, launch dpdk-vhost by below command::\n+\n+\t./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n+\t--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1] --client\n+\n+3. Start VM0 with qemu-5.2.0::\n+\n+ \tqemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+        -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n+        -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n+        -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n+        -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n+        -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n+        -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n+        -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on -vnc :10\n+\n+4. Start VM1 with qemu-5.2.0::\n+\n+\tqemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+        -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n+        -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n+        -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n+        -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n+        -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n+        -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n+        -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:02,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on -vnc :12\n+\n+5. On VM1, set virtio device IP and run arp protocal::\n+\n+    ifconfig ens5 1.1.1.2\n+    arp -s 1.1.1.8 52:54:00:00:00:02\n+\n+6. On VM2, set virtio device IP and run arp protocal::\n+\n+    ifconfig ens5 1.1.1.8\n+    arp -s 1.1.1.2 52:54:00:00:00:01\n+\n+7. Check the iperf performance between two VMs by below commands::\n+\n+    Under VM1, run: `iperf -s -i 1`\n+    Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60`\n+\n+8. Check iperf throughput can get x Gbits/sec.\n+\n+9. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp::\n+\n+     Under VM1, run: `scp [xxx] root@1.1.1.8:/`   [xxx] is the file name\n+\n+10. Relaunch vhost-dpdk, then rerun step 7-9 five times.\n+\n+Test Case6: VM2VM packed ring test with iperf and reconnect stable test\n+=======================================================================\n+\n+1. Bind one physical ports to vfio-pci and two CBDMA channels to igb_uio.\n+\n+2. On host, launch dpdk-vhost by below command::\n+\n+\t./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \\\n+\t--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1]\n+\n+3. Start VM0 with qemu-5.2.0::\n+\n+ \tqemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+        -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n+        -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n+        -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n+        -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n+        -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n+        -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net0 \\\n+        -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on -vnc :10\n+\n+4. Start VM1 with qemu-5.2.0::\n+\n+\tqemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n+        -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n+        -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n+        -chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n+        -device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n+        -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n+        -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n+        -chardev socket,id=char0,path=/tmp/vhost-net1 \\\n+        -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n+        -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:02,disable-modern=true,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on -vnc :12\n+\n+5. On VM1, set virtio device IP and run arp protocal::\n+\n+    ifconfig ens5 1.1.1.2\n+    arp -s 1.1.1.8 52:54:00:00:00:02\n+\n+6. On VM2, set virtio device IP and run arp protocal::\n+\n+    ifconfig ens5 1.1.1.8\n+    arp -s 1.1.1.2 52:54:00:00:00:01\n+\n+7. Check the iperf performance between two VMs by below commands::\n+\n+    Under VM1, run: `iperf -s -i 1`\n+    Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60`\n+\n+8. Check iperf throughput can get x Gbits/sec.\n+\n+9. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp::\n+\n+     Under VM1, run: `scp [xxx] root@1.1.1.8:/`   [xxx] is the file name\n+\n+10. Rerun step 7-9 five times.\n\\ No newline at end of file\n",
    "prefixes": [
        "v2"
    ]
}