get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53581,
    "url": "http://patches.dpdk.org/api/patches/53581/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190521161315.25500-10-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": "<20190521161315.25500-10-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190521161315.25500-10-olivier.matz@6wind.com",
    "date": "2019-05-21T16:13:09",
    "name": "[09/15] net: add rte prefix to icmp defines",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c30017b9edeb1bdfb113f3202e66262c7521bd0a",
    "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/20190521161315.25500-10-olivier.matz@6wind.com/mbox/",
    "series": [
        {
            "id": 4733,
            "url": "http://patches.dpdk.org/api/series/4733/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4733",
            "date": "2019-05-21T16:13:01",
            "name": "prefix network structures",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/4733/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53581/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/53581/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 618D75F2E;\n\tTue, 21 May 2019 18:13:48 +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 50FF44CA7\n\tfor <dev@dpdk.org>; Tue, 21 May 2019 18:13:25 +0200 (CEST)",
            "from glumotte.dev.6wind.com. (unknown [10.16.0.195])\n\tby proxy.6wind.com (Postfix) with ESMTP id 38BDB2B83DC;\n\tTue, 21 May 2019 18:13:25 +0200 (CEST)"
        ],
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "stephen@networkplumber.org,\n\tferruh.yigit@intel.com",
        "Date": "Tue, 21 May 2019 18:13:09 +0200",
        "Message-Id": "<20190521161315.25500-10-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20190521161315.25500-1-olivier.matz@6wind.com>",
        "References": "<20190410083218.17531-1-olivier.matz@6wind.com>\n\t<20190521161315.25500-1-olivier.matz@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 09/15] net: add rte prefix to icmp defines",
        "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 defines:\n- rename IP_ICMP_ECHO_REPLY as RTE_IP_ICMP_ECHO_REPLY.\n- rename IP_ICMP_ECHO_REQUEST as RTE_IP_ICMP_ECHO_REQUEST.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n app/test-pmd/icmpecho.c   | 10 +++++-----\n lib/librte_net/rte_icmp.h |  4 ++--\n 2 files changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c\nindex bff0b8d9c..949cc558d 100644\n--- a/app/test-pmd/icmpecho.c\n+++ b/app/test-pmd/icmpecho.c\n@@ -433,7 +433,7 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs)\n \t\ticmp_h = (struct rte_icmp_hdr *) ((char *)ip_h +\n \t\t\t\t\t      sizeof(struct ipv4_hdr));\n \t\tif (! ((ip_h->next_proto_id == IPPROTO_ICMP) &&\n-\t\t       (icmp_h->icmp_type == IP_ICMP_ECHO_REQUEST) &&\n+\t\t       (icmp_h->icmp_type == RTE_IP_ICMP_ECHO_REQUEST) &&\n \t\t       (icmp_h->icmp_code == 0))) {\n \t\t\trte_pktmbuf_free(pkt);\n \t\t\tcontinue;\n@@ -457,7 +457,7 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs)\n \t\t *     - switch the request IP source and destination\n \t\t *       addresses in the reply IP header,\n \t\t *     - keep the IP header checksum unchanged.\n-\t\t * - set IP_ICMP_ECHO_REPLY in ICMP header.\n+\t\t * - set RTE_IP_ICMP_ECHO_REPLY in ICMP header.\n \t\t * ICMP checksum is computed by assuming it is valid in the\n \t\t * echo request and not verified.\n \t\t */\n@@ -480,10 +480,10 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs)\n \t\t\tip_h->src_addr = ip_h->dst_addr;\n \t\t\tip_h->dst_addr = ip_addr;\n \t\t}\n-\t\ticmp_h->icmp_type = IP_ICMP_ECHO_REPLY;\n+\t\ticmp_h->icmp_type = RTE_IP_ICMP_ECHO_REPLY;\n \t\tcksum = ~icmp_h->icmp_cksum & 0xffff;\n-\t\tcksum += ~htons(IP_ICMP_ECHO_REQUEST << 8) & 0xffff;\n-\t\tcksum += htons(IP_ICMP_ECHO_REPLY << 8);\n+\t\tcksum += ~htons(RTE_IP_ICMP_ECHO_REQUEST << 8) & 0xffff;\n+\t\tcksum += htons(RTE_IP_ICMP_ECHO_REPLY << 8);\n \t\tcksum = (cksum & 0xffff) + (cksum >> 16);\n \t\tcksum = (cksum & 0xffff) + (cksum >> 16);\n \t\ticmp_h->icmp_cksum = ~cksum;\ndiff --git a/lib/librte_net/rte_icmp.h b/lib/librte_net/rte_icmp.h\nindex d0309537e..3f8100a5f 100644\n--- a/lib/librte_net/rte_icmp.h\n+++ b/lib/librte_net/rte_icmp.h\n@@ -32,8 +32,8 @@ struct rte_icmp_hdr {\n } __attribute__((__packed__));\n \n /* ICMP packet types */\n-#define IP_ICMP_ECHO_REPLY   0\n-#define IP_ICMP_ECHO_REQUEST 8\n+#define RTE_IP_ICMP_ECHO_REPLY   0\n+#define RTE_IP_ICMP_ECHO_REQUEST 8\n \n #ifdef __cplusplus\n }\n",
    "prefixes": [
        "09/15"
    ]
}