get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86650,
    "url": "https://patches.dpdk.org/api/patches/86650/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210115043502.98386-3-jia.guo@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": "<20210115043502.98386-3-jia.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210115043502.98386-3-jia.guo@intel.com",
    "date": "2021-01-15T04:35:02",
    "name": "[v4,2/2] app/testpmd: add new UDP tunnel port for eCPRI",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d884c2ddae46af2fcf2c971916d22b61190bcbfa",
    "submitter": {
        "id": 507,
        "url": "https://patches.dpdk.org/api/people/507/?format=api",
        "name": "Guo, Jia",
        "email": "jia.guo@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210115043502.98386-3-jia.guo@intel.com/mbox/",
    "series": [
        {
            "id": 14767,
            "url": "https://patches.dpdk.org/api/series/14767/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14767",
            "date": "2021-01-15T04:35:00",
            "name": "add new UDP tunnel port configure for eCPRI",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/14767/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/86650/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/86650/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9E45BA0A02;\n\tFri, 15 Jan 2021 05:42:15 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 82A63140E4B;\n\tFri, 15 Jan 2021 05:42:10 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 3D5A0140E0D\n for <dev@dpdk.org>; Fri, 15 Jan 2021 05:42:09 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Jan 2021 20:42:04 -0800",
            "from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128])\n by fmsmga001.fm.intel.com with ESMTP; 14 Jan 2021 20:42:00 -0800"
        ],
        "IronPort-SDR": [
            "\n 9Ya+yOp50zAy0JOQUwnJqxMKkjyI0pKYQbBBSNW/2pJjgJxUM5YtYHE8va2QWRpfFqbFJd1q01\n 6NyeRSMF+HsQ==",
            "\n KJ7XeQL8aqruw/HSYX//wzB/zfNFPbFB1ltiQXVs8HlQLn1FVpiqEDXrv5x5uxyFmM0sCaxOaq\n 3a1ELMPM4wsg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9864\"; a=\"263288176\"",
            "E=Sophos;i=\"5.79,348,1602572400\"; d=\"scan'208\";a=\"263288176\"",
            "E=Sophos;i=\"5.79,348,1602572400\"; d=\"scan'208\";a=\"465461500\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jeff Guo <jia.guo@intel.com>",
        "To": "qi.z.zhang@intel.com, thomas@monjalon.net, ferruh.yigit@intel.com,\n andrew.rybchenko@oktetlabs.ru, bernard.iremonger@intel.com,\n wenzhuo.lu@intel.com, beilei.xing@intel.com",
        "Cc": "jingjing.wu@intel.com, qiming.yang@intel.com, haiyue.wang@intel.com,\n dev@dpdk.org, jia.guo@intel.com, simei.su@intel.com, orika@nvidia.com,\n getelson@nvidia.com, maxime.coquelin@redhat.com, jerinj@marvell.com,\n ajit.khaparde@broadcom.com, bingz@nvidia.com, ray.kinsella@intel.com,\n dodji@redhat.com, david.marchand@redhat.com",
        "Date": "Fri, 15 Jan 2021 12:35:02 +0800",
        "Message-Id": "<20210115043502.98386-3-jia.guo@intel.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20210115043502.98386-1-jia.guo@intel.com>",
        "References": "<20201216085854.7842-1-jia.guo@intel.com>\n <20210115043502.98386-1-jia.guo@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [dpdk-dev v4 2/2] app/testpmd: add new UDP tunnel port\n for eCPRI",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add new UDP tunnel port params for eCPRI configuration, the command\nas below:\n\ntestpmd> port config 0 udp_tunnel_port add ecpri 6789\ntestpmd> port config 0 udp_tunnel_port rm ecpri 6789\n\nSigned-off-by: Jeff Guo <jia.guo@intel.com>\n---\n app/test-pmd/cmdline.c                      | 9 ++++++---\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +-\n 2 files changed, 7 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 2ccbaa039e..596dd239fe 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -845,7 +845,7 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\"fdir_inset|fdir_flx_inset clear all\"\n \t\t\t\"    Clear RSS|FDIR|FDIR_FLX input set completely for some pctype\\n\\n\"\n \n-\t\t\t\"port config (port_id) udp_tunnel_port add|rm vxlan|geneve (udp_port)\\n\\n\"\n+\t\t\t\"port config (port_id) udp_tunnel_port add|rm vxlan|geneve|ecpri (udp_port)\\n\\n\"\n \t\t\t\"    Add/remove UDP tunnel port for tunneling offload\\n\\n\"\n \n \t\t\t\"port config <port_id> rx_offload vlan_strip|\"\n@@ -9175,6 +9175,8 @@ cmd_cfg_tunnel_udp_port_parsed(void *parsed_result,\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 if (!strcmp(res->tunnel_type, \"ecpri\")) {\n+\t\ttunnel_udp.prot_type = RTE_TUNNEL_TYPE_ECPRI;\n \t} else {\n \t\tprintf(\"Invalid tunnel type\\n\");\n \t\treturn;\n@@ -9209,7 +9211,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#vxlan-gpe\");\n+\t\t\t\t \"vxlan#geneve#vxlan-gpe#ecpri\");\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      RTE_UINT16);\n@@ -9217,7 +9219,8 @@ 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|vxlan-gpe <udp_port>\",\n+\t.help_str = \"port config <port_id> udp_tunnel_port add|rm vxlan|\"\n+\t\t\"geneve|vxlan-gpe|ecpri <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,\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 9be450066e..842ac42ce6 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -2375,7 +2375,7 @@ port config udp_tunnel_port\n \n Add/remove UDP tunnel port for VXLAN/GENEVE tunneling protocols::\n \n-    testpmd> port config (port_id) udp_tunnel_port add|rm vxlan|geneve|vxlan-gpe (udp_port)\n+    testpmd> port config (port_id) udp_tunnel_port add|rm vxlan|geneve|vxlan-gpe|ecpri (udp_port)\n \n port config tx_metadata\n ~~~~~~~~~~~~~~~~~~~~~~~\n",
    "prefixes": [
        "v4",
        "2/2"
    ]
}