get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42340,
    "url": "http://patches.dpdk.org/api/patches/42340/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/42037d90036505fc764572b8a4c8b25a529c4ec7.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": "<42037d90036505fc764572b8a4c8b25a529c4ec7.1530791217.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/42037d90036505fc764572b8a4c8b25a529c4ec7.1530791217.git.gaetan.rivet@6wind.com",
    "date": "2018-07-05T11:48:12",
    "name": "[v10,05/27] eal: introduce dtor macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8ece0550e3e9aea1857579d7b900657baeecb111",
    "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/42037d90036505fc764572b8a4c8b25a529c4ec7.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/42340/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42340/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 E65001BEFC;\n\tThu,  5 Jul 2018 13:49:17 +0200 (CEST)",
            "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 200CB1BECA\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 13:49:04 +0200 (CEST)",
            "by mail-wm0-f48.google.com with SMTP id 69-v6so10305352wmf.3\n\tfor <dev@dpdk.org>; Thu, 05 Jul 2018 04:49:04 -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.01\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 05 Jul 2018 04:49:02 -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=ZtfNPlBkZCCYph80cHi2zc7zewiEPP0tLPgIMEpMWxE=;\n\tb=xe2zOcO8ZoYuKf5DYw2mOUs0Rr0zQYW8g92H2YfMlsQS5o4zovEbj+eznfWo8pg4q/\n\tTv9hLtEqF+p+9YMJoU6WY0eQtuwwyRLXcCF7sYYuB+TdfX5DQ9WyV+1srqu8l/X3OPHF\n\t78ObfM2/SHuE6CduJ7V6j5Jlw6VQA1daZkC1546RBlSNuMxSlWvAeFGGjAlprhZYyvcG\n\tfgP2Tb61/hhqLm5X6asptnZXtM8SVUKGsIgGErh0fE/SWMu4vPD16uU9eEDjQ24SEsOg\n\tVjBlrMoHp1WlPExdJQPi+VFsOftl8pBPFxUibGk7WIiMThJ809YFWHWlW9sdH/0wY9lS\n\to21Q==",
        "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=ZtfNPlBkZCCYph80cHi2zc7zewiEPP0tLPgIMEpMWxE=;\n\tb=tgjB3bA4SvZxFtmQ50V6jkDE+29uhlgfqWKO/vXpvpDBZQFqJOfpakJCqsCf9t8Qnd\n\tCYZtjpB/SFRsFb3l/heJ905TfVaxHBxZvtoIr7xJjQgbu6W7maIt0F9SCF19ZbTyXjKB\n\tozRQNNbBrPma+HXy/0zVFfXGeywyJLvmVHVqNJyMRAlnNeG/0vO0behyO+owzXMfxFay\n\trzjfbsWooqEDI+GDzuni6/jzuD2ljMzL2RhLi2t4D24sCtcPkPkQdt26/ZbvC3tNCF+l\n\tIuAlCpu8gd78tfOisOKoEX+5u1LAOhL4wzX4HjkMceX7P6D7VH+g0bL+4O2hFvNwFMXb\n\tcH1Q==",
        "X-Gm-Message-State": "APt69E0LkvigU3dKE3YEDAVJGYF5jAeA6F2dwWa2PN4f3FTTD4qx8wLu\n\tM6RjtcnBoB6spah8UMGFEucTHauu",
        "X-Google-Smtp-Source": "AAOMgpdhtRTxQCGizUpJfwLSgDWmER0GesIwbyqDiyoLoREF1K6Tud0Rdk7kf/aZpVNtJ+sZmPQ+cw==",
        "X-Received": "by 2002:a1c:acc1:: with SMTP id\n\tv184-v6mr4333312wme.114.1530791343475; \n\tThu, 05 Jul 2018 04:49:03 -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:12 +0200",
        "Message-Id": "<42037d90036505fc764572b8a4c8b25a529c4ec7.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 05/27] eal: introduce dtor macros",
        "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": "Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/common/include/rte_common.h | 23 ++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h\nindex 434adfd45..0dd832728 100644\n--- a/lib/librte_eal/common/include/rte_common.h\n+++ b/lib/librte_eal/common/include/rte_common.h\n@@ -111,6 +111,29 @@ static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)\n #define RTE_INIT(func) \\\n \tRTE_INIT_PRIO(func, LAST)\n \n+/**\n+ * Run after main() with low priority.\n+ *\n+ * @param func\n+ *   Destructor function name.\n+ * @param prio\n+ *   Priority number must be above 100.\n+ *   Lowest number is the last to run.\n+ */\n+#define RTE_FINI_PRIO(func, prio) \\\n+static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)\n+\n+/**\n+ * Run after main() with high priority.\n+ *\n+ * The destructor will be run *before* prioritized destructors.\n+ *\n+ * @param func\n+ *   Destructor function name.\n+ */\n+#define RTE_FINI(func) \\\n+\tRTE_FINI_PRIO(func, LAST)\n+\n /**\n  * Force a function to be inlined\n  */\n",
    "prefixes": [
        "v10",
        "05/27"
    ]
}