get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104810,
    "url": "http://patchwork.dpdk.org/api/patches/104810/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638384245-12587-9-git-send-email-jizh@linux.microsoft.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": "<1638384245-12587-9-git-send-email-jizh@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1638384245-12587-9-git-send-email-jizh@linux.microsoft.com",
    "date": "2021-12-01T18:44:04",
    "name": "[v10,8/9] app/test: replace .sh script with .py script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ba71f075678a5c7ac79f81bc35982a112a9578f2",
    "submitter": {
        "id": 1934,
        "url": "http://patchwork.dpdk.org/api/people/1934/?format=api",
        "name": "Jie Zhou",
        "email": "jizh@linux.microsoft.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/1638384245-12587-9-git-send-email-jizh@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 20828,
            "url": "http://patchwork.dpdk.org/api/series/20828/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20828",
            "date": "2021-12-01T18:43:57",
            "name": "app/test: enable subset of tests on Windows",
            "version": 10,
            "mbox": "http://patchwork.dpdk.org/series/20828/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104810/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104810/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BD031A0C41;\n\tWed,  1 Dec 2021 19:44:53 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2CA61426F1;\n\tWed,  1 Dec 2021 19:44:17 +0100 (CET)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id E5D624068C\n for <dev@dpdk.org>; Wed,  1 Dec 2021 19:44:10 +0100 (CET)",
            "from\n linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net\n (linux.microsoft.com [13.77.154.182])\n by linux.microsoft.com (Postfix) with ESMTPSA id D413E20E61AF;\n Wed,  1 Dec 2021 10:44:09 -0800 (PST)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com D413E20E61AF",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1638384249;\n bh=G21A1xUkgd7EjMr79cHDN6COBYFivV6ZRxaSnZ6wmxU=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=gsNICwBag6Ycb6XxSqEN8MN824fE2tRWhhY51XfVLff3VAibth+pX+8f/35yVG2m/\n 4ouU7wroSpKvj5jOb5/+qiHFx6QDHlUwBs2eALz2BUhvUh3Le90yrtiXMTTcv3DcxD\n AIp4GD6xQTairLF6Tk6lweERIrNuFnFr1lvo10MU=",
        "From": "Jie Zhou <jizh@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "dmitry.kozliuk@gmail.com, roretzla@microsoft.com,\n navasile@linux.microsoft.com, dmitrym@microsoft.com,\n pallavi.kadam@intel.com, talshn@nvidia.com, thomas@monjalon.net,\n aconole@redhat.com",
        "Subject": "[PATCH v10 8/9] app/test: replace .sh script with .py script",
        "Date": "Wed,  1 Dec 2021 10:44:04 -0800",
        "Message-Id": "<1638384245-12587-9-git-send-email-jizh@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1638384245-12587-1-git-send-email-jizh@linux.microsoft.com>",
        "References": "<1638381938-6113-1-git-send-email-jizh@linux.microsoft.com>\n <1638384245-12587-1-git-send-email-jizh@linux.microsoft.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "- Add python script to check if system supports hugepages\n- Remove corresponding .sh script\n- Replace calling of .sh with corresponding .py in meson.build\n\nSigned-off-by: Jie Zhou <jizh@linux.microsoft.com>\n\n---\n app/test/has-hugepage.sh | 11 -----------\n app/test/has_hugepage.py | 26 ++++++++++++++++++++++++++\n app/test/meson.build     |  2 +-\n 3 files changed, 27 insertions(+), 12 deletions(-)\n delete mode 100755 app/test/has-hugepage.sh\n create mode 100644 app/test/has_hugepage.py",
    "diff": "diff --git a/app/test/has-hugepage.sh b/app/test/has-hugepage.sh\ndeleted file mode 100755\nindex d600fad319..0000000000\n--- a/app/test/has-hugepage.sh\n+++ /dev/null\n@@ -1,11 +0,0 @@\n-#! /bin/sh\n-# SPDX-License-Identifier: BSD-3-Clause\n-# Copyright 2020 Mellanox Technologies, Ltd\n-\n-if [ \"$(uname)\" = \"Linux\" ] ; then\n-\tcat /proc/sys/vm/nr_hugepages || echo 0\n-elif [ \"$(uname)\" = \"FreeBSD\" ] ; then\n-\techo 1 # assume FreeBSD always has hugepages\n-else\n-\techo 0\n-fi\ndiff --git a/app/test/has_hugepage.py b/app/test/has_hugepage.py\nnew file mode 100644\nindex 0000000000..f8e7087d1c\n--- /dev/null\n+++ b/app/test/has_hugepage.py\n@@ -0,0 +1,26 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright (c) 2021 Microsoft Corporation\n+\"\"\"This script checks if the system supports huge pages\"\"\"\n+\n+import platform\n+import ctypes\n+\n+os_name = platform.system()\n+if os_name == \"Linux\":\n+    try:\n+        with open(\"/proc/sys/vm/nr_hugepages\") as file_o:\n+            content = file_o.read()\n+            print(content)\n+    except:\n+            print(\"0\")\n+\n+elif os_name == \"FreeBSD\":\n+    # Assume FreeBSD always has hugepages enabled\n+    print(\"1\")\n+elif os_name == \"Windows\":\n+    if ctypes.windll.kernel32.GetLargePageMinimum() > 0:\n+        print(\"1\")\n+    else:\n+        print(\"0\")\n+else:\n+    print(\"0\")\ndiff --git a/app/test/meson.build b/app/test/meson.build\nindex 2b480adfba..97ee83029e 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -492,7 +492,7 @@ dpdk_test = executable('dpdk-test',\n              driver_install_path),\n         install: true)\n \n-has_hugepage = run_command('has-hugepage.sh').stdout().strip() != '0'\n+has_hugepage = run_command(py3, 'has_hugepage.py').stdout().strip() != '0'\n message('hugepage availability: @0@'.format(has_hugepage))\n \n # some perf tests (eg: memcpy perf autotest)take very long\n",
    "prefixes": [
        "v10",
        "8/9"
    ]
}