Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109734/?format=api
http://patches.dpdk.org/api/patches/109734/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20220415032516.251365-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": "<20220415032516.251365-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220415032516.251365-1-weix.ling@intel.com", "date": "2022-04-15T03:25:16", "name": "[V1,1/5] test_plans/loopback_virtio_user_server_mode_test_plan: delte CBDMA test case", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "7652c369da1532e2604ac8c5f14958f17875ebd2", "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/20220415032516.251365-1-weix.ling@intel.com/mbox/", "series": [ { "id": 22524, "url": "http://patches.dpdk.org/api/series/22524/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=22524", "date": "2022-04-15T03:25:06", "name": "migrate cbdma case in new testsuite", "version": 1, "mbox": "http://patches.dpdk.org/series/22524/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/109734/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/109734/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 CC728A050B;\n\tFri, 15 Apr 2022 05:25:40 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C52944067C;\n\tFri, 15 Apr 2022 05:25:40 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id E755F4003C\n for <dts@dpdk.org>; Fri, 15 Apr 2022 05:25:38 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Apr 2022 20:25:38 -0700", "from unknown (HELO localhost.localdomain) ([10.239.251.222])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Apr 2022 20:25:36 -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=1649993139; x=1681529139;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=zC+O457rAZLCjcRc4tn4M9Qp1DpvkU/e0oBNJghJ5Ug=;\n b=W2H/0IKnT4QQgTalRQTCJbfjmYZjogRUKbu/Vr3Eu49060oyZpzxQb5Q\n /EeDmogeiZniEDMQEiB4klNtXghm1oXWVjlOmEPWqNNmziH0kI3qAEgxo\n Qz+V+7Q4fzGasPVeOsEBkp2tb4cxzCs9mWxaTJd2wXU9s1ChD02oWd1mg\n kQnQJGzVk2F9edAHYTVITBNiUAhqAN79GanoyPgWWWTjylXDhnIl0POms\n l2t4IesyDTo6ShVMKWvyn7A4Qgga/M7voayqWEzf4rVI1EMdFYQ9FfcWH\n 8mdKIiSsbnuzZEaNLR2PByPUR/X3HySu85+rqxmki+A3CcFp7gUUy/xF8 Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10317\"; a=\"262528638\"", "E=Sophos;i=\"5.90,261,1643702400\"; d=\"scan'208\";a=\"262528638\"", "E=Sophos;i=\"5.90,261,1643702400\"; d=\"scan'208\";a=\"574133552\"" ], "From": "Wei Ling <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Wei Ling <weix.ling@intel.com>", "Subject": "[dts][PATCH V1 1/5]\n test_plans/loopback_virtio_user_server_mode_test_plan: delte CBDMA test case", "Date": "Fri, 15 Apr 2022 11:25:16 +0800", "Message-Id": "<20220415032516.251365-1-weix.ling@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "As commit 53d3f4778c(vhost: integrate dmadev in asynchronous data-path),\ndelete cbdma related case form test_plans/loopback_virtio_user_server_mode_test_plan.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n ...back_virtio_user_server_mode_test_plan.rst | 922 ++++++++----------\n 1 file changed, 387 insertions(+), 535 deletions(-)", "diff": "diff --git a/test_plans/loopback_virtio_user_server_mode_test_plan.rst b/test_plans/loopback_virtio_user_server_mode_test_plan.rst\nindex 092eb5e8..b372f885 100644\n--- a/test_plans/loopback_virtio_user_server_mode_test_plan.rst\n+++ b/test_plans/loopback_virtio_user_server_mode_test_plan.rst\n@@ -34,75 +34,113 @@\n vhost/virtio-user loopback server mode test plan\n ================================================\n \n-Virtio-user server mode is a feature to enable virtio-user as the server, vhost as the client, thus after vhost-user is killed then relaunched,\n-virtio-user can reconnect back to vhost-user again; at another hand, virtio-user also can reconnect back to vhost-user after virtio-user is killed.\n-This feature test need cover different rx/tx paths with virtio 1.0 and virtio 1.1, includes split ring mergeable, non-mergeable, inorder mergeable,\n-inorder non-mergeable, vector_rx path and packed ring mergeable, non-mergeable, inorder non-mergeable, inorder mergeable, vectorized path.\n-Split ring and packed ring test when vhost enqueue operation with multi-CBDMA channels. When DMA devices are bound to vfio driver,\n-VA mode is the default and recommended. For PA mode, page by page mapping may exceed IOMMU's max capability, better to use 1G guest hugepage.\n+Virtio-user server mode is a feature to enable virtio-user as the server,\n+vhost as the client, thus after vhost-user is killed then relaunched,\n+virtio-user can reconnect back to vhost-user again; at another hand,\n+virtio-user also can reconnect back to vhost-user after virtio-user is killed.\n+This feature test need cover different rx/tx paths with virtio 1.0 and virtio 1.1,\n+includes split ring mergeable, non-mergeable, inorder mergeable,\n+inorder non-mergeable, vector_rx path and packed ring mergeable, non-mergeable,\n+inorder non-mergeable, inorder mergeable, vectorized path.\n+\n+For more about dpdk-testpmd sample, please refer to the DPDK docments:\n+https://doc.dpdk.org/guides/testpmd_app_ug/run_app.html\n+\n+For virtio-user vdev parameter, you can refer to the DPDK docments:\n+https://doc.dpdk.org/guides/nics/virtio.html#virtio-paths-selection-and-usage.\n+\n+Prerequisites\n+=============\n+\n+Topology\n+--------\n+Test flow: Virtio-user-->Vhost-user-->Testpmd-->Vhost-user-->Virtio-user\n+\n+Hardware\n+--------\n+Supportted NICs: ALL\n+\n+Software\n+--------\n+Trex:http://trex-tgn.cisco.com/trex/release/v2.26.tar.gz\n+\n+General set up\n+--------------\n+1. Compile DPDK::\n+\n+ # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=<dpdk build dir>\n+ # ninja -C <dpdk build dir> -j 110\n+\n+Test case\n+=========\n+\n+Common steps\n+------------\n \n Test Case 1: Basic test for packed ring server mode\n-===================================================\n+---------------------------------------------------\n+This case uses testpmd to test packed ring with loopback virtio-user server mode.\n \n 1. Launch virtio-user as server mode::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,server=1,queues=1,packed_vq=1 -- -i --rxq=1 --txq=1 --no-numa\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch vhost as client mode::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'net_vhost0,iface=/tmp/sock0,client=1,queues=1' -- -i --rxq=1 --txq=1 --nb-cores=1\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 3. Run below command to get throughput,verify the loopback throughput is not zero::\n \n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n Test Case 2: Basic test for split ring server mode\n-===================================================\n+---------------------------------------------------\n+This case uses testpmd to test split ring with loopback virtio-user server mode.\n \n 1. Launch virtio-user as server mode::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,server=1,queues=1 -- -i --rxq=1 --txq=1 --no-numa\n >set fwd mac\n >start\n \n 2. Launch vhost as client mode::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'net_vhost0,iface=/tmp/sock0,client=1,queues=1' -- -i --rxq=1 --txq=1 --nb-cores=1\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 3. Run below command to get throughput,verify the loopback throughput is not zero::\n \n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n Test Case 3: loopback reconnect test with split ring mergeable path and server mode\n-===================================================================================\n+-----------------------------------------------------------------------------------\n+This case uses testpmd to test split ring mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 8 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=8' -- -i --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 8 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=8,mrg_rxbuf=1,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -111,21 +149,21 @@ Test Case 3: loopback reconnect test with split ring mergeable path and server m\n \n 4. Relaunch vhost and send chain packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=8' -- -i --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -134,52 +172,52 @@ Test Case 3: loopback reconnect test with split ring mergeable path and server m\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=8,mrg_rxbuf=1,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>set txpkts 2000,2000,2000,2000\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> set txpkts 2000,2000,2000,2000\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd>stop\n \n Test Case 4: loopback reconnect test with split ring inorder mergeable path and server mode\n-===========================================================================================\n+-------------------------------------------------------------------------------------------\n+This case uses testpmd to test split ring inorder mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues, check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=1,in_order=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -188,21 +226,21 @@ Test Case 4: loopback reconnect test with split ring inorder mergeable path and\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -211,51 +249,51 @@ Test Case 4: loopback reconnect test with split ring inorder mergeable path and\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=1,in_order=1\\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>set txpkts 2000,2000,2000,2000\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> set txpkts 2000,2000,2000,2000\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 5: loopback reconnect test with split ring inorder non-mergeable path and server mode\n-===============================================================================================\n+-----------------------------------------------------------------------------------------------\n+This case uses testpmd to test split ring inorder non-mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -264,20 +302,20 @@ Test Case 5: loopback reconnect test with split ring inorder non-mergeable path\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -286,49 +324,49 @@ Test Case 5: loopback reconnect test with split ring inorder non-mergeable path\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 6: loopback reconnect test with split ring non-mergeable path and server mode\n-=======================================================================================\n+---------------------------------------------------------------------------------------\n+This case uses testpmd to test split ring non-mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=0,vectorized=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -337,20 +375,20 @@ Test Case 6: loopback reconnect test with split ring non-mergeable path and serv\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -359,49 +397,49 @@ Test Case 6: loopback reconnect test with split ring non-mergeable path and serv\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=0,vectorized=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 7: loopback reconnect test with split ring vector_rx path and server mode\n-===================================================================================\n+-----------------------------------------------------------------------------------\n+This case uses testpmd to test split ring vector_rx path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=0,vectorized=1 \\\n -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -410,20 +448,20 @@ Test Case 7: loopback reconnect test with split ring vector_rx path and server m\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -432,50 +470,50 @@ Test Case 7: loopback reconnect test with split ring vector_rx path and server m\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,mrg_rxbuf=0,in_order=0,vectorized=1 \\\n -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 8: loopback reconnect test with packed ring mergeable path and server mode\n-====================================================================================\n+------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=1,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -484,21 +522,21 @@ Test Case 8: loopback reconnect test with packed ring mergeable path and server\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -507,51 +545,51 @@ Test Case 8: loopback reconnect test with packed ring mergeable path and server\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=1,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>set txpkts 2000,2000,2000,2000\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> set txpkts 2000,2000,2000,2000\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd>stop\n \n Test Case 9: loopback reconnect test with packed ring non-mergeable path and server mode\n-========================================================================================\n+----------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring non-mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -560,16 +598,16 @@ Test Case 9: loopback reconnect test with packed ring non-mergeable path and ser\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n@@ -582,50 +620,50 @@ Test Case 9: loopback reconnect test with packed ring non-mergeable path and ser\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=0 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 10: loopback reconnect test with packed ring inorder mergeable path and server mode\n-=============================================================================================\n+---------------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring inorder mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 8 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=8' -- -i --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 8 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -634,21 +672,21 @@ Test Case 10: loopback reconnect test with packed ring inorder mergeable path an\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=8' -- -i --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -657,51 +695,51 @@ Test Case 10: loopback reconnect test with packed ring inorder mergeable path an\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=8 --txq=8\n- >set fwd mac\n- >set txpkts 2000,2000,2000,2000\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> set txpkts 2000,2000,2000,2000\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>set txpkts 2000,2000,2000,2000\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> set txpkts 2000,2000,2000,2000\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 11: loopback reconnect test with packed ring inorder non-mergeable path and server mode\n-=================================================================================================\n+-------------------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring inorder non-mergeable path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n -- -i --rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -710,20 +748,20 @@ Test Case 11: loopback reconnect test with packed ring inorder non-mergeable pat\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -732,49 +770,49 @@ Test Case 11: loopback reconnect test with packed ring inorder non-mergeable pat\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n -- -i --rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd> stop\n \n Test Case 12: loopback reconnect test with packed ring vectorized path and server mode\n-=======================================================================================\n+--------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring vectorized path with loopback virtio-user server mode and reconnect vhost-user and virtio-user.\n \n 1. launch vhost as client mode with 2 queues::\n \n- rm -rf vhost-net*\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --log-level=pmd.net.vhost.driver,8 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --log-level=pmd.net.vhost.driver,8 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start\n+ testpmd> set fwd mac\n+ testpmd> start\n \n 2. Launch virtio-user as server mode with 2 queues and check throughput can get expected::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --log-level=pmd.net.virtio.driver,8 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --log-level=pmd.net.virtio.driver,8 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n- >show port stats all\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n+ testpmd> show port stats all\n \n 3. Quit vhost side testpmd, check the virtio-user side link status::\n \n@@ -783,20 +821,20 @@ Test Case 12: loopback reconnect test with packed ring vectorized path and serve\n \n 4. Relaunch vhost and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xe -n 4 --no-pci --file-prefix=vhost \\\n --vdev 'eth_vhost0,iface=vhost-net,client=1,queues=2' -- -i --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 5. Check the virtio-user side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 6. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+ testpmd> stop\n \n 7. Quit virtio-user side testpmd, check the vhost side link status::\n \n@@ -805,46 +843,52 @@ Test Case 12: loopback reconnect test with packed ring vectorized path and serve\n \n 8. Relaunch virtio-user and send packets::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \\\n --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \\\n -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2\n- >set fwd mac\n- >start tx_first 32\n+ testpmd> set fwd mac\n+ testpmd> start tx_first 32\n \n 9. Check the vhost side link status and run below command to get throughput, check throughput can get expected::\n \n testpmd> show port info 0\n #it should show up\"\n- testpmd>show port stats all\n+ testpmd> show port stats all\n \n 10. Port restart at vhost side by below command and check throughput can get expected::\n \n- testpmd>stop\n- testpmd>port stop 0\n- testpmd>port start 0\n- testpmd>start tx_first 32\n- testpmd>show port stats all\n+\ttestpmd> stop\n+\ttestpmd> port stop 0\n+\ttestpmd> port start 0\n+\ttestpmd> start tx_first 32\n+\ttestpmd> show port stats all\n \n 11. Check each RX/TX queue has packets::\n \n- testpmd>stop\n+\ttestpmd>stop\n \n Test Case 13: loopback packed ring all path payload check test using server mode and multi-queues\n-=================================================================================================\n+-------------------------------------------------------------------------------------------------\n+This case uses testpmd to test packed ring all path with loopback virtio-user server mode and multi-queues to check payload.\n \n 1. launch vhost::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 --no-pci --file-prefix=vhost -n 4 --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1' -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 --no-pci --file-prefix=vhost -n 4 \\\n+ --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1' -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n \n 2. Launch virtio-user with packed ring mergeable inorder path::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio --no-pci --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,packed_vq=1,server=1 -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd> set fwd csum\n- testpmd> start\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio --no-pci \\\n+ --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,packed_vq=1,server=1 \\\n+ -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 3. Attach pdump secondary process to primary process by same file-prefix::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio -- --pdump 'device_id=net_virtio_user0,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'\n+\t./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio -- \\\n+\t--pdump 'device_id=net_virtio_user0,queue=0,rx-dev=./pdump-virtio-rx-q0.pcap,mbuf-size=8000'\n+\t--pdump 'device_id=net_virtio_user0,queue=1,rx-dev=./pdump-virtio-rx-q1.pcap,mbuf-size=8000'\n \n 4. Send large pkts from vhost::\n \n@@ -860,29 +904,31 @@ Test Case 13: loopback packed ring all path payload check test using server mode\n \n 7. Quit and relaunch virtio with packed ring mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,packed_vq=1,server=1 -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd> set fwd csum\n- testpmd> start\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+ --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,packed_vq=1,server=1 \\\n+ -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 8. Rerun step 3-6.\n \n 9. Quit and relaunch virtio with packed ring non-mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,packed_vq=1,server=1 -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd> set fwd csum\n- testpmd> start\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+ --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,packed_vq=1,server=1 \\\n+ -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 10. Rerun step 3.\n \n 11. Send pkts from vhost::\n \n- testpmd> set fwd csum\n- testpmd> set txpkts 64,128,256,512\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n+\ttestpmd> set fwd csum\n+\ttestpmd> set txpkts 64,128,256,512\n+\ttestpmd> set burst 1\n+\ttestpmd> start tx_first 1\n+\ttestpmd> stop\n \n 12. Quit pdump, check all the packets length are 960 Byte in the pcap file and the payload in receive packets are same.\n \n@@ -890,50 +936,56 @@ Test Case 13: loopback packed ring all path payload check test using server mode\n \n 14. Quit and relaunch virtio with packed ring inorder non-mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,server=1 -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd> set fwd csum\n- testpmd> start\n+\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,server=1 \\\n+\t-- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 15. Rerun step 10-13.\n \n 16. Quit and relaunch virtio with packed ring vectorized path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,server=1 -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd> set fwd csum\n- testpmd> start\n+\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,server=1 \\\n+\t-- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 17 Rerun step 10-13.\n \n 18. Quit and relaunch virtio with packed ring vectorized path and ring size is not power of 2 as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,queue_size=1025,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1025 --rxd=1025\n- testpmd> set fwd csum\n- testpmd> start\n+\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1,queue_size=1025,server=1 \\\n+\t-- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1025 --rxd=1025\n+\ttestpmd> set fwd csum\n+\ttestpmd> start\n \n 19. Rerun step 10-13.\n \n Test Case 14: loopback split ring all path payload check test using server mode and multi-queues\n-================================================================================================\n+------------------------------------------------------------------------------------------------\n+This case uses testpmd to test split ring all path with loopback virtio-user server mode and multi-queues to check payload.\n \n 1. Launch vhost::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 --no-pci --file-prefix=vhost -n 4 --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1' -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 --no-pci --file-prefix=vhost -n 4 \\\n+ --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1' -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n \n 2. Launch virtio-user with split ring mergeable inorder path::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,server=1 \\\n -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n+\ttestpmd>set fwd csum\n+\ttestpmd>start\n \n 3. Attach pdump secondary process to primary process by same file-prefix::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio-user0 -- --pdump 'device_id=net_virtio_user0,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'\n+ ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio -- \\\n+ --pdump 'device_id=net_virtio_user0,queue=0,rx-dev=./pdump-virtio-rx-q0.pcap,mbuf-size=8000'\n+ --pdump 'device_id=net_virtio_user0,queue=1,rx-dev=./pdump-virtio-rx-q1.pcap,mbuf-size=8000'\n \n 4. Send large pkts from vhost::\n \n@@ -949,31 +1001,31 @@ Test Case 14: loopback split ring all path payload check test using server mode\n \n 7. Quit and relaunch virtio with split ring mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,server=1 \\\n -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n+\ttestpmd>set fwd csum\n+\ttestpmd>start\n \n 8. Rerun steps 3-6.\n \n 9. Quit and relaunch virtio with split ring non-mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+ <dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,server=1 \\\n -- -i --enable-hw-vlan-strip --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n+\ttestpmd>set fwd csum\n+\ttestpmd>start\n \n 10. Rerun step 3.\n \n 11. Send pkts from vhost::\n \n- testpmd> set fwd csum\n- testpmd> set txpkts 64,128,256,512\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n+\ttestpmd> set fwd csum\n+\ttestpmd> set txpkts 64,128,256,512\n+\ttestpmd> set burst 1\n+\ttestpmd> start tx_first 1\n+\ttestpmd> stop\n \n 12. Quit pdump, check all the packets length are 960 Byte in the pcap file and the payload in receive packets are same.\n \n@@ -981,220 +1033,20 @@ Test Case 14: loopback split ring all path payload check test using server mode\n \n 14. Quit and relaunch virtio with split ring inorder non-mergeable path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n+\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,server=1 \\\n+\t-- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd>set fwd csum\n+\ttestpmd>start\n \n 15. Rerun step 10-13.\n \n 16. Quit and relaunch virtio with split ring vectorized path as below::\n \n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-17. Rerun step 10-13.\n-\n-Test Case 15: loopback packed ring all path cbdma test payload check with server mode and multi-queues\n-======================================================================================================\n-\n-1. bind 8 cbdma port to vfio-pci and launch vhost::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[txq0@0000:80:04.0;txq1@0000:80:04.1;txq2@0000:80:04.2;txq3@0000:80:04.3;txq4@0000:80:04.4;txq5@0000:80:04.5;txq6@0000:80:04.6;txq7@0000:80:04.7]' \\\n- --iova=va -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n-\n-2. Launch virtio-user with packed ring mergeable inorder path::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,packed_vq=1,server=1\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-3. Attach pdump secondary process to primary process by same file-prefix::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio-user0 -- --pdump 'device_id=net_virtio_user0,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'\n-\n-4. Send large pkts from vhost, check loopback performance can get expected and each queue can receive packets::\n-\n- testpmd> vhost enable tx all\n- testpmd> set fwd csum\n- testpmd> set txpkts 64,64,64,2000,2000,2000\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n-\n-5. Quit pdump, check all the packets length are 6192 Byte in the pcap file, and the payload in receive packets are same.\n-\n-6. Quit and relaunch vhost and rerun step3-5.\n-\n-7. Quit and relaunch virtio with packed ring mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,packed_vq=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-8. Rerun steps 3-6.\n-\n-9. Quit and relaunch virtio with packed ring non-mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,packed_vq=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-10. Rerun step 3.\n-\n-11. Send pkts from vhost::\n-\n- testpmd> vhost enable tx all\n- testpmd> set fwd csum\n- testpmd> set txpkts 64,128,256,512\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n-\n-12. Quit pdump, check all the packets length are 960 Byte in the pcap file and the payload in receive packets are same.\n-\n-13. Quit and relaunch vhost and rerun step 10-12.\n-\n-14. Quit and relaunch virtio with packed ring inorder non-mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-15. Rerun step 10-13.\n-\n-16. Quit and relaunch virtio with packed ring vectorized path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-17. Rerun step 10-13.\n-\n-18. Quit and relaunch virtio with packed ring vectorized path and ring size is not power of 2 as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci --force-max-simd-bitwidth=512 \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,packed_vq=1,vectorized=1,queue_size=1025,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1025 --rxd=1025\n- testpmd>set fwd csum\n- testpmd>start\n-\n-19. Rerun step 10-13.\n-\n-20. Quit and relaunch vhost w/ iova=pa::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 --file-prefix=vhost -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.1;txq2@0000:00:04.2;txq3@0000:00:04.3;txq4@0000:00:04.4;txq5@0000:00:04.5;txq6@0000:00:04.6;txq7@0000:00:04.7]' \\\n- --iova=pa -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n-\n-21. Quit virtio and rerun steps 2-19.\n-\n-Test Case 16: loopback split ring all path cbdma test payload check with server mode and multi-queues\n-=====================================================================================================\n-\n-1. bind 8 cbdma port to vfio-pci and launch vhost::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 32-33 -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[txq0@0000:80:04.0;txq1@0000:80:04.1;txq2@0000:80:04.2;txq3@0000:80:04.3;txq4@0000:80:04.4;txq5@0000:80:04.5;txq6@0000:80:04.6;txq7@0000:80:04.7]' \\\n- --iova=va -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n-\n-2. Launch virtio-user with split ring mergeable inorder path::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-3. Attach pdump secondary process to primary process by same file-prefix::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio-user0 -- --pdump 'device_id=net_virtio_user0,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'\n-\n-4. Send large pkts from vhost::\n-\n- testpmd> vhost enable tx all\n- testpmd> set fwd csum\n- testpmd> set txpkts 64,64,64,2000,2000,2000\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n-\n-5. Quit pdump, check all the packets length are 6192 Byte in the pcap file and the payload in receive packets are same.\n-\n-6. Quit and relaunch vhost and rerun step3-5.\n-\n-7. Quit and relaunch virtio with split ring mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=1,in_order=0,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-8. Rerun steps 3-6.\n-\n-9. Quit and relaunch virtio with split ring non-mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,server=1 \\\n- -- -i --enable-hw-vlan-strip --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-10. Rerun step 3.\n-\n-11. Send pkts from vhost::\n-\n- testpmd> vhost enable tx all\n- testpmd> set fwd csum\n- testpmd> set txpkts 64,128,256,512\n- testpmd> set burst 1\n- testpmd> start tx_first 1\n- testpmd> stop\n-\n-12. Quit pdump, check all the packets length are 960 Byte in the pcap file and the payload in receive packets are same.\n-\n-13. Quit and relaunch vhost and rerun step 10-12.\n-\n-14. Quit and relaunch virtio with split ring inorder non-mergeable path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-15. Rerun step 10-13.\n-\n-16. Quit and relaunch virtio with split ring vectorized path as below::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,server=1 \\\n- -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n- testpmd>set fwd csum\n- testpmd>start\n-\n-17. Rerun step 10-13.\n-\n-18. Quit and relaunch vhost w/ iova=pa::\n-\n- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-3 --file-prefix=vhost -n 4 \\\n- --vdev 'eth_vhost0,iface=vhost-net0,queues=8,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.1;txq2@0000:00:04.2;txq3@0000:00:04.3;txq4@0000:00:04.4;txq5@0000:00:04.5;txq6@0000:00:04.6;txq7@0000:00:04.7]' \\\n- --iova=pa -- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\t<dpdk dir># ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31 -n 4 --file-prefix=virtio-user0 --no-pci \\\n+\t--vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net0,queues=8,mrg_rxbuf=0,in_order=0,vectorized=1,server=1 \\\n+\t-- -i --nb-cores=1 --rxq=8 --txq=8 --txd=1024 --rxd=1024\n+\ttestpmd>set fwd csum\n+\ttestpmd>start\n \n-19. Quit virtio and rerun steps 2-17.\n+17. Rerun step 10-13.\n\\ No newline at end of file\n", "prefixes": [ "V1", "1/5" ] }{ "id": 109734, "url": "