get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 817619,
    "url": "http://patchwork.ozlabs.org/api/patches/817619/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922160111.31885-7-f4bug@amsat.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170922160111.31885-7-f4bug@amsat.org>",
    "list_archive_url": null,
    "date": "2017-09-22T16:01:06",
    "name": "[29/34] hw/net/e1000e: use TYPE_PCI_E1000E",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a9f7b601903fc3c49af6ec1f0b4fcd6478649d27",
    "submitter": {
        "id": 70924,
        "url": "http://patchwork.ozlabs.org/api/people/70924/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "f4bug@amsat.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922160111.31885-7-f4bug@amsat.org/mbox/",
    "series": [
        {
            "id": 4657,
            "url": "http://patchwork.ozlabs.org/api/series/4657/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4657",
            "date": "2017-09-22T15:39:40",
            "name": "remove i386/pc dependency from non-PC world (part 1)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4657/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817619/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817619/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"gIDZGpB7\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xzJMq1mM8z9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 02:09:43 +1000 (AEST)",
            "from localhost ([::1]:59802 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvQWL-0004M7-9W\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 12:09:41 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:51849)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQP0-0006PC-CX\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 12:02:10 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQOu-00007w-SW\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 12:02:06 -0400",
            "from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:33381)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQOu-00007X-OT; Fri, 22 Sep 2017 12:02:00 -0400",
            "by mail-qt0-x241.google.com with SMTP id b1so930417qtc.0;\n\tFri, 22 Sep 2017 09:02:00 -0700 (PDT)",
            "from yoga.lan ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id\n\ty31sm108325qta.83.2017.09.22.09.01.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 22 Sep 2017 09:01:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=qLPbhOJJ8a0CzqpY0SvbrdoIYBNHNCL1sxvkHrjczRs=;\n\tb=gIDZGpB7hD2+kPE/axTaXBV7F5QP6HkzvIsuJdh6wGPQ7Dz88Y+t9ScCgD+s29+VDV\n\txW2yiqVjgLR/pTjyMJHtxcr7aoHTNHDWBYDz6ACaXMEg13/ehOBGZfRZptSw80rF2NUF\n\tKAB7HodRE6vdI0EkWbgcBRhBgRERs6OJ7Fcjpztg1itQbyV6WTCeQ1qgrbK2qYB6rDBb\n\tw2PjyZmyeOY1sVwa2VnRmPbRfECy/y/2FGXe/b3uY9RyFgQVOPTpPfIMlWJlacka9avU\n\t1Mgcjp7w7eS3Au9hfp5VQXPu5r7pt7F1ZBHqNSs5A46ybviMsdM1o+9aoA16/vdwMlh5\n\t9Nig==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=qLPbhOJJ8a0CzqpY0SvbrdoIYBNHNCL1sxvkHrjczRs=;\n\tb=QqhewbbCQ9FBlLmjO9QeiaXEwnzshRWB9iM4dSTrR5LrR8HfEdGLWF/UlOuHEdC41k\n\t4ae9S1jvCjR7JROPL2Z8IRhd6Bjs5A0Q9TxcHcgg9kMOSvLczFUXqIXPMy1WYmaPRElQ\n\tNSPfb5B1hP81f/dLo4fuRIfiK0GXFkciMM8qMsr+uO3RgNa5FD+4gJN67OKXTpatLGO0\n\tS/ReycQOm+2/su4eZX0v0+qxtuuth1ganb2X102A82cf69JS0izQf8Cn95Xypgo0gKF1\n\tZtDDe/48QyHWUzIIGr1aB8LrrpB2mUo40BtgQy1NnDVv65GUyrXXSUoX6kFUJpEoWbZP\n\ttOaQ==",
        "X-Gm-Message-State": "AHPjjUh0+iNMI3MCQ+erlLoQp8bRLnhBcyKI+9kGebwKPB+0grpWIHpX\n\t5hDO41nU1mGg77+O33vbNSsMfmOoD74=",
        "X-Google-Smtp-Source": "AOwi7QC6/ogfPz2kUSxV/Yrd3DE6QwDk+AOwsTpjGy9alvGOfWzfeBzrhMyZG2wvOm89u+VvCO/OUg==",
        "X-Received": "by 10.200.54.3 with SMTP id m3mr9371026qtb.197.1506096120204;\n\tFri, 22 Sep 2017 09:02:00 -0700 (PDT)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>",
        "To": "Peter Maydell <peter.maydell@linaro.org>, Thomas Huth <thuth@redhat.com>,\n\tPaolo Bonzini <pbonzini@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>, \n\tMarcel Apfelbaum <marcel@redhat.com>, Jason Wang <jasowang@redhat.com>",
        "Date": "Fri, 22 Sep 2017 13:01:06 -0300",
        "Message-Id": "<20170922160111.31885-7-f4bug@amsat.org>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170922154014.29350-1-f4bug@amsat.org>",
        "References": "<20170922154014.29350-1-f4bug@amsat.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400d:c0d::241",
        "Subject": "[Qemu-devel] [PATCH 29/34] hw/net/e1000e: use TYPE_PCI_E1000E",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?=\n\t<f4bug@amsat.org>, \tqemu-devel@nongnu.org",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n---\n include/hw/net/pci.h | 1 +\n hw/net/e1000e.c      | 6 +++---\n 2 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/include/hw/net/pci.h b/include/hw/net/pci.h\nindex b24b5257a5..92111f86f3 100644\n--- a/include/hw/net/pci.h\n+++ b/include/hw/net/pci.h\n@@ -14,6 +14,7 @@\n #include \"hw/pci/pci_bus.h\"\n \n #define TYPE_PCI_E1000      \"e1000\"\n+#define TYPE_PCI_E1000E     \"e1000e\"\n \n PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus,\n                                const char *default_model,\ndiff --git a/hw/net/e1000e.c b/hw/net/e1000e.c\nindex 6c42b4478c..494f8cced6 100644\n--- a/hw/net/e1000e.c\n+++ b/hw/net/e1000e.c\n@@ -40,6 +40,7 @@\n #include \"sysemu/sysemu.h\"\n #include \"hw/pci/msi.h\"\n #include \"hw/pci/msix.h\"\n+#include \"hw/net/pci.h\"\n \n #include \"hw/net/e1000_regs.h\"\n \n@@ -49,8 +50,7 @@\n #include \"trace.h\"\n #include \"qapi/error.h\"\n \n-#define TYPE_E1000E \"e1000e\"\n-#define E1000E(obj) OBJECT_CHECK(E1000EState, (obj), TYPE_E1000E)\n+#define E1000E(obj) OBJECT_CHECK(E1000EState, (obj), TYPE_PCI_E1000E)\n \n typedef struct E1000EState {\n     PCIDevice parent_obj;\n@@ -703,7 +703,7 @@ static void e1000e_instance_init(Object *obj)\n }\n \n static const TypeInfo e1000e_info = {\n-    .name = TYPE_E1000E,\n+    .name =   TYPE_PCI_E1000E,\n     .parent = TYPE_PCI_DEVICE,\n     .instance_size = sizeof(E1000EState),\n     .class_init = e1000e_class_init,\n",
    "prefixes": [
        "29/34"
    ]
}