get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85212,
    "url": "http://patches.dpdk.org/api/patches/85212/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20201215234604.91346-1-yinan.wang@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": "<20201215234604.91346-1-yinan.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201215234604.91346-1-yinan.wang@intel.com",
    "date": "2020-12-15T23:46:04",
    "name": "[v1] test_plans/vhost_cbdma_test_plan.rst",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "77b21d3243b3dc6b4bd80dd8218c955d8609625c",
    "submitter": {
        "id": 1081,
        "url": "http://patches.dpdk.org/api/people/1081/?format=api",
        "name": "Wang, Yinan",
        "email": "yinan.wang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20201215234604.91346-1-yinan.wang@intel.com/mbox/",
    "series": [
        {
            "id": 14313,
            "url": "http://patches.dpdk.org/api/series/14313/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=14313",
            "date": "2020-12-15T23:46:04",
            "name": "[v1] test_plans/vhost_cbdma_test_plan.rst",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14313/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/85212/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/85212/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0A51BA09EE;\n\tTue, 15 Dec 2020 15:57:57 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A3FA6CA38;\n\tTue, 15 Dec 2020 15:57:55 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id CE5C2CA36\n for <dts@dpdk.org>; Tue, 15 Dec 2020 15:57:53 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Dec 2020 06:57:50 -0800",
            "from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39])\n by orsmga008.jf.intel.com with ESMTP; 15 Dec 2020 06:57:48 -0800"
        ],
        "IronPort-SDR": [
            "\n q8o5ZKbCrEceEUkeI0mD0Zo3aSBoH5mqsni9r9ZfbEtcliCt3yaoPe3K0JaPQQ9O2VqB+kaO41\n dadal7D5hD5w==",
            "\n BvmfVWaNWlgBZCtm8kN3rmwHX+KszcdbjmWkKZHNbcpU4IniNgyW5U8nD+GfrCxRjPNFpCt+m6\n 3y9IjowGHHSA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9836\"; a=\"162633982\"",
            "E=Sophos;i=\"5.78,421,1599548400\"; d=\"scan'208\";a=\"162633982\"",
            "E=Sophos;i=\"5.78,421,1599548400\"; d=\"scan'208\";a=\"368265298\""
        ],
        "X-ExtLoop1": "1",
        "From": "Yinan Wang <yinan.wang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Yinan Wang <yinan.wang@intel.com>",
        "Date": "Tue, 15 Dec 2020 18:46:04 -0500",
        "Message-Id": "<20201215234604.91346-1-yinan.wang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts]  [PATCH v1] test_plans/vhost_cbdma_test_plan.rst",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "Add one cbdma new case and optimize dynamic queue size test case.\n\nSigned-off-by: Yinan Wang <yinan.wang@intel.com>\n---\n test_plans/vhost_cbdma_test_plan.rst | 117 ++++++++++++++++++---------\n 1 file changed, 80 insertions(+), 37 deletions(-)",
    "diff": "diff --git a/test_plans/vhost_cbdma_test_plan.rst b/test_plans/vhost_cbdma_test_plan.rst\nindex b2230900..504b9aa0 100644\n--- a/test_plans/vhost_cbdma_test_plan.rst\n+++ b/test_plans/vhost_cbdma_test_plan.rst\n@@ -61,7 +61,7 @@ operations of queues:\n    otherwise, leverage librte_vhost to perform memory copy.\n \n Here is an example:\n- $ ./testpmd -c f -n 4 \\\n+ $ ./dpdk-testpmd -c f -n 4 \\\n    --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@80:04.0],dmathr=1024'\n \n Test Case 1: PVP Split all path with DMA-accelerated vhost enqueue\n@@ -73,14 +73,14 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n \n 1. Bind one cbdma port and one nic port to igb_uio, then launch vhost by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-3 --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@80:04.0],dmathr=1024' \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/s0,queues=1,dmas=[txq0@80:04.0],dmathr=1024' \\\n     -- -i --nb-cores=1 --txd=1024 --rxd=1024\n-     set fwd mac\n-     start\n+    >set fwd mac\n+    >start\n \n 2. Launch virtio-user with inorder mergeable path::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024\n     >set fwd mac\n@@ -95,7 +95,7 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n \n 4. Relaunch virtio-user with mergeable path, then repeat step 3::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=0,queues=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024\n     >set fwd mac\n@@ -103,15 +103,15 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n \n 5. Relaunch virtio-user with inorder non-mergeable path, then repeat step 3::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0in_order=1,queues=1 \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=1,queues=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024\n     >set fwd mac\n     >start\n \n 6. Relaunch virtio-user with non-mergeable path, then repeat step 3::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024\n     >set fwd mac\n@@ -119,7 +119,7 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n \n 7. Relaunch virtio-user with vector_rx path, then repeat step 3::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 \\\n     --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=0,in_order=0,queues=1 \\\n     -- -i --nb-cores=1 --txd=1024 --rxd=1024\n@@ -129,54 +129,97 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG\n Test Case2: Dynamic queue number test for DMA-accelerated vhost Tx operations\n =============================================================================\n \n-1. Bind two cbdma port and one nic port to igb_uio, then launch vhost by below command::\n+1. Bind four cbdma port and one nic port to igb_uio, then launch vhost by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 28-29  \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29  \\\n     --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/s0,queues=2,client=1,dmas=[txq0@80:04.5;txq1@80:04.6],dmathr=1024' \\\n     -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=2 --rxq=2\n-     set fwd mac\n-     start\n+    >set fwd mac\n+    >start\n \n-2. Launch virtio-user by below ccd ommand::\n+2. Launch virtio-user by below command::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=2,server=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 --txq=2 --rxq=2\n     >set fwd mac\n     >start\n \n-3. Send packets with packet size [64,1518] from packet generator with random ip, check perforamnce can get target and RX/TX can work normally in two queues.\n+3. Send packets with packet size [64,1518] from packet generator with random ip, check perforamnce can get target.\n \n-4. On virtio-user side, dynamic change rx queue numbers from 2 queue to 1 queues, then check one queue RX/TX can work normally::\n+4. Stop vhost port, check vhost RX and TX direction both exist packtes in two queues from vhost log.\n \n-     start\n-     stop\n-     port stop all\n-     port config all rxq 1\n-     port start all\n-     start\n+5. On virtio-user side, dynamic change rx queue numbers from 2 queue to 1 queues, then check one queue RX/TX can work normally::\n+\n+    testpmd>port stop all\n+    testpmd>port config all rxq 1\n+    testpmd>port config all txq 1\n+    testpmd>port start all\n+    testpmd>start\n+    testpmd>show port stats all\n \n-5. Relaunch virtio-user with queues=2, check RX/TX can work normally in two queues::\n+6. Relaunch virtio-user with 2 queues::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 30-31 --no-pci --file-prefix=virtio \\\n     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/s0,mrg_rxbuf=1,in_order=1,queues=2,server=1 \\\n     -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 --txq=2 --rxq=2\n     >set fwd mac\n     >start\n \n-4. On vhost side, dynamic change rx queue numbers from 2 queue to 1 queues, then check one queue RX/TX can work normally::\n+7. Send packets with packet size [64,1518] from packet generator with random ip, check perforamnce can get target.\n \n-     start\n-     stop\n-     port stop all\n-     port config all rxq 1\n-     port start all\n-     start\n+8. Stop vhost port, check vhost RX and TX direction both exist packtes in queue0 from vhost log.\n \n-6. Relaunch vhost with another two cbdma channels, check perforamnce can get target and RX/TX can work normally in two queueus::\n+9. On vhost side, dynamic change rx queue numbers from 2 queue to 1 queues, then check one queue RX/TX can work normally::\n \n-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 28-29  \\\n-    --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/s0,queues=2,client=1,dmas=[txq0@80:04.0],dmathr=512' \\\n+    testpmd>port stop all\n+    testpmd>port config all rxq 1\n+    testpmd>port config all txq 1\n+    testpmd>port start all\n+    testpmd>start\n+    testpmd>show port stats all\n+\n+10. Relaunch vhost with another two cbdma channels and 2 queueus, check perforamnce can get target::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 28-29  \\\n+    --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/s0,queues=2,client=1,dmas=[txq0@00:04.5;txq1@00:04.6],dmathr=512' \\\n     -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txq=2 --rxq=2\n     >set fwd mac\n-    >start\n\\ No newline at end of file\n+    >start\n+\n+11. Stop vhost port, check vhost RX and TX direction both exist packtes in two queues from vhost log.\n+\n+Test Case3: CBDMA threshold value check\n+========================================\n+\n+1. Bind four cbdma port to igb_uio, then launch vhost by below command::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 \\\n+    --vdev 'eth_vhost0,iface=vhost-net,queues=2,client=1,dmas=[txq0@80:04.0;txq1@80:04.1],dmathr=512' --vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@80:04.2;txq1@80:04.3],dmathr=4096' -- \\\n+    -i --nb-cores=1 --rxq=2 --txq=2\n+    >start\n+\n+2. Launch virtio-user1::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 7-8 \\\n+    --no-pci --file-prefix=virtio1 \\\n+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=0,queue_size=4096 \\\n+    -- -i --nb-cores=1 --rxq=2 --txq=2\n+    >start\n+\n+3. Launch virtio-user0::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 \\\n+    --no-pci --file-prefix=virtio \\\n+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=0,queue_size=4096 \\\n+    -- -i --nb-cores=1 --rxq=2 --txq=2\n+    >start\n+  \n+4. Check the cbdma threshold value for each vhost port can be config correct from vhost log::\n+\n+    dma parameters: vid0,qid0,dma*,threshold:512\n+    dma parameters: vid0,qid2,dma*,threshold:512\n+    dma parameters: vid1,qid0,dma*,threshold:4096\n+    dma parameters: vid1,qid2,dma*,threshold:4096\n+\n+\n",
    "prefixes": [
        "v1"
    ]
}