get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 91265,
    "url": "https://patches.dpdk.org/api/patches/91265/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-5-qi.z.zhang@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210413143038.2621294-5-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210413143038.2621294-5-qi.z.zhang@intel.com",
    "date": "2021-04-13T14:30:28",
    "name": "[v3,04/14] net/ice/base: remove unused ptype field in PTT definition",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7e80cc0a4fcb6abf6bfcc8397527c63213666a72",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-5-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 16337,
            "url": "https://patches.dpdk.org/api/series/16337/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16337",
            "date": "2021-04-13T14:30:24",
            "name": "ice: base code update batch 2",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/16337/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/91265/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/91265/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-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 6B354A0524;\n\tTue, 13 Apr 2021 16:27:22 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3EFAD161054;\n\tTue, 13 Apr 2021 16:27:05 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 01CE016104D\n for <dev@dpdk.org>; Tue, 13 Apr 2021 16:27:02 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2021 07:27:02 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 13 Apr 2021 07:27:00 -0700"
        ],
        "IronPort-SDR": [
            "\n yTiGnFb7ebzNOzRHzREa/y/XvGtUsqGCfhN+KY2h48qSI6HwpL7OIT7YFKZrtWQ8/eWTc8r7Fi\n CORFx/xPUdcQ==",
            "\n FsXZ4wInlLH3dVds/9U0KdLGY4hyhkP4qIN0j+rIAK5I2GpDLtbV7f2HFLl3oAOHNLcoE9ZTK0\n 8TYN67hN2FqA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,9953\"; a=\"214904209\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"214904209\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"417875147\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Jesse Brandeburg <jesse.brandeburg@intel.com>",
        "Date": "Tue, 13 Apr 2021 22:30:28 +0800",
        "Message-Id": "<20210413143038.2621294-5-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20210413143038.2621294-1-qi.z.zhang@intel.com>",
        "References": "<20210329141411.2395069-1-qi.z.zhang@intel.com>\n <20210413143038.2621294-1-qi.z.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 04/14] net/ice/base: remove unused ptype field\n in PTT definition",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Remove the unused ptype entry, and use the gcc extension for\nranged initializers in arrays for Linux, and explicitly target\neach table entry by index when initializing under Linux.\n\nSigned-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nAcked-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/base/ice_lan_tx_rx.h | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_lan_tx_rx.h b/drivers/net/ice/base/ice_lan_tx_rx.h\nindex e24a1bb767..696c6a30ae 100644\n--- a/drivers/net/ice/base/ice_lan_tx_rx.h\n+++ b/drivers/net/ice/base/ice_lan_tx_rx.h\n@@ -296,7 +296,6 @@ enum ice_rx_l2_ptype {\n };\n \n struct ice_rx_ptype_decoded {\n-\tu32 ptype:10;\n \tu32 known:1;\n \tu32 outer_ip:1;\n \tu32 outer_ip_ver:2;\n@@ -1217,8 +1216,7 @@ struct ice_tx_drbell_q_ctx {\n \n /* macro to make the table lines short */\n #define ICE_PTT(PTYPE, OUTER_IP, OUTER_IP_VER, OUTER_FRAG, T, TE, TEF, I, PL)\\\n-\t{\tPTYPE, \\\n-\t\t1, \\\n+\t{\t1, \\\n \t\tICE_RX_PTYPE_OUTER_##OUTER_IP, \\\n \t\tICE_RX_PTYPE_OUTER_##OUTER_IP_VER, \\\n \t\tICE_RX_PTYPE_##OUTER_FRAG, \\\n@@ -1228,14 +1226,14 @@ struct ice_tx_drbell_q_ctx {\n \t\tICE_RX_PTYPE_INNER_PROT_##I, \\\n \t\tICE_RX_PTYPE_PAYLOAD_LAYER_##PL }\n \n-#define ICE_PTT_UNUSED_ENTRY(PTYPE) { PTYPE, 0, 0, 0, 0, 0, 0, 0, 0, 0 }\n+#define ICE_PTT_UNUSED_ENTRY(PTYPE) { 0, 0, 0, 0, 0, 0, 0, 0, 0 }\n \n /* shorter macros makes the table fit but are terse */\n #define ICE_RX_PTYPE_NOF\t\tICE_RX_PTYPE_NOT_FRAG\n #define ICE_RX_PTYPE_FRG\t\tICE_RX_PTYPE_FRAG\n \n-/* Lookup table mapping the HW PTYPE to the bit field for decoding */\n-static const struct ice_rx_ptype_decoded ice_ptype_lkup[] = {\n+/* Lookup table mapping the 10-bit HW PTYPE to the bit field for decoding */\n+static const struct ice_rx_ptype_decoded ice_ptype_lkup[1024] = {\n \t/* L2 Packet types */\n \tICE_PTT_UNUSED_ENTRY(0),\n \tICE_PTT(1, L2, NONE, NOF, NONE, NONE, NOF, NONE, PAY2),\n",
    "prefixes": [
        "v3",
        "04/14"
    ]
}