get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 29408,
    "url": "https://patches.dpdk.org/api/patches/29408/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1506662342-18966-2-git-send-email-beilei.xing@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": "<1506662342-18966-2-git-send-email-beilei.xing@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1506662342-18966-2-git-send-email-beilei.xing@intel.com",
    "date": "2017-09-29T05:18:55",
    "name": "[dpdk-dev,v6,1/8] mbuf: support GTP in software packet type parser",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4d189e9a0fbcd00a145fc342045cbb695f12dd8e",
    "submitter": {
        "id": 410,
        "url": "https://patches.dpdk.org/api/people/410/?format=api",
        "name": "Xing, Beilei",
        "email": "beilei.xing@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1506662342-18966-2-git-send-email-beilei.xing@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/29408/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/29408/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 3F8561B1A1;\n\tFri, 29 Sep 2017 07:19:56 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 8AC0158C6\n\tfor <dev@dpdk.org>; Fri, 29 Sep 2017 07:19:47 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Sep 2017 22:19:45 -0700",
            "from unknown (HELO dpdk9.sh.intel.com) ([10.67.118.52])\n\tby fmsmga002.fm.intel.com with ESMTP; 28 Sep 2017 22:19:44 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.42,451,1500966000\"; d=\"scan'208\";\n\ta=\"1225073089\"",
        "From": "Beilei Xing <beilei.xing@intel.com>",
        "To": "jingjing.wu@intel.com",
        "Cc": "andrey.chilikin@intel.com,\n\tdev@dpdk.org",
        "Date": "Fri, 29 Sep 2017 13:18:55 +0800",
        "Message-Id": "<1506662342-18966-2-git-send-email-beilei.xing@intel.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1506662342-18966-1-git-send-email-beilei.xing@intel.com>",
        "References": "<1506565054-67690-1-git-send-email-beilei.xing@intel.com>\n\t<1506662342-18966-1-git-send-email-beilei.xing@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 1/8] mbuf: support GTP in software packet type\n\tparser",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add support of GTP-C and GTP-U tunnels in rte_net_get_ptype().\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nAcked-by: Olivier Matz <olivier.matz@6wind.com>\n---\n lib/librte_mbuf/rte_mbuf_ptype.c |  2 ++\n lib/librte_mbuf/rte_mbuf_ptype.h | 24 ++++++++++++++++++++++++\n 2 files changed, 26 insertions(+)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c\nindex e5c4fae..a450814 100644\n--- a/lib/librte_mbuf/rte_mbuf_ptype.c\n+++ b/lib/librte_mbuf/rte_mbuf_ptype.c\n@@ -89,6 +89,8 @@ const char *rte_get_ptype_tunnel_name(uint32_t ptype)\n \tcase RTE_PTYPE_TUNNEL_NVGRE: return \"TUNNEL_NVGRE\";\n \tcase RTE_PTYPE_TUNNEL_GENEVE: return \"TUNNEL_GENEVE\";\n \tcase RTE_PTYPE_TUNNEL_GRENAT: return \"TUNNEL_GRENAT\";\n+\tcase RTE_PTYPE_TUNNEL_GTPC: return \"TUNNEL_GTPC\";\n+\tcase RTE_PTYPE_TUNNEL_GTPU: return \"TUNNEL_GTPU\";\n \tdefault: return \"TUNNEL_UNKNOWN\";\n \t}\n }\ndiff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h\nindex acd70bb..eb7cd2c 100644\n--- a/lib/librte_mbuf/rte_mbuf_ptype.h\n+++ b/lib/librte_mbuf/rte_mbuf_ptype.h\n@@ -383,6 +383,30 @@ extern \"C\" {\n  */\n #define RTE_PTYPE_TUNNEL_GRENAT             0x00006000\n /**\n+ * GTP-C (GPRS Tunnelling Protocol) control tunneling packet type.\n+ * Packet format:\n+ * <'ether type'=0x0800\n+ * | 'version'=4, 'protocol'=17\n+ * | 'destination port'=2123>\n+ * or,\n+ * <'ether type'=0x86DD\n+ * | 'version'=6, 'next header'=17\n+ * | 'destination port'=2123>\n+ */\n+#define RTE_PTYPE_TUNNEL_GTPC               0x00007000\n+/**\n+ * GTP-U (GPRS Tunnelling Protocol) user data tunneling packet type.\n+ * Packet format:\n+ * <'ether type'=0x0800\n+ * | 'version'=4, 'protocol'=17\n+ * | 'destination port'=2152>\n+ * or,\n+ * <'ether type'=0x86DD\n+ * | 'version'=6, 'next header'=17\n+ * | 'destination port'=2152>\n+ */\n+#define RTE_PTYPE_TUNNEL_GTPU               0x00008000\n+/**\n  * Mask of tunneling packet types.\n  */\n #define RTE_PTYPE_TUNNEL_MASK               0x0000f000\n",
    "prefixes": [
        "dpdk-dev",
        "v6",
        "1/8"
    ]
}