get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 98171,
    "url": "https://patches.dpdk.org/api/patches/98171/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210907193714.16028-2-zhiminx.huang@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210907193714.16028-2-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210907193714.16028-2-zhiminx.huang@intel.com",
    "date": "2021-09-07T19:37:11",
    "name": "[V2,1/4] test_plans/kernelpf_iavf_test_plan:add case in plan",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "42e7e5f28bad4fcbc08b3ba4e014204d7ffeea19",
    "submitter": {
        "id": 1685,
        "url": "https://patches.dpdk.org/api/people/1685/?format=api",
        "name": "Huang, ZhiminX",
        "email": "zhiminx.huang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210907193714.16028-2-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 18735,
            "url": "https://patches.dpdk.org/api/series/18735/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=18735",
            "date": "2021-09-07T19:37:10",
            "name": "add plan and case",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/18735/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/98171/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/98171/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 2846BA0C41;\n\tTue,  7 Sep 2021 13:05:51 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1F0544116F;\n\tTue,  7 Sep 2021 13:05:51 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 799FD410EC\n for <dts@dpdk.org>; Tue,  7 Sep 2021 13:05:49 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Sep 2021 04:05:49 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Sep 2021 04:05:47 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10099\"; a=\"220194141\"",
            "E=Sophos;i=\"5.85,274,1624345200\"; d=\"scan'208\";a=\"220194141\"",
            "E=Sophos;i=\"5.85,274,1624345200\"; d=\"scan'208\";a=\"469154246\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Wed,  8 Sep 2021 03:37:11 +0800",
        "Message-Id": "<20210907193714.16028-2-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210907193714.16028-1-zhiminx.huang@intel.com>",
        "References": "<20210907193714.16028-1-zhiminx.huang@intel.com>",
        "Subject": "[dts] [PATCH V2 1/4] test_plans/kernelpf_iavf_test_plan:add case in\n plan",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "add some new test point in plan:\nkernelpf_iavf:\n add remove mac test.\n add check rss reta changed.\n add rss hash key test.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n test_plans/kernelpf_iavf_test_plan.rst | 94 +++++++++++++++++++++++---\n 1 file changed, 85 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst\nindex 31ba975..2b5a785 100644\n--- a/test_plans/kernelpf_iavf_test_plan.rst\n+++ b/test_plans/kernelpf_iavf_test_plan.rst\n@@ -105,6 +105,27 @@ packets can be received and forwarded by the VF::\n Use scapy to send 100 random packets with a wrong MAC to VF0, verify the\n packets can't be received by the VF.\n \n+Remove the MAC 00:11:22:33:44:55::\n+\n+    testpmd> mac_addr remove 0 00:11:22:33:44:55\n+\n+Use scapy to send 100 random packets with removed VF0's MAC, verify the\n+packets can't be received and forwarded by the VF::\n+\n+Set the default mac address to other mac, check the mac address has be changed\n+to new set mac::\n+\n+    testpmd> mac_addr set 0 00:01:23:45:67:11\n+    testpmd> show port info 0\n+\n+Use scapy to send 100 random packets with original VF0's MAC, verify the\n+packets can't be received and forwarded by the VF\n+\n+Use scapy to send 100 random packets with new set VF0's MAC, verify the\n+packets can be received and forwarded by the VF\n+\n+Reset to original mac address\n+\n Note::\n     Not set VF MAC from kernel PF for this case, if set, will print\n     \"not permitted error\" when add new MAC for VF.\n@@ -350,17 +371,35 @@ Start command with multi-queues like below::\n \n    ./testpmd -c f -n 4 -- -i --txq=4 --rxq=4\n \n+Show RSS RETA configuration::\n+\n+    testpmd> show port 0 rss reta 64 (0xffffffffffffffff)\n+\n+    RSS RETA configuration: hash index=0, queue=0\n+    RSS RETA configuration: hash index=1, queue=1\n+    RSS RETA configuration: hash index=2, queue=2\n+    RSS RETA configuration: hash index=3, queue=3\n+    ...\n+    RSS RETA configuration: hash index=60, queue=0\n+    RSS RETA configuration: hash index=61, queue=1\n+    RSS RETA configuration: hash index=62, queue=2\n+    RSS RETA configuration: hash index=63, queue=3\n+\n Config hash reta table::\n \n-  testpmd> port config 0 rss reta (0,0)\n-  testpmd> port config 0 rss reta (1,1)\n-  testpmd> port config 0 rss reta (2,2)\n-  testpmd> port config 0 rss reta (3,3)\n-  ...\n-  testpmd> port config 0 rss reta (60,0)\n-  testpmd> port config 0 rss reta (61,1)\n-  testpmd> port config 0 rss reta (62,2)\n-  testpmd> port config 0 rss reta (63,3)\n+    testpmd> port config 0 rss reta (0,3)\n+    testpmd> port config 0 rss reta (1,2)\n+    testpmd> port config 0 rss reta (2,1)\n+    testpmd> port config 0 rss reta (3,0)\n+\n+Check RSS RETA configuration has changed::\n+\n+    testpmd> show port 0 rss reta 64 (0xffffffffffffffff)\n+\n+    RSS RETA configuration: hash index=0, queue=3\n+    RSS RETA configuration: hash index=1, queue=2\n+    RSS RETA configuration: hash index=2, queue=2\n+    RSS RETA configuration: hash index=3, queue=1\n \n Enable IP/TCP/UDP RSS::\n \n@@ -369,6 +408,43 @@ Enable IP/TCP/UDP RSS::\n Send different flow types' IP/TCP/UDP packets to VF port, check packets are\n received by different configured queues.\n \n+Test case: VF RSS hash key\n+==========================\n+\n+Start command with multi-queues like below::\n+\n+   ./testpmd -c f -n 4 -- -i --txq=4 --rxq=4\n+\n+Show port rss hash key::\n+\n+    testpmd> show port 0 rss-hash key\n+\n+Set rxonly fwd, enable print, start testpmd::\n+\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+Send ipv4 packets, mark the RSS hash value::\n+\n+    p=Ether(dst=\"56:0A:EC:50:A4:28\")/IP(src=\"1.2.3.4\")/Raw(load='X'*30)\n+\n+Update ipv4 different hash key::\n+\n+    testpmd> port config 0 rss-hash-key ipv4 1b9d58a4b961d9cd1c56ad1621c3ad51632c16a5d16c21c3513d132c135d132c13ad1531c23a51d6ac49879c499d798a7d949c8a\n+\n+Show port rss hash key, check the key is same to configured key::\n+\n+    testpmd> show port 0 rss-hash key\n+    RSS functions:\n+     all ipv4 ipv6 ip\n+    RSS key:\n+    1B9D58A4B961D9CD1C56AD1621C3AD51632C16A5D16C21C3513D132C135D132C13AD1531C23A51D6AC49879C499D798A7D949C8A\n+\n+Send ipv4 packets, check RSS hash value is different::\n+\n+    p=Ether(dst=\"56:0A:EC:50:A4:28\")/IP(src=\"1.2.3.4\")/Raw(load='X'*30)\n+\n \n Test case: VF HW checksum offload\n =================================\n",
    "prefixes": [
        "V2",
        "1/4"
    ]
}