Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114516/?format=api
https://patches.dpdk.org/api/patches/114516/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20220802061237.1099286-1-weix.ling@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": "<20220802061237.1099286-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220802061237.1099286-1-weix.ling@intel.com", "date": "2022-08-02T06:12:37", "name": "[V1,1/2] test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan: modify testplan to test virtio dequeue", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "3c82be74dd9f2ebfb5c2c5ff4b3e53c5b3ff7684", "submitter": { "id": 1828, "url": "https://patches.dpdk.org/api/people/1828/?format=api", "name": "Ling, WeiX", "email": "weix.ling@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20220802061237.1099286-1-weix.ling@intel.com/mbox/", "series": [ { "id": 24164, "url": "https://patches.dpdk.org/api/series/24164/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=24164", "date": "2022-08-02T06:12:16", "name": "modify vhost_virtio_pmd_interrupt_cbdma to test virito dequeue", "version": 1, "mbox": "https://patches.dpdk.org/series/24164/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/114516/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/114516/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 BC32EA0543;\n\tTue, 2 Aug 2022 08:18:10 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B7BF142B72;\n\tTue, 2 Aug 2022 08:18:10 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 31BB4400D7\n for <dts@dpdk.org>; Tue, 2 Aug 2022 08:18:09 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Aug 2022 23:18:08 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Aug 2022 23:18:06 -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=1659421089; x=1690957089;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=QG90dZ3MhjR57dHJHEEPMlyDR2NXaO51C141UtuHJ3U=;\n b=WEtSVLGUFuVgQ0Quhrvb1XLPuC0Dhy+YvNmibjE6/g277orM1AbGkzHW\n 98orYlKkf9RIuM8kKv4swfXHBQmpStF00awcDxkXNs+T1jj05ys4417BN\n wHjB7nq2jXgVu7W4YwIXIeTWATb5aXA6b5IGnpCAPbx90tfGZ+aJmdfOB\n Y3ewwEQFqlgQqi8UPqgshboidAGuGPGhbKprIk9Kxs195RIs3q2rSprdL\n Nt1aLGRtMNZZCv+G3/ZlmGPA18aTt6g7X3dxQqCFzAB7EftGK+wAjhuUC\n J8djUCkAfxlCnNzbNZPANubYUhylQS5llEwFd2auJO9Za5D9PSwMnnyPx w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10426\"; a=\"375632802\"", "E=Sophos;i=\"5.93,210,1654585200\";\n d=\"scan'208,223\";a=\"375632802\"", "E=Sophos;i=\"5.93,210,1654585200\";\n d=\"scan'208,223\";a=\"552801743\"" ], "From": "Wei Ling <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Wei Ling <weix.ling@intel.com>", "Subject": "[dts][PATCH V1 1/2]\n test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan: modify testplan to\n test virtio dequeue", "Date": "Tue, 2 Aug 2022 02:12:37 -0400", "Message-Id": "<20220802061237.1099286-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": "From DPDK-22.07, virtio support async dequeue for split and packed ring\npath, so modify vhost_virtio_pmd_interrupt_cbdma testplan to test the \nsplit and packed ring async dequeue feature.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n ...t_virtio_pmd_interrupt_cbdma_test_plan.rst | 160 ++++++++++++------\n 1 file changed, 111 insertions(+), 49 deletions(-)", "diff": "diff --git a/test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan.rst b/test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan.rst\nindex fc203020..ec118121 100644\n--- a/test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan.rst\n+++ b/test_plans/vhost_virtio_pmd_interrupt_cbdma_test_plan.rst\n@@ -1,6 +1,35 @@\n .. SPDX-License-Identifier: BSD-3-Clause\n Copyright(c) 2022 Intel Corporation\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 vhost/virtio-pmd interrupt mode with cbdma test plan\n ====================================================\n@@ -10,45 +39,75 @@ Description\n \n Virtio-pmd interrupt need test with l3fwd-power sample, small packets send from traffic generator\n to virtio-pmd side,check virtio-pmd cores can be wakeup status,and virtio-pmd cores should be\n-sleep status after stop sending packets from traffic generator when cbdma enabled.This test plan \n+sleep status after stop sending packets from traffic generator when cbdma enable.This test plan\n cover virtio 0.95, virtio 1.0 and virtio 1.1.\n \n ..Note:\n 1.For packed virtqueue virtio-net test, need qemu version > 4.2.0 and VM kernel version > 5.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.DPDK local patch that about vhost pmd is needed when testing Vhost asynchronous data path with testpmd.\n+2.For split virtqueue virtio-net with multi-queues server mode test, better to use qemu version >= 5.2.0, dut to qemu(v4.2.0~v5.1.0) exist split ring multi-queues reconnection issue.\n+3.Kernel version > 4.8.0, mostly linux distribution don't support vfio-noiommu mode by default,\n+so testing this case need rebuild kernel to enable vfio-noiommu.\n+4.When DMA devices are bound to vfio driver, VA mode is the default and recommended. For PA mode, page by page mapping may\n+exceed IOMMU's max capability, better to use 1G guest hugepage.\n+5.DPDK local patch that about vhost pmd is needed when testing Vhost asynchronous data path with testpmd.\n \n Prerequisites\n =============\n+Topology\n+--------\n+Test flow:TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n \n-Test ENV preparation: Kernel version > 4.8.0, mostly linux distribution don't support vfio-noiommu mode by default,\n-so testing this case need rebuild kernel to enable vfio-noiommu.\n+Software\n+--------\n+ Trex:http://trex-tgn.cisco.com/trex/release/v2.26.tar.gz\n \n-Test flow\n-=========\n+General set up\n+--------------\n+1. Compile DPDK::\n+\n+ # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static <dpdk build dir>\n+ # ninja -C <dpdk build dir> -j 110\n+ For example:\n+ CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static x86_64-native-linuxapp-gcc\n+ ninja -C x86_64-native-linuxapp-gcc -j 110\n+\n+2. Get the PCI device ID and DMA device ID of DUT, for example, 0000:18:00.0 is PCI device ID, 0000:00:04.0, 0000:00:04.1 is DMA device ID::\n \n-TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n+ <dpdk dir># ./usertools/dpdk-devbind.py -s\n \n-Test Case1: Basic virtio interrupt test with 16 queues and cbdma enabled\n-=========================================================================\n+ Network devices using kernel driver\n+ ===================================\n+ 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci\n+\n+ DMA devices using kernel driver\n+ ===============================\n+ 0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci\n+ 0000:00:04.1 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci\n+\n+Test case\n+=========\n+\n+Test Case1: Basic virtio0.95 interrupt test with 16 queues and cbdma enable\n+---------------------------------------------------------------------------\n+This case tests virtio0.95 pmd interrupt with l3fwd-power sample when vhost uses the asynchronous operations with CBDMA channels.\n \n 1. Bind 16 cbdma channels and one NIC port to vfio-pci, then launch testpmd by below command::\n \n ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x1ffff -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3;txq4@80:04.4;txq5@80:04.5;txq6@80:04.6;txq7@80:04.7;txq8@00:04.0;txq9@00:04.1;txq10@00:04.2;txq11@00:04.3;txq12@00:04.4;txq13@00:04.5;txq14@00:04.6;txq15@00:04.7]' \\\n- -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip\n+ --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7;txq8;txq9;txq10;txq11;txq12;txq13;txq14;txq15;rxq0;rxq1;rxq2;rxq3;rxq4;rxq5;rxq6;rxq7;rxq8;rxq9;rxq10;rxq11;rxq12;rxq13;rxq14;rxq15]' \\\n+ -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip --lcore-dma=[lcore1@0000:00:04.0,lcore2@0000:00:04.0,lcore3@0000:00:04.1,lcore3@0000:00:04.2,lcore4@0000:00:04.3,lcore5@0000:00:04.4,lcore6@0000:00:04.5,lcore7@0000:00:04.6,lcore8@0000:00:04.7,\\\n+\tlcore9@0000:80:04.0,lcore10@0000:80:04.1,lcore11@0000:80:04.2,lcore12@0000:80:04.3,lcore13@0000:80:04.4,lcore14@0000:80:04.5,lcore15@0000:80:04.6,lcore16@0000:80:04.7]\n \n 2. Launch VM1, set queues=16, vectors>=2xqueues+2, mq=on::\n \n- taskset -c 34-35 \\\n- qemu-system-x86_64 -name us-vhost-vm2 \\\n- -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n- -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \\\n- -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40 \\\n- -vnc :11 -daemonize\n+ taskset -c 34-35 qemu-system-x86_64 -name us-vhost-vm2 \\\n+ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n+ -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \\\n+ -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40 \\\n+ -vnc :11 -daemonize\n \n 3. Bind virtio port to vfio-pci::\n \n@@ -62,32 +121,33 @@ Test Case1: Basic virtio interrupt test with 16 queues and cbdma enabled\n -- -p 1 -P --config '(0,0,0),(0,1,1),(0,2,2),(0,3,3)(0,4,4),(0,5,5),(0,6,6),(0,7,7)(0,8,8),(0,9,9),(0,10,10),(0,11,11)(0,12,12),(0,13,13),(0,14,14),(0,15,15)' \\\n --no-numa --parse-ptype\n \n-5. Send random dest ip address packets to host nic with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n+5. Send random dest IP packets to host NIC with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n \n-6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n+6. Change dest IP to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n \n 7. Stop the date transmitter, check all related core will be back to sleep status.\n \n-Test Case2: Basic virtio-1.0 interrupt test with 4 queues and cbdma enabled\n-============================================================================\n+Test Case2: Basic virtio-1.0 interrupt test with 4 queues and cbdma enable\n+--------------------------------------------------------------------------\n+This case tests virtio1.0 pmd interrupt with l3fwd-power sample when vhost uses the asynchronous operations with CBDMA channels.\n \n 1. Bind four cbdma channels and one NIC port to vfio-pci, then launch testpmd by below command::\n \n ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7c -n 4 \\\n- --vdev 'net_vhost0,iface=vhost-net,queues=4,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3]' \\\n- -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip\n+ --vdev 'net_vhost0,iface=vhost-net,queues=4,dmas=[txq0;txq1;txq2;txq3;rxq0;rxq1;rxq2;rxq3]' \\\n+ -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip --lcore-dma=[lcore3@0000:00:04.0,lcore4@0000:00:04.0,lcore5@0000:00:04.0,lcore5@0000:00:04.1,lcore6@0000:00:04.1]\n \n 2. Launch VM1, set queues=4, vectors>=2xqueues+2, mq=on::\n \n taskset -c 34-35 \\\n qemu-system-x86_64 -name us-vhost-vm2 \\\n- -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n- -smp cores=4,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=4 \\\n- -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,disable-modern=false,mrg_rxbuf=on,csum=on,mq=on,vectors=15 \\\n- -vnc :11 -daemonize\n+ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n+ -smp cores=4,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=4 \\\n+ -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,disable-modern=false,mrg_rxbuf=on,csum=on,mq=on,vectors=15 \\\n+ -vnc :11 -daemonize\n \n 3. Bind virtio port to vfio-pci::\n \n@@ -99,32 +159,34 @@ Test Case2: Basic virtio-1.0 interrupt test with 4 queues and cbdma enabled\n \n ./x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd-power -c 0xf -n 4 --log-level='user1,7' -- -p 1 -P --config=\"(0,0,0),(0,1,1),(0,2,2),(0,3,3)\" --no-numa --parse-ptype\n \n-5. Send random dest ip address packets to host nic with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n+5. Send random dest IP packets to host NIC with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n \n-6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n+6. Change dest IP to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n \n 7. Stop the date transmitter, check all related core will be back to sleep status.\n \n-Test Case3: Packed ring virtio interrupt test with 16 queues and cbdma enabled\n-===============================================================================\n+Test Case3: Packed ring virtio interrupt test with 16 queues and cbdma enable\n+-----------------------------------------------------------------------------\n+This case tests packed ring virtio-pmd interrupt with l3fwd-power sample when vhost uses the asynchronous operations with CBDMA channels.\n \n 1. Bind 16 cbdma channels ports and one NIC port to vfio-pci, then launch testpmd by below command::\n \n ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x1ffff -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3;txq4@80:04.4;txq5@80:04.5;txq6@80:04.6;txq7@80:04.7;txq8@00:04.0;txq9@00:04.1;txq10@00:04.2;txq11@00:04.3;txq12@00:04.4;txq13@00:04.5;txq14@00:04.6;txq15@00:04.7]' \\\n- -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip\n+ --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7;txq8;txq9;txq10;txq11;txq12;txq13;txq14;txq15;rxq0;rxq1;rxq2;rxq3;rxq4;rxq5;rxq6;rxq7;rxq8;rxq9;rxq10;rxq11;rxq12;rxq13;rxq14;rxq15]' \\\n+ -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip --lcore-dma=[lcore1@0000:00:04.0,lcore2@0000:00:04.0,lcore3@0000:00:04.1,lcore3@0000:00:04.2,lcore4@0000:00:04.3,lcore5@0000:00:04.4,lcore6@0000:00:04.5,lcore7@0000:00:04.6,lcore8@0000:00:04.7,\\\n+\tlcore9@0000:80:04.0,lcore10@0000:80:04.1,lcore11@0000:80:04.2,lcore12@0000:80:04.3,lcore13@0000:80:04.4,lcore14@0000:80:04.5,lcore15@0000:80:04.6,lcore16@0000:80:04.7]\n \n 2. Launch VM1, set queues=16, vectors>=2xqueues+2, mq=on::\n \n taskset -c 34-35 \\\n qemu-system-x86_64 -name us-vhost-vm2 \\\n- -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n- -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \\\n- -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40,packed=on \\\n- -vnc :11 -daemonize\n+ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \\\n+ -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \\\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=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \\\n+ -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40,packed=on \\\n+ -vnc :11 -daemonize\n \n 3. Bind virtio port to vfio-pci::\n \n@@ -136,8 +198,8 @@ Test Case3: Packed ring virtio interrupt test with 16 queues and cbdma enabled\n \n ./x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd-power -c 0x0ffff -n 4 --log-level='user1,7' -- -p 1 -P --config '(0,0,0),(0,1,1),(0,2,2),(0,3,3)(0,4,4),(0,5,5),(0,6,6),(0,7,7)(0,8,8),(0,9,9),(0,10,10),(0,11,11)(0,12,12),(0,13,13),(0,14,14),(0,15,15)' --no-numa --parse-ptype\n \n-5. Send random dest ip address packets to host nic with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n+5. Send random dest IP packets to host NIC with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.\n \n-6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n+6. Change dest IP to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.\n \n 7. Stop the date transmitter, check all related core will be back to sleep status.\n", "prefixes": [ "V1", "1/2" ] }{ "id": 114516, "url": "