get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92967,
    "url": "http://patches.dpdk.org/api/patches/92967/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1620241931-28435-5-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": "<1620241931-28435-5-git-send-email-jizh@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1620241931-28435-5-git-send-email-jizh@linux.microsoft.com",
    "date": "2021-05-05T19:12:05",
    "name": "[v13,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": "http://patches.dpdk.org/api/people/1934/?format=api",
        "name": "Jie Zhou",
        "email": "jizh@linux.microsoft.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patches.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1620241931-28435-5-git-send-email-jizh@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 16839,
            "url": "http://patches.dpdk.org/api/series/16839/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16839",
            "date": "2021-05-05T19:12:02",
            "name": "app/testpmd: enable testpmd on Windows",
            "version": 13,
            "mbox": "http://patches.dpdk.org/series/16839/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92967/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92967/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 A335FA0524;\n\tWed,  5 May 2021 21:12:38 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 20A7D4110A;\n\tWed,  5 May 2021 21:12:23 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id C9B07410E1;\n Wed,  5 May 2021 21:12:17 +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 0C75920B800A;\n Wed,  5 May 2021 12:12:17 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 0C75920B800A",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1620241937;\n bh=ZDBOm+Ks9XVnmPq8hedt8B4QABCoUGBWGUlNOPpt30I=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=ljMCUH10l6PITkYcHreJX9W+/eJbC5QzRx/R2GHF+mCK2SpWBKb04vpLkfYOaHg7U\n Rz/g15lPywgfvh+NQ/90CvDGfiGTQl26FItAkkqVOfId1lDc/ZNr866oeRDazNA+sg\n DVu0K/GUSJfIEhDOBJMIXT7vFfjnakLRgKcQTs6g=",
        "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 12:12:05 -0700",
        "Message-Id": "<1620241931-28435-5-git-send-email-jizh@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1620241931-28435-1-git-send-email-jizh@linux.microsoft.com>",
        "References": "<1620236174-10676-1-git-send-email-jizh@linux.microsoft.com>\n <1620241931-28435-1-git-send-email-jizh@linux.microsoft.com>",
        "Subject": "[dpdk-dev] [PATCH v13 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 3763cae62..cd1f53dfa 100644\n--- a/lib/eal/windows/include/rte_os_shim.h\n+++ b/lib/eal/windows/include/rte_os_shim.h\n@@ -77,4 +77,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": [
        "v13",
        "04/10"
    ]
}