get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 13039,
    "url": "http://patches.dpdk.org/api/patches/13039/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1464283037-21478-5-git-send-email-nhorman@tuxdriver.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": "<1464283037-21478-5-git-send-email-nhorman@tuxdriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1464283037-21478-5-git-send-email-nhorman@tuxdriver.com",
    "date": "2016-05-26T17:17:15",
    "name": "[dpdk-dev,PATCHv5,4/6] Makefile: Do post processing on objects that register a driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6c1037a459c5d717a25ad8ecea9d06ba36fa0353",
    "submitter": {
        "id": 32,
        "url": "http://patches.dpdk.org/api/people/32/?format=api",
        "name": "Neil Horman",
        "email": "nhorman@tuxdriver.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1464283037-21478-5-git-send-email-nhorman@tuxdriver.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/13039/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/13039/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 40F5337B6;\n\tThu, 26 May 2016 19:18:32 +0200 (CEST)",
            "from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58])\n\tby dpdk.org (Postfix) with ESMTP id 60402A10\n\tfor <dev@dpdk.org>; Thu, 26 May 2016 19:18:31 +0200 (CEST)",
            "from hmsreliant.think-freely.org\n\t([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost)\n\tby smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63)\n\t(envelope-from <nhorman@tuxdriver.com>)\n\tid 1b5yvS-0006nm-Ly; Thu, 26 May 2016 13:18:29 -0400"
        ],
        "From": "Neil Horman <nhorman@tuxdriver.com>",
        "To": "dev@dpdk.org",
        "Cc": "Neil Horman <nhorman@tuxdriver.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tThomas Monjalon <thomas.monjalon@6wind.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tPanu Matilainen <pmatilai@redhat.com>",
        "Date": "Thu, 26 May 2016 13:17:15 -0400",
        "Message-Id": "<1464283037-21478-5-git-send-email-nhorman@tuxdriver.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1464283037-21478-1-git-send-email-nhorman@tuxdriver.com>",
        "References": "<1463431287-4551-1-git-send-email-nhorman@tuxdriver.com>\n\t<1464283037-21478-1-git-send-email-nhorman@tuxdriver.com>",
        "X-Spam-Score": "-2.9 (--)",
        "X-Spam-Status": "No",
        "Subject": "[dpdk-dev] [PATCHv5 4/6] Makefile: Do post processing on objects\n\tthat register a driver",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Modify the compilation makefile to identify C files that export PMD information,\nand use that to trigger execution of the pmdinfo binary.  If the execution of\npmdinfo is successful, compile the output C file to an object, and use the\nlinker to do relocatable linking on the resultant object file into the parent\nobject that it came from.  This effectively just adds the json string into the\nstring table of the object that defines the PMD to the outside world.\n\nSigned-off-by: Neil Horman <nhorman@tuxdriver.com>\nCC: Bruce Richardson <bruce.richardson@intel.com>\nCC: Thomas Monjalon <thomas.monjalon@6wind.com>\nCC: Stephen Hemminger <stephen@networkplumber.org>\nCC: Panu Matilainen <pmatilai@redhat.com>\n---\n mk/internal/rte.compile-pre.mk | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)",
    "diff": "diff --git a/mk/internal/rte.compile-pre.mk b/mk/internal/rte.compile-pre.mk\nindex b9bff4a..92517ad 100644\n--- a/mk/internal/rte.compile-pre.mk\n+++ b/mk/internal/rte.compile-pre.mk\n@@ -88,10 +88,24 @@ C_TO_O_CMD = 'cmd_$@ = $(C_TO_O_STR)'\n C_TO_O_DO = @set -e; \\\n \techo $(C_TO_O_DISP); \\\n \t$(C_TO_O) && \\\n+\tsh -c \"grep -q \\\"PMD_REGISTER_DRIVER(.*)\\\" $<; \\\n+\tif [ \\$$? -eq 0 ]; then \\\n+\t\techo \\\"  PMDINFOGEN\\\" $@; \\\n+\t\tOBJF=`readlink -f $@`; \\\n+\t\t${RTE_OUTPUT}/buildtools/pmdinfogen \\$$OBJF \\$$OBJF.pmd.c; \\\n+\t\tif [ \\$$? -eq 0 ]; \\\n+\t\tthen \\\n+\t\t\techo \\\"  PMDINFOBUILD\\\" $@; \\\n+\t\t\t$(CC) $(CFLAGS) -c -o \\$$OBJF.pmd.o \\$$OBJF.pmd.c; \\\n+\t\t\t$(CROSS)ld $(LDFLAGS) -r -o \\$$OBJF.o \\$$OBJF.pmd.o \\$$OBJF; \\\n+\t\t\tmv -f \\$$OBJF.o \\$$OBJF; \\\n+\t\tfi; \\\n+\tfi;\" && \\\n \techo $(C_TO_O_CMD) > $(call obj2cmd,$(@)) && \\\n \tsed 's,'$@':,dep_'$@' =,' $(call obj2dep,$(@)).tmp > $(call obj2dep,$(@)) && \\\n \trm -f $(call obj2dep,$(@)).tmp\n \n+\n # return an empty string if string are equal\n compare = $(strip $(subst $(1),,$(2)) $(subst $(2),,$(1)))\n \n",
    "prefixes": [
        "dpdk-dev",
        "PATCHv5",
        "4/6"
    ]
}