get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92956,
    "url": "https://patches.dpdk.org/api/patches/92956/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1620236174-10676-5-git-send-email-jizh@linux.microsoft.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1620236174-10676-5-git-send-email-jizh@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1620236174-10676-5-git-send-email-jizh@linux.microsoft.com",
    "date": "2021-05-05T17:36:08",
    "name": "[v12,04/10] eal/Windows: add clock_gettime on Windows",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b77f9eb7520427cb3099e8846b73168136a6f534",
    "submitter": {
        "id": 1934,
        "url": "https://patches.dpdk.org/api/people/1934/?format=api",
        "name": "Jie Zhou",
        "email": "jizh@linux.microsoft.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1620236174-10676-5-git-send-email-jizh@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 16837,
            "url": "https://patches.dpdk.org/api/series/16837/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16837",
            "date": "2021-05-05T17:36:05",
            "name": "app/testpmd: enable testpmd on Windows",
            "version": 12,
            "mbox": "https://patches.dpdk.org/series/16837/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/92956/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/92956/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 59DA0A0524;\n\tWed,  5 May 2021 19:36:44 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1547541125;\n\tWed,  5 May 2021 19:36:25 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 7DA0E410F1;\n Wed,  5 May 2021 19:36:19 +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 CA4FC20B800A;\n Wed,  5 May 2021 10:36:18 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com CA4FC20B800A",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1620236178;\n bh=U07gpvYj57fW7/atuUHJT87TKPDa0NQdWpfU7LJUfYg=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=kPtuAv/+MkO03MbDhv2ONPGdYfxcH4Kosy1292wAnIPzFqVV3lJLYoWztRhD4dBcl\n HSzPE7ZL4UG/XpkNKkrAaVdXRiSFJ3Imc5T4j+Un0SdfmEIQxF0IFZMrbPixagdUNS\n 2PtjkHguRBYLHf6LcmHsrOa5zYzaPV7WJIkZjJNY=",
        "From": "Jie Zhou <jizh@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "dmitry.kozliuk@gmail.com, xiaoyun.li@intel.com, roretzla@microsoft.com,\n talshn@nvidia.com, pallavi.kadam@intel.com, thomas@monjalon.net,\n bruce.richardson@intel.com, ferruh.yigit@intel.com,\n konstantin.ananyev@intel.com, stable@dpdk.org",
        "Date": "Wed,  5 May 2021 10:36:08 -0700",
        "Message-Id": "<1620236174-10676-5-git-send-email-jizh@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1620236174-10676-1-git-send-email-jizh@linux.microsoft.com>",
        "References": "<1620235115-7062-1-git-send-email-jizh@linux.microsoft.com>\n <1620236174-10676-1-git-send-email-jizh@linux.microsoft.com>",
        "Subject": "[dpdk-dev] [PATCH v12 04/10] eal/Windows: add clock_gettime on\n Windows",
        "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 clock_gettime on Windows in rte_os_shim.h\n\nSigned-off-by: Jie Zhou <jizh@microsoft.com>\nSigned-off-by: Jie Zhou <jizh@linux.microsoft.com>\n---\n lib/eal/windows/include/rte_os_shim.h | 38 +++++++++++++++++++++++++++\n 1 file changed, 38 insertions(+)",
    "diff": "diff --git a/lib/eal/windows/include/rte_os_shim.h b/lib/eal/windows/include/rte_os_shim.h\nindex e60f27400..ec1087290 100644\n--- a/lib/eal/windows/include/rte_os_shim.h\n+++ b/lib/eal/windows/include/rte_os_shim.h\n@@ -75,4 +75,42 @@ rte_timespec_get(struct timespec *now, int base)\n \n #endif /* RTE_TOOLCHAIN_GCC */\n \n+/* Identifier for system-wide realtime clock. */\n+#define CLOCK_REALTIME                  0\n+/* Monotonic system-wide clock. */\n+#define CLOCK_MONOTONIC                 1\n+/* High-resolution timer from the CPU. */\n+#define CLOCK_PROCESS_CPUTIME_ID        2\n+/* Thread-specific CPU-time clock. */\n+#define CLOCK_THREAD_CPUTIME_ID         3\n+\n+#define NS_PER_SEC 1E9\n+\n+typedef int clockid_t;\n+\n+static inline int\n+rte_clock_gettime(clockid_t clock_id, struct timespec *tp)\n+{\n+\tLARGE_INTEGER pf, pc;\n+\tLONGLONG nsec;\n+\tswitch (clock_id) {\n+\tcase CLOCK_REALTIME:\n+\t\tif (timespec_get(tp, TIME_UTC) != TIME_UTC)\n+\t\t\treturn -1;\n+\t\treturn 0;\n+\tcase CLOCK_MONOTONIC:\n+\t\tif (QueryPerformanceFrequency(&pf) == 0)\n+\t\t\treturn -1;\n+\t\tif (QueryPerformanceCounter(&pc) == 0)\n+\t\t\treturn -1;\n+\t\tnsec = pc.QuadPart * NS_PER_SEC / pf.QuadPart;\n+\t\ttp->tv_sec = nsec / NS_PER_SEC;\n+\t\ttp->tv_nsec = nsec - tp->tv_sec * NS_PER_SEC;\n+\t\treturn 0;\n+\tdefault:\n+\t\treturn -1;\n+\t}\n+}\n+#define clock_gettime(clock_id, tp) rte_clock_gettime(clock_id, tp)\n+\n #endif /* _RTE_OS_SHIM_ */\n",
    "prefixes": [
        "v12",
        "04/10"
    ]
}