get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83939,
    "url": "http://patches.dpdk.org/api/patches/83939/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20201111062701.36217-2-yingyax.han@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": "<20201111062701.36217-2-yingyax.han@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201111062701.36217-2-yingyax.han@intel.com",
    "date": "2020-11-11T06:26:59",
    "name": "[V1,1/3] test_plans: add vf single core test plan",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "870e4b0d18bc38a17621a653ab2cf4a5edbdb7fe",
    "submitter": {
        "id": 1645,
        "url": "http://patches.dpdk.org/api/people/1645/?format=api",
        "name": "Yingya Han",
        "email": "yingyax.han@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20201111062701.36217-2-yingyax.han@intel.com/mbox/",
    "series": [
        {
            "id": 13796,
            "url": "http://patches.dpdk.org/api/series/13796/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=13796",
            "date": "2020-11-11T06:26:58",
            "name": "add vf single core perf test suite",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/13796/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/83939/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/83939/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 7A4C4A09D2;\n\tWed, 11 Nov 2020 07:31:25 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 748A737B4;\n\tWed, 11 Nov 2020 07:31:24 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 675562BAB\n for <dts@dpdk.org>; Wed, 11 Nov 2020 07:31:21 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Nov 2020 22:31:19 -0800",
            "from dpdk-lijuan-purley2.sh.intel.com ([10.67.119.168])\n by fmsmga008.fm.intel.com with ESMTP; 10 Nov 2020 22:31:18 -0800"
        ],
        "IronPort-SDR": [
            "\n w0DWcHuHOpapiysHA53BP9Ca20mYq/AxpXQZvdBvFICf/vvt7tw25gufrvxUS/R8LR9NdXdtRi\n Afc8BJYFoJqQ==",
            "\n yCSf7hioV2cDkRZkJJYCQrqKwaSVV90aI2IRmmbax6pFKIdd9iN7qnGrSAUm47oZJhLqzcyt7x\n ChP4x7tcDoXg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9801\"; a=\"149951482\"",
            "E=Sophos;i=\"5.77,468,1596524400\"; d=\"scan'208\";a=\"149951482\"",
            "E=Sophos;i=\"5.77,468,1596524400\"; d=\"scan'208\";a=\"308345733\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "hanyingya <yingyax.han@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "hanyingya <yingyax.han@intel.com>",
        "Date": "Wed, 11 Nov 2020 14:26:59 +0800",
        "Message-Id": "<20201111062701.36217-2-yingyax.han@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201111062701.36217-1-yingyax.han@intel.com>",
        "References": "<20201111062701.36217-1-yingyax.han@intel.com>",
        "Subject": "[dts] [PATCH V1 1/3]test_plans: add vf single core test plan",
        "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": "Signed-off-by: hanyingya <yingyax.han@intel.com>\n---\n test_plans/vf_single_core_perf_test_plan.rst | 122 +++++++++++++++++++\n 1 file changed, 122 insertions(+)\n create mode 100644 test_plans/vf_single_core_perf_test_plan.rst",
    "diff": "diff --git a/test_plans/vf_single_core_perf_test_plan.rst b/test_plans/vf_single_core_perf_test_plan.rst\nnew file mode 100644\nindex 00000000..53cf304a\n--- /dev/null\n+++ b/test_plans/vf_single_core_perf_test_plan.rst\n@@ -0,0 +1,122 @@\n+.. Copyright (c) <2020>, Intel Corporation\n+   All rights reserved.\n+   \n+   Redistribution and use in source and binary forms, with or without\n+   modification, are permitted provided that the following conditions\n+   are met:\n+   \n+   - Redistributions of source code must retain the above copyright\n+     notice, this list of conditions and the following disclaimer.\n+   \n+   - Redistributions in binary form must reproduce the above copyright\n+     notice, this list of conditions and the following disclaimer in\n+     the documentation and/or other materials provided with the\n+     distribution.\n+   \n+   - Neither the name of Intel Corporation nor the names of its\n+     contributors may be used to endorse or promote products derived\n+     from this software without specific prior written permission.\n+   \n+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n+   OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+======================================================\n+Benchmark the performance of VF single core forwarding\n+======================================================\n+\n+Prerequisites\n+=============\n+\n+1.  Nic single core performance test requirements:\n+\n+    1.1) FVL25G: two dual port FVL25G nics, all installed on the same socket,\n+                 pick one port per nic.\n+    1.2) NNT10G: four 82599 nics, all installed on the same socket,\n+                 pick one port per nic.\n+    1.3) CVL100G: one CVL100G nics, all installed on the same socket,\n+                 pick one port per nic.\n+\n+2. Software::\n+\n+    dpdk: git clone http://dpdk.org/git/dpdk\n+    scapy: http://www.secdev.org/projects/scapy/\n+    dts (next branch): git clone http://dpdk.org/git/tools/dts, \n+                       then \"git checkout next\" \n+    Trex code: http://trex-tgn.cisco.com/trex/release/v2.84.tar.gz \n+               (to be run in stateless Layer 2 mode, see section in\n+                Getting Started Guide for more details)\n+    python-prettytable:\n+        apt install python-prettytable (for ubuntu os) \n+        or dnf install python-prettytable (for fedora os). \n+\n+3. Connect all the selected nic ports to traffic generator(IXIA,TREX,\n+   PKTGEN) ports(TG ports)::\n+\n+    2 TG 25g  ports for FVL25G ports\n+    4 TG 10g  ports for 4 NNT10G ports\n+    1 TG 100g ports for CVL100G port\n+\n+Test Case : Vf Single Core Performance Measurement\n+==================================================\n+\n+1. Bind PF ports to kernel driver, i40e/ixgbe/ice, then create 1 VF from each PF,\n+   take XXV710 for example::\n+\n+    echo 1 > /sys/bus/pci/devices/0000\\:af\\:00.0/sriov_numvfs\n+    echo 1 > /sys/bus/pci/devices/0000\\:b1\\:00.1/sriov_numvfs\n+\n+2. Set vf mac address::\n+\n+    ip link set ens5f0 vf 0 mac 00:12:34:56:78:01\n+    ip link set ens6f0 vf 0 mac 00:12:34:56:78:02\n+\n+3. Bind all the created VFs to dpdk driver, vfio-pci or igb_uio::\n+\n+    ./usertools/dpdk-devbind.py -b vfio-pci af:02.0 b1:02.0\n+\n+4. Start testpmd::\n+\n+    ./dpdk-testpmd -l 28,29 -n 4 -- -i --portmask=0x3  --txd=512 --rxd=512 \\\n+    --txq=2 --rxq=2 --nb-cores=1\n+\n+    testpmd> set fwd mac\n+    testpmd> start\n+\n+5. Configure traffic generator to send traffic::\n+\n+    dst mac: peer nic port mac\n+    src ip : random\n+    dst ip : fixed\n+    frame size: 64 byte\n+    transmit rate: 100%\n+\n+6. Result tables.\n+\n+   +-----------+------------+---------+-------------+---------+---------------------+\n+   |  Fwd_core | Frame Size | TXD/RXD |  Throughput |   Rate  | Expected Throughput |\n+   +===========+============+=========+=============+=========+=====================+\n+   |  1C/1T    |    64      |   512   |  xxxxx Mpps |   xxx % |  xxxxxxx   Mpps     |\n+   +-----------+------------+---------+-------------+---------+---------------------+\n+   |  1C/1T    |    64      |   2048  |  xxxxx Mpps |   xxx % |  xxxxxxx   Mpps     |\n+   +-----------+------------+---------+-------------+---------+---------------------+\n+   |  1C/2T    |    64      |   512   |  xxxxx Mpps |   xxx % |  xxxxxxx   Mpps     |\n+   +-----------+------------+---------+-------------+---------+---------------------+\n+   |  1C/2T    |    64      |   2048  |  xxxxx Mpps |   xxx % |  xxxxxxx   Mpps     |\n+   +-----------+------------+---------+-------------+---------+---------------------+\n+\n+  Check throughput and compare it with the expected value. Case will raise failure \n+  if actual throughputs have more than 1Mpps gap from expected ones.\n+\n+Note : \n+   The values for the expected throughput may vary due to different platform and OS, \n+   and traffic generator, please correct threshold values accordingly. \n",
    "prefixes": [
        "V1",
        "1/3"
    ]
}