get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 19646,
    "url": "http://patches.dpdk.org/api/patches/19646/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1484691761-1778-1-git-send-email-thomas.monjalon@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": "<1484691761-1778-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1484691761-1778-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2017-01-17T22:22:41",
    "name": "[dpdk-dev] net/virtio: fix build without virtio-user",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cae33c7d0803431d1e051539c0ce1b87c5c4b578",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1484691761-1778-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/19646/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/19646/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 409EBF612;\n\tTue, 17 Jan 2017 23:22:55 +0100 (CET)",
            "from mail-wm0-f42.google.com (mail-wm0-f42.google.com\n\t[74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 5CC605589\n\tfor <dev@dpdk.org>; Tue, 17 Jan 2017 23:22:46 +0100 (CET)",
            "by mail-wm0-f42.google.com with SMTP id c206so246139226wme.0\n\tfor <dev@dpdk.org>; Tue, 17 Jan 2017 14:22:46 -0800 (PST)",
            "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\te14sm40208408wmd.14.2017.01.17.14.22.44\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 17 Jan 2017 14:22:45 -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=zeqCyWRpNo9B92DEx/oQjlDla17GbCn+DQdcPqClZ9I=;\n\tb=Jmb78cwCBmAyk9sYYHaXOu6K4oqpIi/Ogg8JirH9w/sMZGa1H3pAGlWfvMncYUnn9s\n\ttLqxZ3riQUm8O3tI9ds6hRurGOLhjWddfBSGY+ADjnV5+XbpSR+u7TlxNymsYQiQzEom\n\tWJbO20tHYVQGNpKjdoskE5RquaDx1uDR7qofrfLIWKHHZmImEOv9M3CxYfBjSFIslvbm\n\tf0S02mc9RbhbiVrNLHLfCMvXm1iL4pXzLGVHytqIFQrldvpBmbNhE/QDYex/7d1sxSw1\n\tsJXwyR8I9/H4w+bVyzE1x0XVZtviZbwi+Q/fyk0l4IIoirCKjeWPeljDQmGgFSh6aoRk\n\tjLtw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=zeqCyWRpNo9B92DEx/oQjlDla17GbCn+DQdcPqClZ9I=;\n\tb=pRljU1MjOG9ItyJ5cXalH6X2u+8rNFY3X4pzY0Xf4APy1zykxDialdAn/Jd+W+ruRU\n\tqEizvCFL2i/K+QmI7YuBJcWAJKuxrDVDRW0yV/BPJoyLMSnWt1VzrC42ndzJmrsaqIwZ\n\tvU9kbpvxmysSz9G0Q2EH/a2ixZKeC8p3fPxtFEIHJVFeG7FHzecWPQDCnoxpJ1haspSY\n\t1RdJleefeO70Pk9MSVLXtXgR6RDworCLkm0DZuNwjoQrMU4P3bx6Ymfr9vycHc02IcBi\n\tGxAhf8PAOh81sm3GKBRsoMzD71nCI+LVxDMqhajMv6plNn7P4eEdV+JPsT1EPAADsRwx\n\txtSg==",
        "X-Gm-Message-State": "AIkVDXLkCr6tIz0xP00Y7Fow4F68tduxp/bzlicAQbhxyJtldq+3JcuiDFqsk1m+8JcIgOYr",
        "X-Received": "by 10.28.43.129 with SMTP id r123mr4003064wmr.120.1484691766051; \n\tTue, 17 Jan 2017 14:22:46 -0800 (PST)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "Yuanhan Liu <yuanhan.liu@linux.intel.com>",
        "Cc": "dev@dpdk.org",
        "Date": "Tue, 17 Jan 2017 23:22:41 +0100",
        "Message-Id": "<1484691761-1778-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "In-Reply-To": "<6199672.AS3ZBII79S@xps13>",
        "References": "<6199672.AS3ZBII79S@xps13>",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: fix build without virtio-user",
        "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": "When CONFIG_RTE_VIRTIO_USER is disabled (default on FreeBSD),\nthe virtio driver cannot be compiled:\n\nlibrte_pmd_virtio.a(virtio_ethdev.o): In function `eth_virtio_dev_init':\n(.text+0x1eba): undefined reference to `virtio_user_ops'\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\nAlready applied on mainline git when sending,\nin order to allow CI on FreeBSD.\n---\n drivers/net/virtio/virtio_ethdev.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 0fe99d5..1d51942 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1461,9 +1461,12 @@ virtio_remap_pci(struct rte_pci_device *pci_dev, struct virtio_hw *hw)\n static void\n virtio_set_vtpci_ops(struct virtio_hw *hw)\n {\n+#ifdef RTE_VIRTIO_USER\n \tif (hw->virtio_user_dev)\n \t\tVTPCI_OPS(hw) = &virtio_user_ops;\n-\telse if (hw->modern)\n+\telse\n+#endif\n+\tif (hw->modern)\n \t\tVTPCI_OPS(hw) = &modern_ops;\n \telse\n \t\tVTPCI_OPS(hw) = &legacy_ops;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}