get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121438,
    "url": "http://patches.dpdk.org/api/patches/121438/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20221228085008.3622142-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": "<20221228085008.3622142-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20221228085008.3622142-1-weix.ling@intel.com",
    "date": "2022-12-28T08:50:08",
    "name": "[V1] test_plans/vswitch_sample_dsa: delete testplan",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6f95d89b8192e66b2495234ad30552b258ce7626",
    "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/20221228085008.3622142-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 26306,
            "url": "http://patches.dpdk.org/api/series/26306/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=26306",
            "date": "2022-12-28T08:50:08",
            "name": "[V1] test_plans/vswitch_sample_dsa: delete testplan",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26306/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121438/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/121438/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 2B201A04FD;\n\tWed, 28 Dec 2022 09:59:41 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0253B40FDF;\n\tWed, 28 Dec 2022 09:59:41 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 3882D40141\n for <dts@dpdk.org>; Wed, 28 Dec 2022 09:59:39 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Dec 2022 00:59:38 -0800",
            "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Dec 2022 00:59:35 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1672217979; x=1703753979;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=7HHAd1ChVmOXBfeKNGOQB08c3dAK+Nhwm9hk6Pn5IWM=;\n b=hK4dDvyuSvuotoOXSZw6i3KBzxxz++tSeaHlKsjqeNcnKG5gf4i7GY8O\n iDfXJbvResnM+EqgRa4lVJiZmLlxhXoHVhA+on84OyjBx/sP3LpBeXjGh\n Y7L4Ush6etsWH2z73N+jrLxkKA0sm83Vpuxs6bjE1pk0T0bsZHt5wHFjb\n AIyNBtSTMvTR3oOL4fRQON9NpFM4eyuQUcxN6Y3yf3WP2td/VWFDkUsKG\n 5MIP7ZZguo1zXrSg0lBxldANTm0RgeF3lcyn0n75GWdILDbWnOFZeeeaz\n KHs3pORRpDay7Uaoz4I3U8sJVZbxNLZ3RqkCLflfYZJ9urxEJLybS7LLg Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10573\"; a=\"407100597\"",
            "E=Sophos;i=\"5.96,280,1665471600\"; d=\"scan'208\";a=\"407100597\"",
            "E=McAfee;i=\"6500,9779,10573\"; a=\"898621348\"",
            "E=Sophos;i=\"5.96,280,1665471600\"; d=\"scan'208\";a=\"898621348\""
        ],
        "From": "Wei Ling <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Wei Ling <weix.ling@intel.com>",
        "Subject": "[dts][PATCH V1] test_plans/vswitch_sample_dsa: delete testplan",
        "Date": "Wed, 28 Dec 2022 16:50:08 +0800",
        "Message-Id": "<20221228085008.3622142-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "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 the SPR platform plugined NIC are all E810 series, and the E810\nseries NIC unsupport VMDQ, so used the testpmd to test the vhsot\naync data-path.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n test_plans/index.rst                        |   1 -\n test_plans/vswitch_sample_dsa_test_plan.rst | 866 --------------------\n 2 files changed, 867 deletions(-)\n delete mode 100644 test_plans/vswitch_sample_dsa_test_plan.rst",
    "diff": "diff --git a/test_plans/index.rst b/test_plans/index.rst\nindex 9ca954e2..2d749381 100644\n--- a/test_plans/index.rst\n+++ b/test_plans/index.rst\n@@ -232,7 +232,6 @@ The following are the test plans for the DPDK DTS automated test system.\n     dpdk_gso_lib_test_plan\n     vswitch_sample_cbdma_test_plan\n     vswitch_pvp_multi_paths_performance_with_cbdma_test_plan\n-    vswitch_sample_dsa_test_plan\n     vxlan_gpe_support_in_i40e_test_plan\n     pvp_diff_qemu_version_test_plan\n     pvp_share_lib_test_plan\ndiff --git a/test_plans/vswitch_sample_dsa_test_plan.rst b/test_plans/vswitch_sample_dsa_test_plan.rst\ndeleted file mode 100644\nindex 1641e051..00000000\n--- a/test_plans/vswitch_sample_dsa_test_plan.rst\n+++ /dev/null\n@@ -1,866 +0,0 @@\n-.. SPDX-License-Identifier: BSD-3-Clause\n-   Copyright(c) 2022 Intel Corporation\n-\n-====================================================================\n-Vswitch sample test vhost async operation with DSA driver test plan\n-====================================================================\n-\n-Vswitch sample can leverage DMA to accelerate vhost async data-path from dpdk 20.11. This plan test\n-vhost async operation with dsa driver (kernel IDXD driver and DPDK vfio-pci driver) in vhost sample.\n-For more about vswitch example, please refer to the DPDK docment:http://doc.dpdk.org/guides/sample_app_ug/vhost.html\n-\n-Note:\n-1.For packed virtqueue virtio-net test, need qemu version > 4.2.0 and VM kernel version > v5.1, and packed ring multi-queues not support reconnect in qemu yet.\n-2.For split virtqueue virtio-net with multi-queues server mode test, need qemu version >= 5.2.0, dut to old qemu exist reconnect issue when multi-queues test.\n-3.The suite has not yet been automated.\n-\n-Prerequisites\n-=============\n-\n-Software\n---------\n-Trex:http://trex-tgn.cisco.com/trex/release/v2.26.tar.gz\n-qemu: https://download.qemu.org/qemu-6.2.0.tar.xz\n-iperf\n-\n-General set up\n---------------\n-1. Compile DPDK and vhost example::\n-\n-\t# CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=<dpdk build dir>\n-\t# meson configure -Dexamples=vhost <dpdk build dir>\n-\t# ninja -C <dpdk build dir> -j 110\n-\tFor example,\n-\tCC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=x86_64-native-linuxapp-gcc\n-\tninja -C x86_64-native-linuxapp-gcc -j 110\n-\n-2. Get the PCI device ID and DSA device ID of DUT, for example, 0000:4f:00.1 is PCI device ID, 0000:6a:01.0 - 0000:f6:01.0 are DSA device IDs::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -s\n-\n-\tNetwork devices using kernel driver\n-\t===================================\n-\t0000:4f:00.1 'Ethernet Controller E810-C for QSFP 1592' drv=ice unused=vfio-pci\n-\n-\tDMA devices using kernel driver\n-\t===============================\n-\t0000:6a:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:6f:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:74:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:79:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:e7:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:ec:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:f1:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\t0000:f6:01.0 'Device 0b25' drv=idxd unused=vfio-pci\n-\n-Test case\n-=========\n-\n-Common steps\n-------------\n-1. Bind 1 NIC port to vfio-pci::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port pci device id>\n-\tFor example:\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 0000:00:4f.1\n-\n-2.Bind DSA devices to DPDK vfio-pci driver::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port DSA device id>\n-\tFor example, bind 2 DMA devices to vfio-pci driver:\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 0000:e7:01.0 0000:ec:01.0\n-\n-.. note::\n-\n-\tOne DPDK DSA device can create 8 WQ at most. Below is an example, where DPDK DSA device will create one and\n-\teight WQ for DSA deivce 0000:e7:01.0 and 0000:ec:01.0. The value of “max_queues” is 1~8:\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 4 -n 4 -a 0000:e7:01.0,max_queues=1 -- -i\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 4 -n 4 -a 0000:ec:01.0,max_queues=8 -- -i\n-\n-3. Bind DSA devices to kernel idxd driver, and configure Work Queue (WQ)::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd <numDevices * 2>\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q <numWq> <numDevices>\n-\n-.. note::\n-\n-\tBetter to reset WQ when need operate DSA devices that bound to idxd drvier:\n-\t<dpdk dir># ./drivers/dma/idxd/dpdk_idxd_cfg.py --reset <numDevices * 2>\n-\tYou can check it by 'ls /dev/dsa'\n-\tnumDevices: number of devices, where 0<=numDevices<=7, corresponding to 0000:6a:01.0 - 0000:f6:01.0\n-\tnumWq: Number of workqueues per DSA endpoint, where 1<=numWq<=8\n-\n-\tFor example, bind 2 DMA devices to idxd driver and configure WQ:\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0 6f:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 1 0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 4 2\n-\tCheck WQ by 'ls /dev/dsa' and can find \"wq0.0 wq2.0 wq2.1 wq2.2 wq2.3\"\n-\n-Test Case 1: PVP performance vhost async enqueue operation with dsa dpdk channel\n----------------------------------------------------------------------------------\n-This case uses vhost example to test performance of split and packed ring when vhost uses the asynchronous enqueue operations \n-with dsa dpdk driver in PVP topology environment.\n-\n-1. Bind one physical port(4f:00.1) and one dsa device(6a:01.0) to vfio-pci like common step 1-2.\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.0 -a 0000:6a:01.0,max_queues=1 -- \\\n-\t-p 0x1 --mergeable 1 --vm2vm 1  --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:6a:01.0-q0] --client\n-\n-3. Launch virtio-user with packed ring::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=virtio-user \\\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,packed_vq=1,server=1 \\\n-\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-4. Start pkts from virtio-user side to let vswitch know the mac addr::\n-\n-\ttestpmd>set fwd mac\n-\ttestpmd>start tx_first\n-\ttestpmd>stop\n-\ttestpmd>start\n-\n-5. Inject pkts (packets length=64...1518) separately with 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-6. Quit and re-launch virtio-user with packed ring size not power of 2::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,in_order=1,packed_vq=1,server=1,queue_size=1025 -- -i --rxq=1 --txq=1 --txd=1025 --rxd=1025 --nb-cores=1\n-\n-7. Re-test step 4-5, record performance of different packet length.\n-\n-8. Quit and re-launch virtio-user with split ring::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,in_order=1,server=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-9. Re-test step 4-5, record performance of different packet length.\n-\n-Test Case 2: PVP vhost async enqueue operation with two VM and 2 dsa channels\n-------------------------------------------------------------------------------\n-This case uses vhost example to test split and packed ring when vhost uses the asynchronous enqueue operations \n-with dsa dpdk driver in PVP topology environment with 2 VM and 2 queues.\n-\n-1. Bind one physical port and 2 dsa devices to vfio-pci like common step 1-2.\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:6a:01.0,max_queues=2 -a 0000:6f:01.0,max_queues=1 -- \\\n-\t-p 0x1 --mergeable 1 --vm2vm 1  --stats 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:6a:01.0-q1,txd1@0000:6f:01.0-q0] --client\n-\n-3. launch two virtio-user ports::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 7-8 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user1,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>set fwd mac\n-\ttestpmd0>start tx_first\n-\ttestpmd0>stop\n-\ttestpmd0>start\n-\ttestpmd1>set fwd mac\n-\ttestpmd1>start tx_first\n-\ttestpmd1>stop\n-\ttestpmd1>start\n-\n-5. Inject IMIX packets (64b...1518b) with 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::\n-\n-\ttestpmd0>stop\n-\ttestpmd0>start tx_first\n-\ttestpmd0>stop\n-\ttestpmd0>start\n-\ttestpmd1>stop\n-\ttestpmd1>start tx_first\n-\ttestpmd1>stop\n-\ttestpmd1>start\n-\n-8. Inject IMIX packets (64b...1518b) with dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator, ensure get same throughput as step5.\n-\n-Test Case 3: VM2VM virtio-user forwarding test with 2 dsa dpdk channels\n--------------------------------------------------------------------------\n-This case uses vhost example to test that split and packed ring can forwarding packets normally when vhost uses the\n-asynchronous enqueue operations with dsa dpdk driver in VM2VM virtio-user topology environment with 2 queues.\n-\n-1.Bind one physical ports and 1 dsa devices to vfio-pci like common step 1-2.\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:6a:01.0,max_queues=2 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@0000:6a:01.0-q0,txd1@0000:6a:01.0-q1]  --client\n-\n-3. Launch virtio-user::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 7-8 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user1,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. Loop packets 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-\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 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. Stop and quit dpdk-vhost side and relaunch it with same cmd as step2.\n-\n-6. Rerun step 4.\n-\n-Test Case 4: VM2VM virtio-pmd test with 2 dsa channels register/unregister stable check\n--------------------------------------------------------------------------------------------------\n-This case checks vhost can work stably after registering and unregistering the virtio port many times when vhost uses \n-the asynchronous enqueue operations with dsa dpdk driver in VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port and one dsa device to vfio-pci like common step 1-2::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1 \n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 6a:01.0\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 -a 0000:6a:01.0,max_queues=2 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@0000:6a:01.0-q0,txd1@0000:6a:01.0-q1] --client\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\tmodprobe vfio enable_unsafe_noiommu_mode=1\n-\tmodprobe vfio-pci\n-\techo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode\n-\t./usertools/dpdk-devbind.py --bind=vfio-pci 00:05.0\n-\n-6. Start testpmd in VMs seperately::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -- -i --rxq=1 --txq=1 --nb-cores=1 --txd=1024 --rxd=1024\n-\n-7. Loop packets 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-\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 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. 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-9. Restart vhost, then rerun step 6-7,check vhost can stable work and get expected throughput.\n-\n-Test Case 5: VM2VM split ring with 2 enqueue dsa dpdk channels test with iperf and reconnect stable check\n------------------------------------------------------------------------------------------------------------\n-This case checks vhost can work stably after reconnecting when vhost uses the asynchronous enqueue operations with\n-dsa dpdk driver in VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port and 1 dsa device to vfio-pci like common step 1-2::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1 \n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 6a:01.0\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 -a 0000:6a:01.0,max_queues=2  \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@0000:6a:01.0-q0,txd1@0000:6a:01.0-q1] --client\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /root/xingguang/qemu-6.2.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge1G0,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/root/xingguang/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /root/xingguang/qemu-6.2.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge1G1,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/root/xingguang/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\t<VM1># ifconfig ens5 1.1.1.2\n-\t<VM1># 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-\t<VM2># ifconfig ens5 1.1.1.8\n-\t<VM2># 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-\t<VM1># iperf -s -i 1\n-\t<VM2># 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 VM0 to VM1, check packets can be forwarding success by scp::\n-\n-\t<VM1># scp <file> root@1.1.1.8:/\n-\n-10. Relaunch dpdk-vhost, then rerun step 7-9 five times.\n-\n-11. Relaunch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 -a 0000:6a:01.0,max_queues=2 -a 0000:6f:01.0,max_queues=2 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@0000:6a:01.0-q0,txd1@0000:6f:01.0-q1] --client\n-\n-12. Rerun step 7-9 five times.\n-\n-Test Case 6: VM2VM packed ring with 2 dsa dpdk channels stable test with iperf\n--------------------------------------------------------------------------------\n-This case checks vhost can work stably  when vhost uses the asynchronous enqueue operations with dsa dpdk driver in\n-VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port and 1 dsa device to vfio-pci like common step 1-2::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 6a:01.0 \n-\n-2. Launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 26-28 -n 4 -a 0000:4f:00.1 -a 0000:6a:01.0,max_queues=2 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@0000:6a:01.0-q1,txd1@0000:6a:01.0-q0]\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0 \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1 \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\t<VM1># ifconfig ens5 1.1.1.2\n-\t<VM1># 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-\t<VM2># ifconfig ens5 1.1.1.8\n-\t<VM2># 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-\t<VM1># iperf -s -i 1\n-\t<VM2># 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-\t<VM1># scp <file> root@1.1.1.8:/\n-\n-10. Rerun step 7-9 five times.\n-\n-Test Case 7: PVP performance vhost async enqueue with dsa kernel channel\n--------------------------------------------------------------------------\n-This case uses vhost example to test performance of split and packed ring when vhost uses the asynchronous enqueue operations\n-with dsa kernel driver in PVP topology environment.\n-\n-1. Bind one physical port(4f:00.1) to vfio-pci and one dsa device(6a:01.0) to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\t\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\tls /dev/dsa #check wq configure success\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.0 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1  --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@wq0.0] --client\n-\n-3. Launch virtio-user with packed ring::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=virtio-user \\\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,packed_vq=1,server=1 \\\n-\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-4. Start pkts from virtio-user side to let vswitch know the mac addr::\n-\n-\ttestpmd>set fwd mac\n-\ttestpmd>start tx_first\n-\ttestpmd>stop\n-\ttestpmd>start\n-\n-5. Inject pkts (packets length=64...1518) separately with 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-6. Quit and re-launch virtio-user with packed ring size not power of 2::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,in_order=1,packed_vq=1,server=1,queue_size=1025 -- -i --rxq=1 --txq=1 --txd=1025 --rxd=1025 --nb-cores=1\n-\n-7. Re-test step 4-5, record performance of different packet length.\n-\n-8. Quit and re-launch virtio-user with split ring::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,in_order=1,server=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-9. Re-test step 4-5, record performance of different packet length.\n-\n-Test Case 8: PVP vhost async enqueue operation with two VM and 2 dsa kernel channels\n----------------------------------------------------------------------------------------\n-This case uses vhost example to test split and packed ring when vhost uses the asynchronous enqueue operations\n-with dsa kernel driver in PVP topology environment with 2 VM and 2 queues.\n-\n-1. Bind one physical port to vfio-pci and 1 dsa device to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\tls /dev/dsa #check wq configure success\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1  --stats 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq0.1] --client\n-\n-3. launch two virtio-user ports::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 7-8 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user1,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>set fwd mac\n-\ttestpmd0>start tx_first\n-\ttestpmd0>stop\n-\ttestpmd0>start\n-\ttestpmd1>set fwd mac\n-\ttestpmd1>start tx_first\n-\ttestpmd1>stop\n-\ttestpmd1>start\n-\n-5. Inject IMIX packets (64b...1518b) with 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::\n-\n-\ttestpmd0>stop\n-\ttestpmd0>start tx_first\n-\ttestpmd0>stop\n-\ttestpmd0>start\n-\ttestpmd1>stop\n-\ttestpmd1>start tx_first\n-\ttestpmd1>stop\n-\ttestpmd1>start\n-\n-8. Inject IMIX packets (64b...1518b) with dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator, ensure get same throughput as step5.\n-\n-Test Case 9: VM2VM virtio-user forwarding test with 2 dsa kernel channels\n----------------------------------------------------------------------------------\n-This case uses vhost example to test split and packed ring when vhost uses the asynchronous enqueue operations\n-with dsa kernel driver in VM2VM topology environment with 2 queues.\n-\n-1.Bind one physical port to vfio-pci and 2 dsa device to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0 6f:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0 6f:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 2\n-\tls /dev/dsa #check wq configure success\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:01.0 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq2.1]  --client\n-\n-3. Launch virtio-user::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -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=0,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 7-8 -n 4 --no-pci --file-prefix=testpmd1 \\\n-\t--vdev=net_virtio_user1,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. Loop packets 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-\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 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. Stop and quit dpdk-vhost side and relaunch it with same cmd as step2.\n-\n-6. Rerun step 4.\n-\n-Test Case 10: VM2VM virtio-pmd test with 2 dsa kernel channels register/unregister stable check\n--------------------------------------------------------------------------------------------------\n-This case checks vhost can work stably after unregistering and registering the virtio port many times when vhost uses\n-the asynchronous enqueue operations with dsa kernel driver in VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port to vfio-pci and one dsa device to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\tls /dev/dsa #check wq configure success\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq0.1] --client\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\tmodprobe vfio enable_unsafe_noiommu_mode=1\n-\tmodprobe vfio-pci\n-\techo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode\n-\t./usertools/dpdk-devbind.py --bind=vfio-pci 00:05.0\n-\n-6. Start testpmd in VMs seperately::\n-\n-\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -- -i --rxq=1 --txq=1 --nb-cores=1 --txd=1024 --rxd=1024\n-\n-7. Loop packets 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-\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 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. 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-9. Restart vhost, then rerun step 6-7,check vhost can stable work and get expected throughput.\n-\n-Test Case 11: VM2VM split ring with 2 enqueue dsa kernel channels test with iperf and reconnect stable check\n--------------------------------------------------------------------------------------------------------------\n-This case checks vhost can work stably after reconnecting when vhost uses the asynchronous enqueue operations with\n-dsa kernel driver in VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port to vfio-pci and 2 dsa device to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\t\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0 6f:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0 6f:01.0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 2\n-\tls /dev/dsa #check wq configure success\n-\n-2. On host, launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq0.1] --client\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /root/xingguang/qemu-6.2.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge1G0,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/root/xingguang/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /root/xingguang/qemu-6.2.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge1G1,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/root/xingguang/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1,server \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\t<VM1># ifconfig ens5 1.1.1.2\n-\t<VM1># 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-\t<VM2># ifconfig ens5 1.1.1.8\n-\t<VM2># 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-\t<VM1># iperf -s -i 1\n-\t<VM2># 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 VM0 to VM1, check packets can be forwarding success by scp::\n-\n-\t<VM1># scp <file> root@1.1.1.8:/\n-\n-10. Relaunch dpdk-vhost, then rerun step 7-9 five times.\n-\n-11. Relaunch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 2-3 -n 4 -a 0000:4f:00.1 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq2.1] --client\n-\t\n-12. Rerun step 7-9 five times.\t\n-\n-Test Case 12: VM2VM packed ring with 2 dsa kernel channels stable test with iperf\n-----------------------------------------------------------------------------------\n-This case checks vhost can work stably  when vhost uses the asynchronous enqueue operations with dsa kernel driver in\n-VM2VM topology environment with 2 queues.\n-\n-1. Bind one physical port to vfio-pci and 1 dsa device to idxd like common step 1 and 3::\n-\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 4f:00.1\n-\t\n-\tls /dev/dsa #check wq configure, reset if exist\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -u 6a:01.0\n-\t<dpdk dir># ./usertools/dpdk-devbind.py -b idxd 6a:01.0 \n-\t<dpdk dir># ./<dpdk build dir>drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0\n-\tls /dev/dsa #check wq configure success\n-\n-2. Launch dpdk-vhost by below command::\n-\n-\t<dpdk dir># ./<dpdk build dir>/examples/dpdk-vhost -l 26-28 -n 4 -a 0000:4f:00.1 -a 0000:6a:01.0,max_queues=2 \\\n-\t-- -p 0x1 --mergeable 1 --vm2vm 1 --socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 \\\n-\t--dmas [txd0@wq0.0,txd1@wq0.1]\n-\n-3. Start VM1 with qemu::\n-\n-\ttaskset -c 5,6 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net0 \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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 VM2 with qemu::\n-\n-\ttaskset -c 7,8 /usr/local/qemu-6.1.0/bin/qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 4 -m 4096 \\\n-\t-object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \\\n-\t-numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu20-04-2.img  \\\n-\t-chardev socket,path=/tmp/vm2_qga0.sock,server,nowait,id=vm2_qga0 -device virtio-serial \\\n-\t-device virtserialport,chardev=vm2_qga0,name=org.qemu.guest_agent.2 -daemonize \\\n-\t-monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \\\n-\t-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \\\n-\t-chardev socket,id=char0,path=/tmp/vhost-net1 \\\n-\t-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \\\n-\t-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-\t<VM1># ifconfig ens5 1.1.1.2\n-\t<VM1># 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-\t<VM2># ifconfig ens5 1.1.1.8\n-\t<VM2># 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-\t<VM1># iperf -s -i 1\n-\t<VM2># 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-\t<VM1># scp <file> root@1.1.1.8:/\n-\n-10. Rerun step 7-9 five times.\n\\ No newline at end of file\n",
    "prefixes": [
        "V1"
    ]
}