get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 51253,
    "url": "https://patches.dpdk.org/api/patches/51253/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190318133230.140978-4-qiming.yang@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": "<20190318133230.140978-4-qiming.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190318133230.140978-4-qiming.yang@intel.com",
    "date": "2019-03-18T13:32:29",
    "name": "[v2,3/4] app/testpmd: add VXLAN-GPE to tunnel type",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "50bcafdbe9805601a58b8c144699725e0192cb75",
    "submitter": {
        "id": 522,
        "url": "https://patches.dpdk.org/api/people/522/?format=api",
        "name": "Qiming Yang",
        "email": "qiming.yang@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/20190318133230.140978-4-qiming.yang@intel.com/mbox/",
    "series": [
        {
            "id": 3772,
            "url": "https://patches.dpdk.org/api/series/3772/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3772",
            "date": "2019-03-18T13:32:26",
            "name": "Supported VXLAN-GPE in i40e",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/3772/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/51253/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/51253/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 3C22E4CA0;\n\tMon, 18 Mar 2019 07:09:32 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id 53F212BAF\n\tfor <dev@dpdk.org>; Mon, 18 Mar 2019 07:09:24 +0100 (CET)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Mar 2019 23:09:23 -0700",
            "from dpdk-qiming2.sh.intel.com ([10.67.119.132])\n\tby fmsmga002.fm.intel.com with ESMTP; 17 Mar 2019 23:09:22 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.58,492,1544515200\"; d=\"scan'208\";a=\"152619863\"",
        "From": "Qiming Yang <qiming.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com,\n\tQiming Yang <qiming.yang@intel.com>",
        "Date": "Mon, 18 Mar 2019 21:32:29 +0800",
        "Message-Id": "<20190318133230.140978-4-qiming.yang@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20190318133230.140978-1-qiming.yang@intel.com>",
        "References": "<20190102143829.7624-1-qiming.yang@intel.com>\n\t<20190318133230.140978-1-qiming.yang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 3/4] app/testpmd: add VXLAN-GPE to tunnel type",
        "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": "This patch added new item \"vxlan-gpe\" to tunnel_type to\nsupport new VXLAN-GPE packet type, and its clasification.\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n app/test-pmd/cmdline.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex db53cc0..08a554c 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -8710,6 +8710,8 @@ cmd_tunnel_filter_parsed(void *parsed_result,\n \n \tif (!strcmp(res->tunnel_type, \"vxlan\"))\n \t\ttunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN;\n+\telse if (!strcmp(res->tunnel_type, \"vxlan-gpe\"))\n+\t\ttunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN_GPE;\n \telse if (!strcmp(res->tunnel_type, \"nvgre\"))\n \t\ttunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_NVGRE;\n \telse if (!strcmp(res->tunnel_type, \"ipingre\"))\n@@ -8759,7 +8761,7 @@ cmdline_parse_token_ipaddr_t cmd_tunnel_filter_ip_value =\n \tip_value);\n cmdline_parse_token_string_t cmd_tunnel_filter_tunnel_type =\n \tTOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,\n-\ttunnel_type, \"vxlan#nvgre#ipingre\");\n+\ttunnel_type, \"vxlan#nvgre#ipingre#vxlan-gpe\");\n \n cmdline_parse_token_string_t cmd_tunnel_filter_filter_type =\n \tTOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,\n@@ -8883,6 +8885,8 @@ cmd_cfg_tunnel_udp_port_parsed(void *parsed_result,\n \t\ttunnel_udp.prot_type = RTE_TUNNEL_TYPE_VXLAN;\n \t} else if (!strcmp(res->tunnel_type, \"geneve\")) {\n \t\ttunnel_udp.prot_type = RTE_TUNNEL_TYPE_GENEVE;\n+\t} else if (!strcmp(res->tunnel_type, \"vxlan-gpe\")) {\n+\t\ttunnel_udp.prot_type = RTE_TUNNEL_TYPE_VXLAN_GPE;\n \t} else {\n \t\tprintf(\"Invalid tunnel type\\n\");\n \t\treturn;\n@@ -8917,7 +8921,7 @@ cmdline_parse_token_string_t cmd_config_tunnel_udp_port_action =\n \t\t\t\t \"add#rm\");\n cmdline_parse_token_string_t cmd_config_tunnel_udp_port_tunnel_type =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_tunnel_udp_port, tunnel_type,\n-\t\t\t\t \"vxlan#geneve\");\n+\t\t\t\t \"vxlan#geneve#vxlan-gpe\");\n cmdline_parse_token_num_t cmd_config_tunnel_udp_port_value =\n \tTOKEN_NUM_INITIALIZER(struct cmd_config_tunnel_udp_port, udp_port,\n \t\t\t      UINT16);\n@@ -8925,7 +8929,7 @@ cmdline_parse_token_num_t cmd_config_tunnel_udp_port_value =\n cmdline_parse_inst_t cmd_cfg_tunnel_udp_port = {\n \t.f = cmd_cfg_tunnel_udp_port_parsed,\n \t.data = NULL,\n-\t.help_str = \"port config <port_id> udp_tunnel_port add|rm vxlan|geneve <udp_port>\",\n+\t.help_str = \"port config <port_id> udp_tunnel_port add|rm vxlan|geneve|vxlan-gpe <udp_port>\",\n \t.tokens = {\n \t\t(void *)&cmd_config_tunnel_udp_port_port,\n \t\t(void *)&cmd_config_tunnel_udp_port_config,\n",
    "prefixes": [
        "v2",
        "3/4"
    ]
}