get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41603,
    "url": "http://patches.dpdk.org/api/patches/41603/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/9f28896afeadb352e2ab8ccc0e59d47769ebba08.1530031921.git.gaetan.rivet@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": "<9f28896afeadb352e2ab8ccc0e59d47769ebba08.1530031921.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/9f28896afeadb352e2ab8ccc0e59d47769ebba08.1530031921.git.gaetan.rivet@6wind.com",
    "date": "2018-06-26T16:56:20",
    "name": "[v8,17/21] bus/vdev: add device matching field driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ff768e6f4f02332158febb066ef0c3a35e3e98f6",
    "submitter": {
        "id": 269,
        "url": "http://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/9f28896afeadb352e2ab8ccc0e59d47769ebba08.1530031921.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 249,
            "url": "http://patches.dpdk.org/api/series/249/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=249",
            "date": "2018-06-26T16:56:03",
            "name": "Device querying",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/249/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41603/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41603/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 191E11BE0C;\n\tTue, 26 Jun 2018 18:57:34 +0200 (CEST)",
            "from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66]) by dpdk.org (Postfix) with ESMTP id DD5B41BE39\n\tfor <dev@dpdk.org>; Tue, 26 Jun 2018 18:57:13 +0200 (CEST)",
            "by mail-wm0-f66.google.com with SMTP id 69-v6so2579693wmf.3\n\tfor <dev@dpdk.org>; Tue, 26 Jun 2018 09:57:13 -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\tp5-v6sm2680880wre.83.2018.06.26.09.57.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Jun 2018 09:57:11 -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=asEL7KDRrDSON5+PzJnFF6wFSrQ+kM9WHbufKyn5N6Q=;\n\tb=N8pglJplSF4S0X8rw3UoOegpceBZmwP70wqd8qfib7vT5Wf10faeQmCIO5fdRXZeZ3\n\tRtKn0pZ4XqWKi3p1hpVicw5vyG4e4BaaeVtJrbcHeeLr1vCqmR7qIy4aB61Ag9decbeU\n\tc62NgCl4l4VvuANMXOw8Ml8CGkVzk7bpby+2ziHvhyUhj7dOiOVEJ6afzJ4ldySgnO44\n\ttFVLbiHrbhcM0Y8yxpdMu4YRUqIhkrIpwvB5WMRiaBEnfdHB24vIzbab27bvjzEncB6b\n\tPqeRcnuqiH2sRO61EauaDgHJA2iI9jsXoPQU4lk4i4HmPdWl7dXQ6q8DHGfvnleLjzE9\n\tCBUw==",
        "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=asEL7KDRrDSON5+PzJnFF6wFSrQ+kM9WHbufKyn5N6Q=;\n\tb=uBalPHzxAGXTXSJUoFIH0zMuflfxatdf7ooNKFNCseKBggTwqp4V8u6btZyHgfizBK\n\tbNr/Wo86ESV6GJNMIIKZwC/6K3VcbfP6HzpMlTUsJ8xlsaFbNgLtF58UIKahQqYesMVU\n\t5mPYCwf45dEpyIZY/rCKnthqSjApqPOsh1INdkfhkO7lR9+zf1cdVRFm56cWIStR+aiv\n\tVtkfmdqg+6c3yEmaElImSvNOmgVS8z7UJkioFf27Qwkyj+tKilv5cxnirulHp0k8cgSe\n\tzII+AOsAbm5jYfR4NRbILgJwFBJRWDY3EkjKs4PxqLea4scvgV145wmzdMuestTCBp2T\n\tJbCQ==",
        "X-Gm-Message-State": "APt69E019Z2TrobkLXnoIdtz7bhfqtXvOLGNYb4TosaThqTiooF6SXHM\n\t9wck5UedJ3majT6yKFFZhG21JwPY",
        "X-Google-Smtp-Source": "AAOMgpffx4woH8SrnnNQ3C0pdgtgmjZzglV2wPWCQjcUYm5HbY7c+m0LS3D7pAAN7RzLC6GVxMRcow==",
        "X-Received": "by 2002:a1c:2489:: with SMTP id\n\tk131-v6mr2397342wmk.114.1530032233158; \n\tTue, 26 Jun 2018 09:57:13 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Tue, 26 Jun 2018 18:56:20 +0200",
        "Message-Id": "<9f28896afeadb352e2ab8ccc0e59d47769ebba08.1530031921.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1530031921.git.gaetan.rivet@6wind.com>",
            "<cover.1530031921.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1521124599.git.gaetan.rivet@6wind.com>\n\t<cover.1530031921.git.gaetan.rivet@6wind.com>",
            "<cover.1530031921.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v8 17/21] bus/vdev: add device matching field\n\tdriver",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/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 vdev bus parses a field \"driver\", matching\na vdev driver name with one passed as follows:\n\n   \"bus=vdev,driver=xxxx\"\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n drivers/bus/vdev/vdev_params.c | 15 +++++++++++++--\n 1 file changed, 13 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/bus/vdev/vdev_params.c b/drivers/bus/vdev/vdev_params.c\nindex 842a4684e..2f55f451f 100644\n--- a/drivers/bus/vdev/vdev_params.c\n+++ b/drivers/bus/vdev/vdev_params.c\n@@ -4,6 +4,7 @@\n \n #include <rte_dev.h>\n #include <rte_bus.h>\n+#include <rte_bus_vdev.h>\n #include <rte_kvargs.h>\n #include <rte_errno.h>\n \n@@ -11,10 +12,12 @@\n #include \"vdev_private.h\"\n \n enum vdev_params {\n+\tRTE_VDEV_PARAMS_DRIVER,\n \tRTE_VDEV_PARAMS_MAX,\n };\n \n static const char * const vdev_params_keys[] = {\n+\t[RTE_VDEV_PARAMS_DRIVER] = \"driver\",\n \t[RTE_VDEV_PARAMS_MAX] = NULL,\n };\n \n@@ -23,9 +26,17 @@ vdev_dev_match(const struct rte_device *dev,\n \t       const void *_kvlist)\n {\n \tconst struct rte_kvargs *kvlist = _kvlist;\n+\tconst struct rte_vdev_device *vdev;\n \n-\t(void) kvlist;\n-\t(void) dev;\n+\tif (kvlist == NULL)\n+\t\t/* Empty string matches everything. */\n+\t\treturn 0;\n+\tvdev = RTE_DEV_TO_VDEV_CONST(dev);\n+\t/* if any field does not match. */\n+\tif (rte_kvargs_process(kvlist, \"driver\",\n+\t\trte_kvargs_strcmp,\n+\t\t(void *)(intptr_t)vdev->device.driver->name))\n+\t\treturn -1;\n \treturn 0;\n }\n \n",
    "prefixes": [
        "v8",
        "17/21"
    ]
}