get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54695,
    "url": "http://patches.dpdk.org/api/patches/54695/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190611155221.2703-37-leyi.rong@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20190611155221.2703-37-leyi.rong@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190611155221.2703-37-leyi.rong@intel.com",
    "date": "2019-06-11T15:51:51",
    "name": "[v2,36/66] net/ice/base: correct UDP/TCP PTYPE assignments",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c9d8923a68c818da102d20c6aa90afb67333ccd8",
    "submitter": {
        "id": 1204,
        "url": "http://patches.dpdk.org/api/people/1204/?format=api",
        "name": "Leyi Rong",
        "email": "leyi.rong@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190611155221.2703-37-leyi.rong@intel.com/mbox/",
    "series": [
        {
            "id": 4981,
            "url": "http://patches.dpdk.org/api/series/4981/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4981",
            "date": "2019-06-11T15:51:15",
            "name": "shared code update",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4981/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54695/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54695/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D916F1C585;\n\tTue, 11 Jun 2019 17:55:05 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 8BB4B1C2DF\n\tfor <dev@dpdk.org>; Tue, 11 Jun 2019 17:54:22 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Jun 2019 08:54:22 -0700",
            "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby orsmga001.jf.intel.com with ESMTP; 11 Jun 2019 08:54:21 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Leyi Rong <leyi.rong@intel.com>",
        "To": "qi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tVignesh Sridhar <vignesh.sridhar@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>",
        "Date": "Tue, 11 Jun 2019 23:51:51 +0800",
        "Message-Id": "<20190611155221.2703-37-leyi.rong@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190611155221.2703-1-leyi.rong@intel.com>",
        "References": "<20190604054248.68510-1-leyi.rong@intel.com>\n\t<20190611155221.2703-1-leyi.rong@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 36/66] net/ice/base: correct UDP/TCP PTYPE\n\tassignments",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "1. Using the UDP-IL PTYPEs when processing packet segments as it contains\nall PTYPEs with UDP and allow packets to be forwarded to associated VSIs\nas switch rules are based on outer IPs.\n2. Add PTYPE 0x088 to TCP PTYPE bitmap list.\n\nSigned-off-by: Vignesh Sridhar <vignesh.sridhar@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/ice/base/ice_flow.c | 23 ++++++-----------------\n 1 file changed, 6 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex 1ec49fcd9..36657a1a3 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -195,21 +195,11 @@ static const u32 ice_ptypes_arp_of[] = {\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n };\n \n-/* Packet types for packets with an Outermost/First UDP header */\n-static const u32 ice_ptypes_udp_of[] = {\n-\t0x81000000, 0x00000000, 0x04000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n-};\n-\n-/* Packet types for packets with an Innermost/Last UDP header */\n+/* UDP Packet types for non-tunneled packets or tunneled\n+ * packets with inner UDP.\n+ */\n static const u32 ice_ptypes_udp_il[] = {\n-\t0x80000000, 0x20204040, 0x00081010, 0x80810102,\n+\t0x81000000, 0x20204040, 0x04081010, 0x80810102,\n \t0x00204040, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n@@ -222,7 +212,7 @@ static const u32 ice_ptypes_udp_il[] = {\n /* Packet types for packets with an Innermost/Last TCP header */\n static const u32 ice_ptypes_tcp_il[] = {\n \t0x04000000, 0x80810102, 0x10204040, 0x42040408,\n-\t0x00810002, 0x00000000, 0x00000000, 0x00000000,\n+\t0x00810102, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n@@ -473,8 +463,7 @@ ice_flow_proc_seg_hdrs(struct ice_flow_prof_params *params)\n \t\t\t\t       ICE_FLOW_PTYPE_MAX);\n \t\t\thdrs &= ~ICE_FLOW_SEG_HDR_ICMP;\n \t\t} else if (hdrs & ICE_FLOW_SEG_HDR_UDP) {\n-\t\t\tsrc = !i ? (const ice_bitmap_t *)ice_ptypes_udp_of :\n-\t\t\t\t(const ice_bitmap_t *)ice_ptypes_udp_il;\n+\t\t\tsrc = (const ice_bitmap_t *)ice_ptypes_udp_il;\n \t\t\tice_and_bitmap(params->ptypes, params->ptypes, src,\n \t\t\t\t       ICE_FLOW_PTYPE_MAX);\n \t\t\thdrs &= ~ICE_FLOW_SEG_HDR_UDP;\n",
    "prefixes": [
        "v2",
        "36/66"
    ]
}