get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52550,
    "url": "http://patches.dpdk.org/api/patches/52550/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190410083218.17531-8-olivier.matz@6wind.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": "<20190410083218.17531-8-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190410083218.17531-8-olivier.matz@6wind.com",
    "date": "2019-04-10T08:32:11",
    "name": "[RFC,v2,07/14] net: add rte prefix to gre structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cd1242ea9dae514f1ea1a3e251874b19b8ba54e2",
    "submitter": {
        "id": 8,
        "url": "http://patches.dpdk.org/api/people/8/?format=api",
        "name": "Olivier Matz",
        "email": "olivier.matz@6wind.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/20190410083218.17531-8-olivier.matz@6wind.com/mbox/",
    "series": [
        {
            "id": 4226,
            "url": "http://patches.dpdk.org/api/series/4226/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4226",
            "date": "2019-04-10T08:32:06",
            "name": "prefix network structures",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4226/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52550/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/52550/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 C493F5F34;\n\tWed, 10 Apr 2019 10:32:57 +0200 (CEST)",
            "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n\t[62.23.145.76]) by dpdk.org (Postfix) with ESMTP id EA9044D3A\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 10:32:29 +0200 (CEST)",
            "from glumotte.dev.6wind.com. (unknown [10.16.0.195])\n\tby proxy.6wind.com (Postfix) with ESMTP id D9F12295E6B;\n\tWed, 10 Apr 2019 10:32:29 +0200 (CEST)"
        ],
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "Date": "Wed, 10 Apr 2019 10:32:11 +0200",
        "Message-Id": "<20190410083218.17531-8-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20190410083218.17531-1-olivier.matz@6wind.com>",
        "References": "<20181024081833.21432-1-olivier.matz@6wind.com>\n\t<20190410083218.17531-1-olivier.matz@6wind.com>",
        "Subject": "[dpdk-dev] [RFC v2 07/14] net: add rte prefix to gre structure",
        "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": "Add 'rte_' prefix to structures:\n- rename struct gre_hdr as struct rte_gre_hdr.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n drivers/net/mlx5/mlx5_flow_dv.c | 4 ++--\n lib/librte_net/rte_gre.h        | 2 +-\n lib/librte_net/rte_net.c        | 4 ++--\n 3 files changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex 8110e9e3e..a4c7529cf 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -1057,7 +1057,7 @@ flow_dv_convert_encap_data(const struct rte_flow_item *items, uint8_t *buf,\n \tstruct udp_hdr *udp = NULL;\n \tstruct rte_vxlan_hdr *vxlan = NULL;\n \tstruct rte_vxlan_gpe_hdr *vxlan_gpe = NULL;\n-\tstruct gre_hdr *gre = NULL;\n+\tstruct rte_gre_hdr *gre = NULL;\n \tsize_t len;\n \tsize_t temp_size = 0;\n \n@@ -1170,7 +1170,7 @@ flow_dv_convert_encap_data(const struct rte_flow_item *items, uint8_t *buf,\n \t\t\tbreak;\n \t\tcase RTE_FLOW_ITEM_TYPE_GRE:\n \t\tcase RTE_FLOW_ITEM_TYPE_NVGRE:\n-\t\t\tgre = (struct gre_hdr *)&buf[temp_size];\n+\t\t\tgre = (struct rte_gre_hdr *)&buf[temp_size];\n \t\t\tif (!gre->proto)\n \t\t\t\treturn rte_flow_error_set(error, EINVAL,\n \t\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\ndiff --git a/lib/librte_net/rte_gre.h b/lib/librte_net/rte_gre.h\nindex 05aa9d143..b5279ede1 100644\n--- a/lib/librte_net/rte_gre.h\n+++ b/lib/librte_net/rte_gre.h\n@@ -16,7 +16,7 @@ extern \"C\" {\n  * GRE Header\n  */\n __extension__\n-struct gre_hdr {\n+struct rte_gre_hdr {\n #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n \tuint16_t res2:4; /**< Reserved */\n \tuint16_t s:1;    /**< Sequence Number Present bit */\ndiff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c\nindex 5551cce17..d858ab155 100644\n--- a/lib/librte_net/rte_net.c\n+++ b/lib/librte_net/rte_net.c\n@@ -140,8 +140,8 @@ ptype_tunnel(uint16_t *proto, const struct rte_mbuf *m,\n \t\t\t[0xa] = 12,\n \t\t\t[0xb] = 16,\n \t\t};\n-\t\tconst struct gre_hdr *gh;\n-\t\tstruct gre_hdr gh_copy;\n+\t\tconst struct rte_gre_hdr *gh;\n+\t\tstruct rte_gre_hdr gh_copy;\n \t\tuint16_t flags;\n \n \t\tgh = rte_pktmbuf_read(m, *off, sizeof(*gh), &gh_copy);\n",
    "prefixes": [
        "RFC",
        "v2",
        "07/14"
    ]
}