get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52327,
    "url": "http://patches.dpdk.org/api/patches/52327/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190405090535.7604-5-qi.z.zhang@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": "<20190405090535.7604-5-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190405090535.7604-5-qi.z.zhang@intel.com",
    "date": "2019-04-05T09:05:34",
    "name": "[v5,4/5] app/testpmd: add VXLAN-GPE to tunnel type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "381db66a9390e029ca0d19cf0e39b12dbf54cb74",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@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/20190405090535.7604-5-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 4130,
            "url": "http://patches.dpdk.org/api/series/4130/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4130",
            "date": "2019-04-05T09:05:30",
            "name": "This patch set supported new packet type",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/4130/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52327/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/52327/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 D2E6A1B4A7;\n\tFri,  5 Apr 2019 11:03:55 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 989241B491\n\tfor <dev@dpdk.org>; Fri,  5 Apr 2019 11:03:44 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Apr 2019 02:03:44 -0700",
            "from dpdk51.sh.intel.com ([10.67.110.245])\n\tby orsmga006.jf.intel.com with ESMTP; 05 Apr 2019 02:03:43 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,312,1549958400\"; d=\"scan'208\";a=\"133191679\"",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "ferruh.yigit@intel.com, qi.z.zhang@intel.com, bernard.iremonger@intel.com",
        "Cc": "dev@dpdk.org,\n\tQiming Yang <qiming.yang@intel.com>",
        "Date": "Fri,  5 Apr 2019 17:05:34 +0800",
        "Message-Id": "<20190405090535.7604-5-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20190405090535.7604-1-qi.z.zhang@intel.com>",
        "References": "<20190405090535.7604-1-qi.z.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 4/5] 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": "From: Qiming Yang <qiming.yang@intel.com>\n\nThis 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                      | 19 ++++++++++++-------\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 +++++++----\n 2 files changed, 19 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex ee50e4566..2ab03c111 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -376,12 +376,12 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\"filtered for VF(s) from port_id.\\n\\n\"\n \n \t\t\t\"tunnel_filter add (port_id) (outer_mac) (inner_mac) (ip_addr) \"\n-\t\t\t\"(inner_vlan) (vxlan|nvgre|ipingre) (imac-ivlan|imac-ivlan-tenid|\"\n+\t\t\t\"(inner_vlan) (vxlan|nvgre|ipingre|vxlan-gpe) (imac-ivlan|imac-ivlan-tenid|\"\n \t\t\t\"imac-tenid|imac|omac-imac-tenid|oip|iip) (tenant_id) (queue_id)\\n\"\n \t\t\t\"   add a tunnel filter of a port.\\n\\n\"\n \n \t\t\t\"tunnel_filter rm (port_id) (outer_mac) (inner_mac) (ip_addr) \"\n-\t\t\t\"(inner_vlan) (vxlan|nvgre|ipingre) (imac-ivlan|imac-ivlan-tenid|\"\n+\t\t\t\"(inner_vlan) (vxlan|nvgre|ipingre|vxlan-gpe) (imac-ivlan|imac-ivlan-tenid|\"\n \t\t\t\"imac-tenid|imac|omac-imac-tenid|oip|iip) (tenant_id) (queue_id)\\n\"\n \t\t\t\"   remove a tunnel filter of a port.\\n\\n\"\n \n@@ -863,7 +863,7 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\" for ports.\\n\\n\"\n \n \t\t\t\"port config all rss (all|default|ip|tcp|udp|sctp|\"\n-\t\t\t\"ether|port|vxlan|geneve|nvgre|none|<flowtype_id>)\\n\"\n+\t\t\t\"ether|port|vxlan|geneve|nvgre|vxlan-gpe|none|<flowtype_id>)\\n\"\n \t\t\t\"    Set the RSS mode.\\n\\n\"\n \n \t\t\t\"port config port-id rss reta (hash,queue)[,(hash,queue)]\\n\"\n@@ -2190,7 +2190,7 @@ cmdline_parse_inst_t cmd_config_rss = {\n \t.f = cmd_config_rss_parsed,\n \t.data = NULL,\n \t.help_str = \"port config all rss \"\n-\t\t\"all|default|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|none|<flowtype_id>\",\n+\t\t\"all|default|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|vxlan-gpe|none|<flowtype_id>\",\n \t.tokens = {\n \t\t(void *)&cmd_config_rss_port,\n \t\t(void *)&cmd_config_rss_keyword,\n@@ -8758,6 +8758,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@@ -8807,7 +8809,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@@ -8931,6 +8933,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@@ -8965,7 +8969,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@@ -8973,7 +8977,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@@ -11987,6 +11991,7 @@ flowtype_to_str(uint16_t ftype)\n \t\t{\"vxlan\", RTE_ETH_FLOW_VXLAN},\n \t\t{\"geneve\", RTE_ETH_FLOW_GENEVE},\n \t\t{\"nvgre\", RTE_ETH_FLOW_NVGRE},\n+\t\t{\"vxlan-gpe\", RTE_ETH_FLOW_VXLAN_GPE},\n \t};\n \n \tfor (i = 0; i < RTE_DIM(ftype_table); i++) {\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex bcf1449a2..5d4dc6f0c 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -218,6 +218,7 @@ For example:\n      vxlan\n      geneve\n      nvgre\n+     vxlan-gpe\n \n show port rss reta\n ~~~~~~~~~~~~~~~~~~\n@@ -830,7 +831,7 @@ tunnel_filter add\n Add a tunnel filter on a port::\n \n    testpmd> tunnel_filter add (port_id) (outer_mac) (inner_mac) (ip_addr) \\\n-            (inner_vlan) (vxlan|nvgre|ipingre) (imac-ivlan|imac-ivlan-tenid|\\\n+            (inner_vlan) (vxlan|nvgre|ipingre|vxlan-gpe) (imac-ivlan|imac-ivlan-tenid|\\\n             imac-tenid|imac|omac-imac-tenid|oip|iip) (tenant_id) (queue_id)\n \n The available information categories are:\n@@ -841,6 +842,8 @@ The available information categories are:\n \n * ``ipingre``: Set tunnel type as IP-in-GRE.\n \n+* ``vxlan-gpe``: Set tunnel type as VXLAN-GPE\n+\n * ``imac-ivlan``: Set filter type as Inner MAC and VLAN.\n \n * ``imac-ivlan-tenid``: Set filter type as Inner MAC, VLAN and tenant ID.\n@@ -868,7 +871,7 @@ tunnel_filter remove\n Remove a tunnel filter on a port::\n \n    testpmd> tunnel_filter rm (port_id) (outer_mac) (inner_mac) (ip_addr) \\\n-            (inner_vlan) (vxlan|nvgre|ipingre) (imac-ivlan|imac-ivlan-tenid|\\\n+            (inner_vlan) (vxlan|nvgre|ipingre|vxlan-gpe) (imac-ivlan|imac-ivlan-tenid|\\\n             imac-tenid|imac|omac-imac-tenid|oip|iip) (tenant_id) (queue_id)\n \n rx_vxlan_port add\n@@ -2059,7 +2062,7 @@ port config - RSS\n \n Set the RSS (Receive Side Scaling) mode on or off::\n \n-   testpmd> port config all rss (all|default|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|none)\n+   testpmd> port config all rss (all|default|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|vxlan-gpe|none)\n \n RSS is on by default.\n \n@@ -2170,7 +2173,7 @@ port config udp_tunnel_port\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n Add/remove UDP tunnel port for VXLAN/GENEVE tunneling protocols::\n-    testpmd> port config (port_id) udp_tunnel_port add|rm vxlan|geneve (udp_port)\n+    testpmd> port config (port_id) udp_tunnel_port add|rm vxlan|geneve|vxlan-gpe (udp_port)\n \n port config tx_metadata\n ~~~~~~~~~~~~~~~~~~~~~~~\n",
    "prefixes": [
        "v5",
        "4/5"
    ]
}