get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 102812,
    "url": "http://patches.dpdk.org/api/patches/102812/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1635215204-20604-11-git-send-email-jizh@linux.microsoft.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": "<1635215204-20604-11-git-send-email-jizh@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1635215204-20604-11-git-send-email-jizh@linux.microsoft.com",
    "date": "2021-10-26T02:26:43",
    "name": "[v7,10/11] app/test: replace .sh scripts with .py scripts",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8cf8f5d5fd3618531b98efde59105e0b23f1b2c3",
    "submitter": {
        "id": 1934,
        "url": "http://patches.dpdk.org/api/people/1934/?format=api",
        "name": "Jie Zhou",
        "email": "jizh@linux.microsoft.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1635215204-20604-11-git-send-email-jizh@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 19969,
            "url": "http://patches.dpdk.org/api/series/19969/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19969",
            "date": "2021-10-26T02:26:35",
            "name": "app/test: enable subset of tests on Windows",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/19969/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/102812/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/102812/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 F1AC8A0C47;\n\tTue, 26 Oct 2021 04:27:25 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8FCFC41187;\n\tTue, 26 Oct 2021 04:27:07 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 4C32440A4B\n for <dev@dpdk.org>; Tue, 26 Oct 2021 04:26:50 +0200 (CEST)",
            "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 6BADC20ABAC0;\n Mon, 25 Oct 2021 19:26:49 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 6BADC20ABAC0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1635215209;\n bh=aK4qu0rzD9HqPA+15S6Dvsz9sRE1f+sc2CeRbedvicE=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=ngyI43FXSEWVw1oXLGxG/TPRMpj1eZKOOegoHOe/7JyZ3eXOpxxM7cFC8KqbPRPOl\n rpBdqKrSfSpUhaTQ5gRXqgeZVa8XJ5xmlwGNeBmdXKYP4kO9Cx+MaA7+Ri2xrAf47n\n Hn5Y+3hYTItG74v15LLoeNXgFJ+/vEBKSwIdLIkM=",
        "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",
        "Date": "Mon, 25 Oct 2021 19:26:43 -0700",
        "Message-Id": "<1635215204-20604-11-git-send-email-jizh@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1635215204-20604-1-git-send-email-jizh@linux.microsoft.com>",
        "References": "<1634228502-14701-1-git-send-email-jizh@linux.microsoft.com>\n <1635215204-20604-1-git-send-email-jizh@linux.microsoft.com>",
        "Subject": "[dpdk-dev] [PATCH v7 10/11] app/test: replace .sh scripts with .py\n scripts",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "- Add python script to check if system supports hugepages\n- Remove corresponding .sh scripts\n- Replace calling of .sh with corresponding .py in meson.build\n\nSigned-off-by: Jie Zhou <jizh@linux.microsoft.com>\n---\n app/test/has-hugepage.sh | 11 -----------\n app/test/has_hugepage.py | 25 +++++++++++++++++++++++++\n app/test/meson.build     |  2 +-\n 3 files changed, 26 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..70107c61fd\n--- /dev/null\n+++ b/app/test/has_hugepage.py\n@@ -0,0 +1,25 @@\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+osName = platform.system()\n+if osName == \"Linux\":\n+    with open(\"/proc/sys/vm/nr_hugepages\") as file_o:\n+        content = file_o.read()\n+        print(content)\n+elif osName == \"FreeBSD\":\n+    # Assume FreeBSD always has hugepages enabled\n+    print(\"1\")\n+elif osName == \"Windows\":\n+    # On Windows, determine if large page is supported based on the\n+    # value returned by GetLargePageMinimum. If the return value is zero,\n+    # the processor does not support large pages.\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 20f36a1803..210ccd29b0 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -463,7 +463,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": [
        "v7",
        "10/11"
    ]
}