get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52325,
    "url": "http://patches.dpdk.org/api/patches/52325/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190405090535.7604-3-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-3-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190405090535.7604-3-qi.z.zhang@intel.com",
    "date": "2019-04-05T09:05:32",
    "name": "[v5,2/5] net/i40e: add support for VXLAN-GPE",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "dc2b4513ab48a5df68e6f284bda93bd62c33ab44",
    "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-3-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/52325/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/52325/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 BE4401B499;\n\tFri,  5 Apr 2019 11:03:49 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 6C7801B48F\n\tfor <dev@dpdk.org>; Fri,  5 Apr 2019 11:03:42 +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:41 -0700",
            "from dpdk51.sh.intel.com ([10.67.110.245])\n\tby orsmga006.jf.intel.com with ESMTP; 05 Apr 2019 02:03:40 -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=\"133191662\"",
        "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:32 +0800",
        "Message-Id": "<20190405090535.7604-3-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 2/5] net/i40e: add support for VXLAN-GPE",
        "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\nAdd new protocol type VXLAN-GPE support for UDP tunnel.\ninner IP/TCP/UDP checksum and RSS configuration shared\nthe same implementation of VXLAN.\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\nAcke-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 13 +++++++++----\n 1 file changed, 9 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex b031bf4c6..f382013c4 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -8370,7 +8370,7 @@ i40e_get_vxlan_port_idx(struct i40e_pf *pf, uint16_t port)\n }\n \n static int\n-i40e_add_vxlan_port(struct i40e_pf *pf, uint16_t port)\n+i40e_add_vxlan_port(struct i40e_pf *pf, uint16_t port, int udp_type)\n {\n \tint  idx, ret;\n \tuint8_t filter_idx;\n@@ -8393,7 +8393,7 @@ i40e_add_vxlan_port(struct i40e_pf *pf, uint16_t port)\n \t\treturn -ENOSPC;\n \t}\n \n-\tret =  i40e_aq_add_udp_tunnel(hw, port, I40E_AQC_TUNNEL_TYPE_VXLAN,\n+\tret =  i40e_aq_add_udp_tunnel(hw, port, udp_type,\n \t\t\t\t\t&filter_idx, NULL);\n \tif (ret < 0) {\n \t\tPMD_DRV_LOG(ERR, \"Failed to add VXLAN UDP port %d\", port);\n@@ -8461,9 +8461,13 @@ i40e_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n \n \tswitch (udp_tunnel->prot_type) {\n \tcase RTE_TUNNEL_TYPE_VXLAN:\n-\t\tret = i40e_add_vxlan_port(pf, udp_tunnel->udp_port);\n+\t\tret = i40e_add_vxlan_port(pf, udp_tunnel->udp_port,\n+\t\t\t\t\t  I40E_AQC_TUNNEL_TYPE_VXLAN);\n+\t\tbreak;\n+\tcase RTE_TUNNEL_TYPE_VXLAN_GPE:\n+\t\tret = i40e_add_vxlan_port(pf, udp_tunnel->udp_port,\n+\t\t\t\t\t  I40E_AQC_TUNNEL_TYPE_VXLAN_GPE);\n \t\tbreak;\n-\n \tcase RTE_TUNNEL_TYPE_GENEVE:\n \tcase RTE_TUNNEL_TYPE_TEREDO:\n \t\tPMD_DRV_LOG(ERR, \"Tunnel type is not supported now.\");\n@@ -8492,6 +8496,7 @@ i40e_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n \n \tswitch (udp_tunnel->prot_type) {\n \tcase RTE_TUNNEL_TYPE_VXLAN:\n+\tcase RTE_TUNNEL_TYPE_VXLAN_GPE:\n \t\tret = i40e_del_vxlan_port(pf, udp_tunnel->udp_port);\n \t\tbreak;\n \tcase RTE_TUNNEL_TYPE_GENEVE:\n",
    "prefixes": [
        "v5",
        "2/5"
    ]
}