get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21727,
    "url": "http://patches.dpdk.org/api/patches/21727/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1489397601-2986-1-git-send-email-liuwf@arraynetworks.com.cn/",
    "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": "<1489397601-2986-1-git-send-email-liuwf@arraynetworks.com.cn>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1489397601-2986-1-git-send-email-liuwf@arraynetworks.com.cn",
    "date": "2017-03-13T09:33:21",
    "name": "[dpdk-dev] net/virtio-user: fix tapfds close issue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6e8f7aa8d5dfc59dd49ea569a48f3100f1b751b1",
    "submitter": {
        "id": 254,
        "url": "http://patches.dpdk.org/api/people/254/?format=api",
        "name": "Wenfeng Liu",
        "email": "liuwf@arraynetworks.com.cn"
    },
    "delegate": {
        "id": 355,
        "url": "http://patches.dpdk.org/api/users/355/?format=api",
        "username": "yliu",
        "first_name": "Yuanhan",
        "last_name": "Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1489397601-2986-1-git-send-email-liuwf@arraynetworks.com.cn/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/21727/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/21727/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 AD32B1075;\n\tMon, 13 Mar 2017 10:33:30 +0100 (CET)",
            "from mail01.arraynetworks.com.cn (mail.arraynetworks.com.cn\n\t[124.42.99.121]) by dpdk.org (Postfix) with ESMTP id 9E4E33B5\n\tfor <dev@dpdk.org>; Mon, 13 Mar 2017 10:33:27 +0100 (CET)",
            "from localhost.localdomain.localdomain (192.168.4.200) by\n\tmail01.arraynetworks.com.cn (10.3.0.251) with Microsoft SMTP Server\n\tid 14.3.123.3; Mon, 13 Mar 2017 17:30:45 +0800"
        ],
        "From": "Wenfeng Liu <liuwf@arraynetworks.com.cn>",
        "To": "<yuanhan.liu@linux.intel.com>, <maxime.coquelin@redhat.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Mon, 13 Mar 2017 09:33:21 +0000",
        "Message-ID": "<1489397601-2986-1-git-send-email-liuwf@arraynetworks.com.cn>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[192.168.4.200]",
        "Subject": "[dpdk-dev] [PATCH] net/virtio-user: fix tapfds close issue",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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": "The valid tap file descriptor range should be equal or greater\nthan zero instead of non-zero\n\nFixes: e3b434818bbb (\"net/virtio-user: support kernel vhost\")\n\nSigned-off-by: Wenfeng Liu <liuwf@arraynetworks.com.cn>\n---\n drivers/net/virtio/virtio_user/vhost_kernel.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_user/vhost_kernel.c b/drivers/net/virtio/virtio_user/vhost_kernel.c\nindex 05aa6c6..68d28b1 100644\n--- a/drivers/net/virtio/virtio_user/vhost_kernel.c\n+++ b/drivers/net/virtio/virtio_user/vhost_kernel.c\n@@ -365,7 +365,7 @@ struct vhost_memory_kernel {\n \tvhostfd = dev->vhostfds[pair_idx];\n \n \tif (!enable) {\n-\t\tif (dev->tapfds[pair_idx]) {\n+\t\tif (dev->tapfds[pair_idx] >= 0) {\n \t\t\tclose(dev->tapfds[pair_idx]);\n \t\t\tdev->tapfds[pair_idx] = -1;\n \t\t}\n",
    "prefixes": [
        "dpdk-dev"
    ]
}