get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 26736,
    "url": "https://patches.dpdk.org/api/patches/26736/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/4baa44f76517c871e69d9c18f4b73acbcd013238.1499728330.git.gaetan.rivet@6wind.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<4baa44f76517c871e69d9c18f4b73acbcd013238.1499728330.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/4baa44f76517c871e69d9c18f4b73acbcd013238.1499728330.git.gaetan.rivet@6wind.com",
    "date": "2017-07-10T23:19:00",
    "name": "[dpdk-dev,v2,1/8] vdev: implement plug operation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7fe72d277a14b7b473e71e4ea1e7fc5bd1cd8624",
    "submitter": {
        "id": 269,
        "url": "https://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/4baa44f76517c871e69d9c18f4b73acbcd013238.1499728330.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/26736/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/26736/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 467877CAC;\n\tTue, 11 Jul 2017 01:19:31 +0200 (CEST)",
            "from mail-wr0-f178.google.com (mail-wr0-f178.google.com\n\t[209.85.128.178]) by dpdk.org (Postfix) with ESMTP id D975D374C\n\tfor <dev@dpdk.org>; Tue, 11 Jul 2017 01:19:25 +0200 (CEST)",
            "by mail-wr0-f178.google.com with SMTP id c11so159265724wrc.3\n\tfor <dev@dpdk.org>; Mon, 10 Jul 2017 16:19:25 -0700 (PDT)",
            "from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tj190sm43773wmd.22.2017.07.10.16.19.23\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 10 Jul 2017 16:19:24 -0700 (PDT)"
        ],
        "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\t:in-reply-to:references;\n\tbh=jB0FIT/2TkKRiNPr2YXwZNZq0U7Agwdgmhn68k8tAls=;\n\tb=q39ENitJyx0dG3TLf/t9e9/Cf8pxgOKI/4a0uHDob79IHV4zgHVMaGzfIZM+FP51QI\n\tnzrRlbanQoQpa8ihUwbLunY3E4Wrb1c0b4RzPMTzak8VLBjhorVaSbUZPOPLD3WoKogu\n\trp7gMnpNY08aCkmhGIDP6jXvTybBeOQ4KeJX57yWLFc3o28EvnF9NhqnR2AvALm3Y+bj\n\te2lGFnXoK+tfQadZdNv4Z4IAFZ/fK3klgnNEtc6Y47mBEyD6mKsSzVNe/poZf3D+jJIO\n\tOThTUPC/IkrqcXYF6nHcq2O9sDVSc8TAmQsgLVbks94bWuKikqaVG/4hbuvBhi4Hw/RI\n\tO93Q==",
        "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:in-reply-to:references;\n\tbh=jB0FIT/2TkKRiNPr2YXwZNZq0U7Agwdgmhn68k8tAls=;\n\tb=JFLIVCcnzQC+cJjRXEM7x7hKnFjfKeE8gQnOgIHY6Wgyzx4XPButEFSLL/c2rgys4g\n\tkVt56YS9MITtY1mSrmcPQD8dOwW2aeqpt+DmO4+So8XwfDLL8olm8SK1Rh7Aaf7sX9LE\n\tohRbDQ8qSlehWqIqzDea0HO8t5qDQDiHVsJCDGfbBjo8ud1FLOiKB6MyQSIlEwT/7Boo\n\tJ+2FNn6EJ4t/FvljgfUV3jKXxQuYf/TCZR22u44+X6LsY3hpfd/2DbHhZYOQMv839hMI\n\taF64e770YnzxuT8jZj3/fcfVWF/0fuskGlNZ7qYF01g+nzKblEzS8Qf/g3/nNR6N+z+E\n\tAgFA==",
        "X-Gm-Message-State": "AIVw1112Io1y7+yXNmaG+0d3WD1jOkdqJvW2vEE6pa5R9toOBfJUiU2A\n\tUdtYnAiWCP/+y1qanGg=",
        "X-Received": "by 10.28.31.203 with SMTP id f194mr372345wmf.44.1499728765290;\n\tMon, 10 Jul 2017 16:19:25 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Tue, 11 Jul 2017 01:19:00 +0200",
        "Message-Id": "<4baa44f76517c871e69d9c18f4b73acbcd013238.1499728330.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": [
            "<cover.1499728330.git.gaetan.rivet@6wind.com>",
            "<cover.1499728330.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1499563730.git.gaetan.rivet@6wind.com>\n\t<cover.1499728330.git.gaetan.rivet@6wind.com>",
            "<cover.1499728330.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 1/8] vdev: implement plug operation",
        "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": "This method must be implemented to allow using a unified, generic API to\nhotplug devices, including virtual ones.\n\nVDEV devices actually exist unattached after performing a scan on the\nrte_devargs list. As such it makes sense to be able to perform a device\nhotplug afterward.\n\nFinally, missing this generic interface forces the EAL to be dependent\non vdev-specific API, which hinders the plan of moving the vdev bus to\ndrivers/bus.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/common/eal_common_vdev.c  | 12 +++++++-----\n lib/librte_eal/common/include/rte_vdev.h |  7 +++++++\n 2 files changed, 14 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c\nindex 2ca0cdb..79bb795 100644\n--- a/lib/librte_eal/common/eal_common_vdev.c\n+++ b/lib/librte_eal/common/eal_common_vdev.c\n@@ -316,12 +316,14 @@ vdev_find_device(const struct rte_device *start, rte_dev_cmp_t cmp,\n }\n \n static int\n+vdev_plug(struct rte_device *dev, const char *args __rte_unused)\n+{\n+\treturn vdev_probe_all_drivers(RTE_DEV_TO_VDEV(dev));\n+}\n+\n+static int\n vdev_unplug(struct rte_device *dev)\n {\n-\t/*\n-\t * The virtual bus doesn't support 'unattached' devices so this is\n-\t * actually equal to hotplugging removal of it.\n-\t */\n \treturn rte_vdev_uninit(dev->name);\n }\n \n@@ -329,7 +331,7 @@ static struct rte_bus rte_vdev_bus = {\n \t.scan = vdev_scan,\n \t.probe = vdev_probe,\n \t.find_device = vdev_find_device,\n-\t/* .plug = NULL, see comment on vdev_unplug */\n+\t.plug = vdev_plug,\n \t.unplug = vdev_unplug,\n \t.parse = vdev_parse,\n };\ndiff --git a/lib/librte_eal/common/include/rte_vdev.h b/lib/librte_eal/common/include/rte_vdev.h\nindex 3c07b76..639e6d6 100644\n--- a/lib/librte_eal/common/include/rte_vdev.h\n+++ b/lib/librte_eal/common/include/rte_vdev.h\n@@ -46,6 +46,13 @@ struct rte_vdev_device {\n \tstruct rte_device device;               /**< Inherit core device */\n };\n \n+/**\n+ * @internal\n+ * Helper macro for drivers that need to convert to struct rte_vdev_device.\n+ */\n+#define RTE_DEV_TO_VDEV(ptr) \\\n+\tcontainer_of(ptr, struct rte_vdev_device, device)\n+\n static inline const char *\n rte_vdev_device_name(const struct rte_vdev_device *dev)\n {\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "1/8"
    ]
}