get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 12795,
    "url": "http://patches.dpdk.org/api/patches/12795/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1463431287-4551-4-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": "<1463431287-4551-4-git-send-email-nhorman@tuxdriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1463431287-4551-4-git-send-email-nhorman@tuxdriver.com",
    "date": "2016-05-16T20:41:26",
    "name": "[dpdk-dev,3/4] Makefile: Do post processing on objects that register a driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "55331d9f6a0b9b5463c7db07783988982c801b36",
    "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/1463431287-4551-4-git-send-email-nhorman@tuxdriver.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/12795/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/12795/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 4A088AD7F;\n\tMon, 16 May 2016 22:42:25 +0200 (CEST)",
            "from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58])\n\tby dpdk.org (Postfix) with ESMTP id E541FAD7D\n\tfor <dev@dpdk.org>; Mon, 16 May 2016 22:42:23 +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:AES128-SHA:128) (Exim 4.63)\n\t(envelope-from <nhorman@tuxdriver.com>)\n\tid 1b2PL8-0004Pn-8T; Mon, 16 May 2016 16:42:15 -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": "Mon, 16 May 2016 16:41:26 -0400",
        "Message-Id": "<1463431287-4551-4-git-send-email-nhorman@tuxdriver.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1463431287-4551-1-git-send-email-nhorman@tuxdriver.com>",
        "References": "<1463431287-4551-1-git-send-email-nhorman@tuxdriver.com>",
        "X-Spam-Score": "-1.0 (-)",
        "X-Spam-Status": "No",
        "Subject": "[dpdk-dev] [PATCH 3/4] Makefile: Do post processing on objects that\n\tregister 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 | 19 ++++++++++++++++++-\n 1 file changed, 18 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/mk/internal/rte.compile-pre.mk b/mk/internal/rte.compile-pre.mk\nindex b9bff4a..2771887 100644\n--- a/mk/internal/rte.compile-pre.mk\n+++ b/mk/internal/rte.compile-pre.mk\n@@ -80,7 +80,8 @@ C_TO_O_STR = $(subst ','\\'',$(C_TO_O)) #'# fix syntax highlight\n C_TO_O_DISP = $(if $(V),\"$(C_TO_O_STR)\",\"  HOSTCC $(@)\")\n else\n C_TO_O = $(CC) -Wp,-MD,$(call obj2dep,$(@)).tmp $(CFLAGS) \\\n-\t$(CFLAGS_$(@)) $(EXTRA_CFLAGS) -o $@ -c $<\n+\t $(CFLAGS_$(@)) $(EXTRA_CFLAGS) -o $@ -c $<\n+\n C_TO_O_STR = $(subst ','\\'',$(C_TO_O)) #'# fix syntax highlight\n C_TO_O_DISP = $(if $(V),\"$(C_TO_O_STR)\",\"  CC $(@)\")\n endif\n@@ -88,10 +89,26 @@ 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_[PV]DEV(.*)\\\" $<; \\\n+\tif [ \\$$? -eq 0 ]; \\\n+\tthen \\\n+\t\techo MODGEN $@; \\\n+\t\tOBJF=`readlink -f $@`; \\\n+\t\t${RTE_OUTPUT}/buildtools/pmdinfo \\$$OBJF \\$$OBJF.mod.c; \\\n+\t\tif [ \\$$? -eq 0 ]; \\\n+\t\tthen \\\n+\t\t\techo MODBUILD $@; \\\n+\t\t\t$(CC) -c -o \\$$OBJF.mod.o \\$$OBJF.mod.c; \\\n+\t\t\t$(CROSS)ld -r -o \\$$OBJF.o \\$$OBJF.mod.o \\$$OBJF; \\\n+\t\t\tmv -f \\$$OBJF.o \\$$OBJF; \\\n+\t\tfi; \\\n+\tfi; \\\n+\ttrue\" && \\\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",
        "3/4"
    ]
}