get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 29631,
    "url": "http://patches.dpdk.org/api/patches/29631/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1507191297-122088-2-git-send-email-beilei.xing@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": "<1507191297-122088-2-git-send-email-beilei.xing@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1507191297-122088-2-git-send-email-beilei.xing@intel.com",
    "date": "2017-10-05T08:14:51",
    "name": "[dpdk-dev,v8,1/7] mbuf: support GTP in software packet type parser",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4e1dad90b438d28ee69903730ebda80d76783972",
    "submitter": {
        "id": 410,
        "url": "http://patches.dpdk.org/api/people/410/?format=api",
        "name": "Xing, Beilei",
        "email": "beilei.xing@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1507191297-122088-2-git-send-email-beilei.xing@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/29631/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/29631/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 A15DE1B198;\n\tThu,  5 Oct 2017 10:16:38 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 121517D4E\n\tfor <dev@dpdk.org>; Thu,  5 Oct 2017 10:16:34 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Oct 2017 01:16:13 -0700",
            "from unknown (HELO dpdk9.sh.intel.com) ([10.67.118.52])\n\tby fmsmga002.fm.intel.com with ESMTP; 05 Oct 2017 01:16:11 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.42,480,1500966000\"; d=\"scan'208\";\n\ta=\"1227303065\"",
        "From": "Beilei Xing <beilei.xing@intel.com>",
        "To": "jingjing.wu@intel.com",
        "Cc": "andrey.chilikin@intel.com,\n\tdev@dpdk.org",
        "Date": "Thu,  5 Oct 2017 16:14:51 +0800",
        "Message-Id": "<1507191297-122088-2-git-send-email-beilei.xing@intel.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1507191297-122088-1-git-send-email-beilei.xing@intel.com>",
        "References": "<1506700252-34949-1-git-send-email-beilei.xing@intel.com>\n\t<1507191297-122088-1-git-send-email-beilei.xing@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v8 1/7] 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 | 32 ++++++++++++++++++++++++++++++++\n 2 files changed, 34 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..978c4a2 100644\n--- a/lib/librte_mbuf/rte_mbuf_ptype.h\n+++ b/lib/librte_mbuf/rte_mbuf_ptype.h\n@@ -383,6 +383,38 @@ 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+ * or,\n+ * <'ether type'=0x0800\n+ * | 'version'=4, 'protocol'=17\n+ * | 'source port'=2123>\n+ * or,\n+ * <'ether type'=0x86DD\n+ * | 'version'=6, 'next header'=17\n+ * | 'source 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",
        "v8",
        "1/7"
    ]
}