get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 26004,
    "url": "https://patches.dpdk.org/api/patches/26004/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170629182206.1072-6-jblunck@infradead.org/",
    "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": "<20170629182206.1072-6-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170629182206.1072-6-jblunck@infradead.org",
    "date": "2017-06-29T18:21:56",
    "name": "[dpdk-dev,v7,05/15] bus/fslmc: implement find_device bus operation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "82d15dfcd71fc958276494ab7b58ac099a830e69",
    "submitter": {
        "id": 249,
        "url": "https://patches.dpdk.org/api/people/249/?format=api",
        "name": "Jan Blunck",
        "email": "jblunck@infradead.org"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170629182206.1072-6-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/26004/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/26004/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 DFCE87CAE;\n\tThu, 29 Jun 2017 20:22:40 +0200 (CEST)",
            "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65]) by dpdk.org (Postfix) with ESMTP id AD63B378E\n\tfor <dev@dpdk.org>; Thu, 29 Jun 2017 20:22:32 +0200 (CEST)",
            "by mail-wm0-f65.google.com with SMTP id y5so4063869wmh.3\n\tfor <dev@dpdk.org>; Thu, 29 Jun 2017 11:22:32 -0700 (PDT)",
            "from weierstrass.local ([91.200.110.13])\n\tby smtp.gmail.com with ESMTPSA id\n\te28sm1446366ede.14.2017.06.29.11.22.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 29 Jun 2017 11:22:31 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=icXEjoY3Yn2NgF7plMbby76nShC1Gob8ZSvzapj0tz4=;\n\tb=ZNSZqiCdUlGvoBvLWEakK68rSb/lFdFd74KHlKqb0u7+ejHm8VwezX46Qi0HLWjpv/\n\tBGsjx6mzewjq8zrXEareC1EaCgQ9GeLGU9yK2sBiPWYZiifYF9BHYUHSpcilB5G/2GC2\n\taBvSM691rGC3UgDDfYc3A45L1ZuYgne3A/Exzmc98Y0803CrWt7mCqtMs9BSNHW3CLaz\n\tB3GIJcaxN0AN4Fx4WXa22olu9ndb2OCBAiPfaB21AH0+5BpnUczhJAcMRY07a4cMZEk7\n\tCJDw5w0bnnv07XaVVFengRIgVQFWP+8qluInF3+2yiLinGNJq7vmoBhTu4IzuDNY2DbO\n\tUVZQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=icXEjoY3Yn2NgF7plMbby76nShC1Gob8ZSvzapj0tz4=;\n\tb=WnTNVLiXg+4c7IMDiKBAKLcT8hZS7ZOu2angc97aEEmOVB80Hoo7e9R36k+uW4g+H0\n\tXvqhKSBXdvwL4r5DytAzNJ+8Yti/OyA1DOMd3DGDTrf7ifog4GZVqPb/p2e5OssMSv8q\n\tZkxMwp4QC8St7Ugk5Z5+pG4FzhFJ52tE21NJ6TF3QiVjmM5QBxWSkNpPpEk/foEXMOGl\n\t6ltlwm0AmOVv6K9akzo4Z7ubHDIQ08TZ1HYzBI1WskS+pz6zf9pIXSfuS9STKP2/3Bgt\n\tycPdREKGHFthSvQD7eF+8hPJtCYk+uIEFkV+wzDg4wIyP1PUbpe3ztCZCA+cB39liA8Y\n\tNNtA==",
        "X-Gm-Message-State": "AKS2vOz7CpdO/EB8BMEcVd4mOU/8T95JJSrKbNYHNedSUVXASlISd+dh\n\t/yvt7YAiqb7nSGqL",
        "X-Received": "by 10.80.136.110 with SMTP id c43mr2587719edc.171.1498760552293; \n\tThu, 29 Jun 2017 11:22:32 -0700 (PDT)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Cc": "gaetan.rivet@6wind.com,\n\tshreyansh.jain@nxp.com",
        "Date": "Thu, 29 Jun 2017 20:21:56 +0200",
        "Message-Id": "<20170629182206.1072-6-jblunck@infradead.org>",
        "X-Mailer": "git-send-email 2.9.4",
        "In-Reply-To": "<20170629182206.1072-1-jblunck@infradead.org>",
        "References": "<cover.1498577192.git.gaetan.rivet@6wind.com>\n\t<20170629182206.1072-1-jblunck@infradead.org>",
        "Subject": "[dpdk-dev] [PATCH v7 05/15] bus/fslmc: implement find_device bus\n\toperation",
        "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": "Signed-off-by: Jan Blunck <jblunck@infradead.org>\n---\n drivers/bus/fslmc/fslmc_bus.c | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c\nindex b24642d..1e3bbee 100644\n--- a/drivers/bus/fslmc/fslmc_bus.c\n+++ b/drivers/bus/fslmc/fslmc_bus.c\n@@ -32,6 +32,7 @@\n \n #include <string.h>\n #include <dirent.h>\n+#include <stdbool.h>\n \n #include <rte_log.h>\n #include <rte_bus.h>\n@@ -105,6 +106,27 @@ rte_fslmc_probe(void)\n \treturn ret;\n }\n \n+static struct rte_device *\n+rte_fslmc_find_device(const struct rte_device *start, rte_dev_cmp_t cmp,\n+\t\t      const void *data)\n+{\n+\tstruct rte_dpaa2_device *dev;\n+\tbool start_found = !start;\n+\n+\tTAILQ_FOREACH(dev, &rte_fslmc_bus.device_list, next) {\n+\t\tif (!start_found) {\n+\t\t\tif (&dev->device == start)\n+\t\t\t\tstart_found = 1;\n+\t\t\tcontinue;\n+\t\t}\n+\n+\t\tif (cmp(&dev->device, data) == 0)\n+\t\t\treturn &dev->device;\n+\t}\n+\n+\treturn NULL;\n+}\n+\n /*register a fslmc bus based dpaa2 driver */\n void\n rte_fslmc_driver_register(struct rte_dpaa2_driver *driver)\n@@ -133,6 +155,7 @@ struct rte_fslmc_bus rte_fslmc_bus = {\n \t.bus = {\n \t\t.scan = rte_fslmc_scan,\n \t\t.probe = rte_fslmc_probe,\n+\t\t.find_device = rte_fslmc_find_device,\n \t},\n \t.device_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.device_list),\n \t.driver_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.driver_list),\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "05/15"
    ]
}