get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 10516,
    "url": "http://patches.dpdk.org/api/patches/10516/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1455542666-28895-3-git-send-email-david.marchand@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": "<1455542666-28895-3-git-send-email-david.marchand@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1455542666-28895-3-git-send-email-david.marchand@6wind.com",
    "date": "2016-02-15T13:24:24",
    "name": "[dpdk-dev,v3,2/4] virtio: fix incorrect check when mapping pci resources",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e75674090eea1552a2b6b608834b2a795970d329",
    "submitter": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1455542666-28895-3-git-send-email-david.marchand@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/10516/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/10516/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 BC6429A91;\n\tMon, 15 Feb 2016 14:24:40 +0100 (CET)",
            "from mail-wm0-f54.google.com (mail-wm0-f54.google.com\n\t[74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 8CAFC95D6\n\tfor <dev@dpdk.org>; Mon, 15 Feb 2016 14:24:38 +0100 (CET)",
            "by mail-wm0-f54.google.com with SMTP id g62so58718759wme.1\n\tfor <dev@dpdk.org>; Mon, 15 Feb 2016 05:24:38 -0800 (PST)",
            "from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net.\n\t[78.126.77.144]) by smtp.gmail.com with ESMTPSA id\n\tq75sm15784652wmd.6.2016.02.15.05.24.37\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 15 Feb 2016 05:24:37 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=E+Y9MhMD2zmdOp1lVor7LRcBKL4Y0xt8vk96rx6UheU=;\n\tb=GZiL8E0C2J60zvGdzdTLoG9Zx0TLOM9zhU6OjPTnCO+VxbSxDqWPuHGyOi/9t6DV5n\n\tKbaHJKwxyYtU6Y4AappUXwc1VBrh72+JYmaVT2qtQw3vmNTVEFxvJQnxU/Ae/+2XGOEQ\n\tFmCIIaveA9P8UrDYzpdj5JnD4BkztPsp5qRZBR/7ZKtRx5jOgpKYes75ceaVbTo7/+md\n\tC1H7LEzbCxCuqYGPvgrBLRc0FD4yqb98g5BFku/snPTw3XjTnJH4rwjvy/okFgGuCkBf\n\tGAvTfkt57iGNWn4ToT91bzuRPrS7Go35oFmDsIqacTFuKLkEIMXH8RR94NEx1M8WjcSj\n\trs6w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=E+Y9MhMD2zmdOp1lVor7LRcBKL4Y0xt8vk96rx6UheU=;\n\tb=FkNWJ9oqgtF3RkfNIY4PR5AEOaZNdvMmuFaoteCw7UPYFE/Cc6fP1gRQ43QxgsNhby\n\thyZDmq10YGDFiNCg40RADbxRKW1bOGLDpi5UHG/tc4LDtqa56uc1rq1pCWa+vDYg+LEz\n\t59G4l0fItG53AFrJ+l+zyDFu9kgKoUft+8rVTwQAnr5gmLqlBB473rzX/Xm2Kdul1nDs\n\t/R54r7cw0EdzMRkGJo1kTaTYShJ+jg/RLT+QS0+4A/aLluq3N5+fcEtQi55uyVkubDHu\n\t+YQoe1xdNW+Qy759+Chkb4rxm2P0DmGpKbnjWPFJ6XKhOF4Gd9xxrecdPoGD6YcRcCj0\n\tNDWg==",
        "X-Gm-Message-State": "AG10YOSY1wqjbYPFcOiiigF7Hl7DpPqpdFl+M8Xlpctk7E8jHGjWQlIxb4xaS+4WUbaZYwQ6",
        "X-Received": "by 10.28.210.73 with SMTP id j70mr12107984wmg.8.1455542678339;\n\tMon, 15 Feb 2016 05:24:38 -0800 (PST)",
        "From": "David Marchand <david.marchand@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 15 Feb 2016 14:24:24 +0100",
        "Message-Id": "<1455542666-28895-3-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1455542666-28895-1-git-send-email-david.marchand@6wind.com>",
        "References": "<1454831317-4542-1-git-send-email-david.marchand@6wind.com>\n\t<1455542666-28895-1-git-send-email-david.marchand@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v3 2/4] virtio: fix incorrect check when mapping\n\tpci resources",
        "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": "According to the api, rte_eal_pci_map_device is only successful when returning\n0.\n\nFixes: 6ba1f63b5ab0 (\"virtio: support specification 1.0\")\nSigned-off-by: David Marchand <david.marchand@6wind.com>\nAcked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>\n---\n drivers/net/virtio/virtio_pci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c\nindex 762e91c..b4d4476 100644\n--- a/drivers/net/virtio/virtio_pci.c\n+++ b/drivers/net/virtio/virtio_pci.c\n@@ -795,7 +795,7 @@ virtio_read_caps(struct rte_pci_device *dev, struct virtio_hw *hw)\n \tstruct virtio_pci_cap cap;\n \tint ret;\n \n-\tif (rte_eal_pci_map_device(dev) < 0) {\n+\tif (rte_eal_pci_map_device(dev)) {\n \t\tPMD_INIT_LOG(DEBUG, \"failed to map pci device!\");\n \t\treturn -1;\n \t}\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "2/4"
    ]
}