get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41482,
    "url": "http://patchwork.dpdk.org/api/patches/41482/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/293393804c84669c55fbdfd157a6c88150e7754e.1529940601.git.anatoly.burakov@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<293393804c84669c55fbdfd157a6c88150e7754e.1529940601.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/293393804c84669c55fbdfd157a6c88150e7754e.1529940601.git.anatoly.burakov@intel.com",
    "date": "2018-06-25T15:59:45",
    "name": "[RFC,8/9] usertools: add hugepage info script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "814d9fe2072f3455086f21c1cda7e2275022c5fb",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/293393804c84669c55fbdfd157a6c88150e7754e.1529940601.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 225,
            "url": "http://patchwork.dpdk.org/api/series/225/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=225",
            "date": "2018-06-25T15:59:39",
            "name": "Modularize and enhance DPDK Python scripts",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/225/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/41482/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/41482/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 5EB9F4F9A;\n\tMon, 25 Jun 2018 18:00:00 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 2E22D4C9D\n\tfor <dev@dpdk.org>; Mon, 25 Jun 2018 17:59:51 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t25 Jun 2018 08:59:49 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga004.jf.intel.com with ESMTP; 25 Jun 2018 08:59:48 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw5PFxldL032521; Mon, 25 Jun 2018 16:59:47 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w5PFxlmN026641;\n\tMon, 25 Jun 2018 16:59:47 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w5PFxl0P026637;\n\tMon, 25 Jun 2018 16:59:47 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,270,1526367600\"; d=\"scan'208\";a=\"210998595\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "john.mcnamara@intel.com, bruce.richardson@intel.com,\n\tpablo.de.lara.guarch@intel.com, david.hunt@intel.com,\n\tmohammad.abdul.awal@intel.com",
        "Date": "Mon, 25 Jun 2018 16:59:45 +0100",
        "Message-Id": "<293393804c84669c55fbdfd157a6c88150e7754e.1529940601.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": [
            "<cover.1529940601.git.anatoly.burakov@intel.com>",
            "<cover.1529940601.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1529940601.git.anatoly.burakov@intel.com>",
            "<cover.1529940601.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [RFC 8/9] usertools: add hugepage info script",
        "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": "Add a simple hugepage info script for demonstration purposes.\n\nIt lists the following information:\n- Currently configured persistent hugetlbfs mountpoints (fstab)\n- Currently mounted hugetlbfs mountpoints\n- Total number of hugepages for each size\n- Per-NUMA node number of hugepages for each size\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n usertools/hugepage-info.py | 32 ++++++++++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)\n create mode 100755 usertools/hugepage-info.py",
    "diff": "diff --git a/usertools/hugepage-info.py b/usertools/hugepage-info.py\nnew file mode 100755\nindex 000000000..bbea35e7b\n--- /dev/null\n+++ b/usertools/hugepage-info.py\n@@ -0,0 +1,32 @@\n+#!/usr/bin/env python\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Intel Corporation\n+\n+\n+from __future__ import print_function\n+from DPDKConfigLib import HugeUtil, PlatformInfo, Util\n+\n+pc = HugeUtil.PersistentMountpointConfig()\n+print(\"Persistent hugetlbfs mountpoints:\")\n+\n+for sz, mp in pc.mountpoints.items():\n+    print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), mp))\n+\n+rc = HugeUtil.RuntimeMountpointConfig()\n+print(\"Current hugetlbfs mountpoints:\")\n+\n+for sz, mp in rc.mountpoints.items():\n+    print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), mp))\n+\n+info = PlatformInfo.PlatformInfo()\n+rhc = HugeUtil.RuntimeHugepageConfig()\n+print(\"Current hugepage configuration:\")\n+for sz, nr in rhc.total_nr_hugepages.items():\n+    print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), nr))\n+\n+print(\"Current per-NUMA node configuration:\")\n+for node in info.numa_nodes:\n+    for pagesz in info.hugepage_sizes_supported:\n+        print(\"[Node %s] %s: %s\" % (node,\n+                                    Util.kilobytes_to_human_readable(pagesz),\n+                                    rhc.hugepages_per_node[node, pagesz]))\n",
    "prefixes": [
        "RFC",
        "8/9"
    ]
}