Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/108854/?format=api
http://patches.dpdk.org/api/patches/108854/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20220325054730.726251-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": "<20220325054730.726251-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220325054730.726251-1-weix.ling@intel.com", "date": "2022-03-25T05:47:30", "name": "[V1,2/4] test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan: add new test suite", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "16f676fb33a7052e3c148fbff5916ba9c5e9c9cd", "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/20220325054730.726251-1-weix.ling@intel.com/mbox/", "series": [ { "id": 22236, "url": "http://patches.dpdk.org/api/series/22236/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=22236", "date": "2022-03-25T05:47:10", "name": "add new test suite", "version": 1, "mbox": "http://patches.dpdk.org/series/22236/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/108854/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/108854/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 AF268A04FD;\n\tFri, 25 Mar 2022 06:47:38 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A196B40685;\n\tFri, 25 Mar 2022 06:47:38 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 9BEC24013F\n for <dts@dpdk.org>; Fri, 25 Mar 2022 06:47:36 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2022 22:47:35 -0700", "from unknown (HELO localhost.localdomain) ([10.239.251.222])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2022 22:47:34 -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=1648187257; x=1679723257;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=heZ1lqzYZuRcNpgyoQgiXZBUrIhoPEzv5INtlEojyF8=;\n b=QHSUKZeRixG6Vu/GQuCM4zr2hiAyWvO4iyWsi698b3YtJBJskc5weGBq\n MjVhJTfdKWR2iM7sMOTdwigD0Y6tiRvCOGxxu5pQiKhEob8WLO7dYx3Ko\n j8GAYwfGQeqwFNZeKJL6hzSj/Yrz4Xfi/69jIjeNo8epX1Lh2iP9GVlhE\n KWvISX+a11y6pfdHPD2XuirxRTuHwCoPirWQ3P7DvWGYvQInDZ5CLbmDx\n 6Ywj/SQSJJ81FDOzJ9CtTe4x3FvOj00Rz4rkLpsLieEBOT/E+fqF3OHGU\n SrEdtdc0sYcMioWAJDX5/HU6e0oJIpDDfv1Fz6mG+UdGkLPq9/LTaOHTs w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10296\"; a=\"283427513\"", "E=Sophos;i=\"5.90,209,1643702400\"; d=\"scan'208\";a=\"283427513\"", "E=Sophos;i=\"5.90,209,1643702400\"; d=\"scan'208\";a=\"693568094\"" ], "From": "Wei Ling <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Wei Ling <weix.ling@intel.com>", "Subject": "[dts][PATCH V1 2/4]\n test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan: add new\n test suite", "Date": "Fri, 25 Mar 2022 13:47:30 +0800", "Message-Id": "<20220325054730.726251-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": "Add new test suite.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n ...paths_performance_with_cbdma_test_plan.rst | 395 ++++++++++++++++++\n 1 file changed, 395 insertions(+)\n create mode 100644 test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst", "diff": "diff --git a/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst b/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst\nnew file mode 100644\nindex 00000000..e8392710\n--- /dev/null\n+++ b/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst\n@@ -0,0 +1,395 @@\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+Vswitch PVP multi-paths performance with CBDMA test plan\n+========================================================\n+\n+Description\n+===========\n+\n+Benchmark PVP multi-paths performance with CBDMA in vhost sample, \n+include 10 tx/rx paths: inorder mergeable, inorder non-mergeable, \n+mergeable, non-mergeable, vectorized_rx, virtio 1.1 inorder mergeable, \n+virtio 1.1 inorder non-mergeable, virtio 1.1 mergeable, virtio 1.1 non-mergeable, \n+virtio1.1 vectorized path. Give 1 core for vhost and virtio respectively.\n+About vswitch sample, a new option --total-num-mbufs is added from dpdk-22.03,\n+for the user to set larger mbuf pool to avoid launch fail. For example, dpdk-vhost \n+will fail to launch with a 40G i40e port without setting larger mbuf pool.\n+For more about vhost switch sample, please refer to the dpdk docs:\t\n+http://doc.dpdk.org/guides/sample_app_ug/vhost.html\n+For virtio-user vdev parameter, you can refer to the dpdk doc:\n+https://doc.dpdk.org/guides/nics/virtio.html#virtio-paths-selection-and-usage.\n+\n+Prerequisites\n+=============\n+\n+Topology\n+--------\n+\n+Test flow: TG-->nic-->vswitch-->virtio-user-->vswitch-->nic-->TG\n+\n+Hardware\n+--------\n+Supportted NICs: all except columbiaville that not support VMDQ\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 and vhost example::\n+\n+\t# meson <dpdk build dir> \n+\t# meson configure -Dexamples=vhost <dpdk build dir> \n+\t# ninja -C <dpdk build dir> -j 110\n+\n+2. Get the pci device id and DMA device id of DUT.\n+\n+For example, 0000:18:00.0 is pci device id, 0000:00:04.0 is DMA device id::\n+\n+\t<dpdk dir># ./usertools/dpdk-devbind.py -s\n+\n+\tNetwork devices using kernel driver\n+\t===================================\n+\t0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci\n+\t\n+\tDMA devices using kernel driver\n+\t===============================\n+\t0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci\n+\n+Test case\n+=========\t\n+\n+Common steps\n+------------\n+1. Bind one physical port and one CBDMA port to vfio-pci::\n+\n+\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port pci device id>\n+\t<dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port DMA device id>\n+\t\n+\tFor example::\n+\t./usertools/dpdk-devbind.py -b vfio-pci 0000:00:18.0\n+\t./usertools/dpdk-devbind.py -b vfio-pci 0000:00:04.0\n+\n+2. Inject different size of packets to NIC by traffic generator::\n+\n+\tThe 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+\tAll the packets in this test plan use the Virtio mac:00:11:22:33:44:10.\n+\n+Test Case 1: Vswitch PVP split ring inorder mergeable path performance with CBDMA\n+---------------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring inorder mergeable path with CBDMA. \n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with split ring inorder mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=0,mrg_rxbuf=1,in_order=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\n+\n+Test Case 2: Vswitch PVP split ring inorder non-mergeable path performance with CBDMA\n+-------------------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring inorder non-mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with split ring non-mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=0,mrg_rxbuf=0,in_order=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\n+\t\n+Test Case 3: Vswitch PVP split ring mergeable path performance with CBDMA\n+-------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with split ring mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=0,mrg_rxbuf=1,in_order=0 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\n+\t\n+Test Case 4: Vswitch PVP split ring non-mergeable path performance with CBDMA\n+-----------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring non-mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with split ring non-mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=0,mrg_rxbuf=0,in_order=0 \\\n+\t-- -i --enable-hw-vlan-strip --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\t\n+\n+Test Case 5: Vswitch PVP split ring vectorized path performance with CBDMA\n+--------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring vectorized path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with split ring vectorized path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=0,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\t\n+\t\n+\t\n+Test Case 6: Vswitch PVP packed ring inorder mergeable path performance with CBDMA\n+----------------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring inorder mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with packed ring inorder mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=1,mrg_rxbuf=1,in_order=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\n+\n+Test Case 7: Vswitch PVP packed ring inorder non-mergeable path performance with CBDMA\n+--------------------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring inorder non-mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with packed ring inorder non-mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=1,mrg_rxbuf=0,in_order=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\n+\t\n+Test Case 8: Vswitch PVP packed ring mergeable path performance with CBDMA\n+--------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with packed ring mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=1,mrg_rxbuf=1,in_order=0 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\n+\t\n+Test Case 9: Vswitch PVP packed ring non-mergeable path performance with CBDMA\n+------------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring non-mergeable path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with packed ring non-mergeable path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/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,packed_vq=1,mrg_rxbuf=0,in_order=0 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 \n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\t\n+\n+Test Case 10: Vswitch PVP packed ring vectorized path performance with CBDMA\n+----------------------------------------------------------------------------\n+This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring vectorized path with CBDMA.\n+\n+1. Bind one physical port and one CBDMA port to vfio-pci as common step 1.\n+\n+2. 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:00:04.0 \\\n+\t-- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000\n+\n+3. Launch virtio-user with packed ring vectorized path::\n+\n+\t<dpdk dir>#./<dpdk build dir>/app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 --force-max-simd-bitwidth=512 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n+\t-- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1\n+\n+4. Send packets from virtio-user 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. Send packets by traffic generator as common step 2, and check the throughput with below command::\n+\n+\ttestpmd>show port stats all\t\t\n\\ No newline at end of file\n", "prefixes": [ "V1", "2/4" ] }{ "id": 108854, "url": "