get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42344,
    "url": "http://patches.dpdk.org/api/patches/42344/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/133ee7dfdeaad08347346daeb088d1df0d042e55.1530791217.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": "<133ee7dfdeaad08347346daeb088d1df0d042e55.1530791217.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/133ee7dfdeaad08347346daeb088d1df0d042e55.1530791217.git.gaetan.rivet@6wind.com",
    "date": "2018-07-05T11:48:16",
    "name": "[v10,09/27] eal/dev: add device iterator interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a84a819144c98591ff314bb9d8cde92993ce6855",
    "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/133ee7dfdeaad08347346daeb088d1df0d042e55.1530791217.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 419,
            "url": "http://patches.dpdk.org/api/series/419/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=419",
            "date": "2018-07-05T11:48:07",
            "name": "Device querying",
            "version": 10,
            "mbox": "http://patches.dpdk.org/series/419/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42344/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42344/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 D59DA1BF2B;\n\tThu,  5 Jul 2018 13:49:30 +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 414061BEDA\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 13:49:09 +0200 (CEST)",
            "by mail-wm0-f65.google.com with SMTP id s12-v6so10652275wmc.1\n\tfor <dev@dpdk.org>; Thu, 05 Jul 2018 04:49:09 -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\to42-v6sm15809183wrc.50.2018.07.05.04.49.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 05 Jul 2018 04:49:07 -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\tbh=ZaTY600S/w2aMPXxpxdxYg2oJRiJH9R4k/SlAVvW0/0=;\n\tb=Lc8RvlDSpO32FC1v0dCccIYJG98iAbGMPOLMJUdvZdI/XkgWkxECrAlQmMZvBAtuyG\n\tFbUMY6GLcrq+LZA8ctigaKTu+t2ZbctgBqFqNCCwTjFHIsOOm2h4mJvxfUheGFfN+Vf3\n\t1UP1MYfyW1qqLg1APdaP0iJK6hv7D0KntsU4Jzy10bLpvjsOy8BJoxoXAFoLRqQboKSg\n\tXs/9dkpdjl7cYF40ilvI0eFCRoP/TRPiBl1yqP32cjIySp9LpqUFySDW5/R//JjwE5+d\n\tDgYsRKtJXHRgQsdGvtv2kZzv6HQPKyMBzBhMCXplzKYF+sMI34pjX0mHhUqhTwumGKv3\n\tvVzg==",
        "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=ZaTY600S/w2aMPXxpxdxYg2oJRiJH9R4k/SlAVvW0/0=;\n\tb=WljtjKOo2tjrYBbXQGJUmyMFOtxL295sGcmZOWvo2134ltfl5d+EUSLx9kuI+5ZJXs\n\tNE4h9YMQLU78W1l87QkOjHCMnpYd6BDW9G+U+xXARfrpy6N2BF199BO+osa1ouwN7MU+\n\tjZYYW4ZOVq7Jp9Yp4qQePLpLZBXUtesr4xoTqOv2e6qUYsBAVVwGCPwOwzpZ03rdkACS\n\tskg2xXmRyD2N1PYJm0GvdaEbhSgTAhgVx6i5J0AqGvefgaogx2v3M8+kJLcgHeShiiZE\n\tidN/5hpgzFaWZFQNcRTsCoNoGxriAU/Pli1sggpjzyST4jWI+5CZgLr1h8FNd9zqYzoe\n\tBu3w==",
        "X-Gm-Message-State": "APt69E2g6HTpMVy4hxNh9M3lj0XyHIvNW4zuHoCILicFYxenhkp4T4Yu\n\tHuNGXpthMGPSS/WCNhNYc/RcTcXs",
        "X-Google-Smtp-Source": "AAOMgpcJZhw+TlrX+HV37JajCBK3V2BzIah0YUBubCphjSZco11IvXj5MSIo6xamtuJoRx5gRU0HCA==",
        "X-Received": "by 2002:adf:b726:: with SMTP id\n\tl38-v6mr4517669wre.115.1530791348442; \n\tThu, 05 Jul 2018 04:49:08 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Thu,  5 Jul 2018 13:48:16 +0200",
        "Message-Id": "<133ee7dfdeaad08347346daeb088d1df0d042e55.1530791217.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<cover.1530791217.git.gaetan.rivet@6wind.com>",
        "References": "<cover.1530791217.git.gaetan.rivet@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v10 09/27] eal/dev: add device iterator interface",
        "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": "A device iterator allows iterating over a set of devices.\nThis set is defined by the two descriptions offered,\n\n  * rte_bus\n  * rte_class\n\nOnly one description can be provided, or both. It is not allowed to\nprovide no description at all.\n\nEach layer of abstraction then performs a filter based on the\ndescription provided. This filtering allows iterating on their internal\nset of devices, stopping when a match is valid and returning the current\niteration context.\n\nThis context allows starting the next iteration from the same point and\ngoing forward.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/common/include/rte_dev.h | 47 +++++++++++++++++++++++++\n 1 file changed, 47 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h\nindex 3879ff3ca..120df729f 100644\n--- a/lib/librte_eal/common/include/rte_dev.h\n+++ b/lib/librte_eal/common/include/rte_dev.h\n@@ -285,6 +285,53 @@ __attribute__((used)) = str\n static const char DRV_EXP_TAG(name, kmod_dep_export)[] \\\n __attribute__((used)) = str\n \n+/**\n+ * Iteration context.\n+ *\n+ * This context carries over the current iteration state.\n+ */\n+struct rte_dev_iterator {\n+\tconst char *devstr; /**< device string. */\n+\tconst char *busstr; /**< bus-related part of device string. */\n+\tconst char *clsstr; /**< class-related part of device string. */\n+\tstruct rte_bus *bus; /**< bus handle. */\n+\tstruct rte_class *cls; /**< class handle. */\n+\tstruct rte_device *device; /**< current position. */\n+\tvoid *class_device; /**< additional specialized context. */\n+};\n+\n+/**\n+ * Device iteration function.\n+ *\n+ * Find the next device matching properties passed in parameters.\n+ * The function takes an additional ``start`` parameter, that is\n+ * used as starting context when relevant.\n+ *\n+ * The function returns the current element in the iteration.\n+ * This return value will potentially be used as a start parameter\n+ * in subsequent calls to the function.\n+ *\n+ * The additional iterator parameter is only there if a specific\n+ * implementation needs additional context. It must not be modified by\n+ * the iteration function itself.\n+ *\n+ * @param start\n+ *   Starting iteration context.\n+ *\n+ * @param devstr\n+ *   Device description string.\n+ *\n+ * @param it\n+ *   Device iterator.\n+ *\n+ * @return\n+ *   The address of the current element matching the device description\n+ *   string.\n+ */\n+typedef void *(*rte_dev_iterate_t)(const void *start,\n+\t\t\t\t   const char *devstr,\n+\t\t\t\t   const struct rte_dev_iterator *it);\n+\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "v10",
        "09/27"
    ]
}