get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103137,
    "url": "http://patches.dpdk.org/api/patches/103137/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20211028180239.4645-1-zhiminx.huang@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": "<20211028180239.4645-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211028180239.4645-1-zhiminx.huang@intel.com",
    "date": "2021-10-28T18:02:39",
    "name": "[V1] iavf_flexible_descriptor:sync plan and case to adapt dpdk code changed",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "7c202a08c4614e6e768d1d10a94914a7ce8cc9c9",
    "submitter": {
        "id": 1685,
        "url": "http://patches.dpdk.org/api/people/1685/?format=api",
        "name": "Huang, ZhiminX",
        "email": "zhiminx.huang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20211028180239.4645-1-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 20086,
            "url": "http://patches.dpdk.org/api/series/20086/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=20086",
            "date": "2021-10-28T18:02:39",
            "name": "[V1] iavf_flexible_descriptor:sync plan and case to adapt dpdk code changed",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/20086/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/103137/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/103137/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 EEE33A0547;\n\tThu, 28 Oct 2021 11:33:06 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E0CF94067B;\n\tThu, 28 Oct 2021 11:33:06 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id E7FCD4003F\n for <dts@dpdk.org>; Thu, 28 Oct 2021 11:33:04 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Oct 2021 02:33:04 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Oct 2021 02:33:02 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10150\"; a=\"229117804\"",
            "E=Sophos;i=\"5.87,189,1631602800\"; d=\"scan'208\";a=\"229117804\"",
            "E=Sophos;i=\"5.87,189,1631602800\"; d=\"scan'208\";a=\"636149293\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Fri, 29 Oct 2021 02:02:39 +0800",
        "Message-Id": "<20211028180239.4645-1-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] iavf_flexible_descriptor:sync plan and case to\n adapt dpdk code changed",
        "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": "according to dpdk commit daa02b5cddbb8e11b31d41e2bf7bb1ae64dcae2f code changed.\nfix code to adapt dpdk changed,and add check function after modify code in case.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n .../iavf_flexible_descriptor_test_plan.rst    |  2 +-\n tests/TestSuite_iavf_flexible_descriptor.py   | 23 ++++++++++++++++++-\n 2 files changed, 23 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/test_plans/iavf_flexible_descriptor_test_plan.rst b/test_plans/iavf_flexible_descriptor_test_plan.rst\nindex d03fbe41..9cf0d713 100644\n--- a/test_plans/iavf_flexible_descriptor_test_plan.rst\n+++ b/test_plans/iavf_flexible_descriptor_test_plan.rst\n@@ -106,7 +106,7 @@ The default DPDK don't support dump flexible descriptor fields, so need to patch\n       (int)mb->nb_segs);\n       ol_flags = mb->ol_flags;\n       +                rte_pmd_ifd_dump_proto_xtr_metadata(mb);\n-      if (ol_flags & PKT_RX_RSS_HASH) {\n+      if (ol_flags & RTE_MBUF_F_RX_RSS_HASH) {\n       MKDUMPSTR(print_buf, buf_size, cur_len,\n       \" - RSS hash=0x%x\",\n \ndiff --git a/tests/TestSuite_iavf_flexible_descriptor.py b/tests/TestSuite_iavf_flexible_descriptor.py\nindex 721dbb53..2da892c1 100644\n--- a/tests/TestSuite_iavf_flexible_descriptor.py\n+++ b/tests/TestSuite_iavf_flexible_descriptor.py\n@@ -51,11 +51,32 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase):\n             \"cp ./app/test-pmd/util.c .\",\n             r\"\"\"sed -i \"/if dpdk_conf.has('RTE_NET_IXGBE')/i\\if dpdk_conf.has('RTE_NET_ICE')\\n\\tdeps += ['net_ice', 'net_iavf']\\nendif\" app/test-pmd/meson.build\"\"\",\n             \"sed -i '/#include <rte_flow.h>/a\\#include <rte_pmd_iavf.h>' app/test-pmd/util.c\",\n-            \"sed -i '/if (ol_flags & PKT_RX_RSS_HASH)/i\\                rte_pmd_ifd_dump_proto_xtr_metadata(mb);' app/test-pmd/util.c\",\n+            \"sed -i '/if (ol_flags & RTE_MBUF_F_RX_RSS_HASH)/i\\                rte_pmd_ifd_dump_proto_xtr_metadata(mb);' app/test-pmd/util.c\",\n         ]\n         [self.dut.send_expect(cmd, \"#\", 15, alt_session=True) for cmd in cmds]\n+        check_point = {\n+            \"app/test-pmd/meson.build\": [\n+                \"deps += ['net_ice', 'net_iavf']\",\n+                \"if dpdk_conf.has('RTE_NET_ICE')\"\n+            ],\n+            \"app/test-pmd/util.c\": [\n+                \"#include <rte_pmd_iavf.h>\",\n+                \"rte_pmd_ifd_dump_proto_xtr_metadata(mb);\"\n+            ]\n+        }\n+        for path, cmds in check_point.items():\n+            for cmd in cmds:\n+                self.check_modify_dpdk_code(cmd, path)\n         self.dut.build_install_dpdk(self.dut.target)\n \n+    def check_modify_dpdk_code(self, cmd, path):\n+        \"\"\"\n+        check dpdk code modify successful\n+        \"\"\"\n+        check_cmd = \"\"\"grep \"{}\" {}\"\"\".format(cmd, path)\n+        out = self.dut.send_expect(check_cmd, \"# \", 15, alt_session=True, trim_whitespace=False)\n+        self.verify(out, \"The dpdk code not changed\")\n+\n     def restore_compilation(self):\n         \"\"\"\n          Resume editing operation.\n",
    "prefixes": [
        "V1"
    ]
}