get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129428,
    "url": "http://patches.dpdk.org/api/patches/129428/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1689024585-17303-2-git-send-email-roretzla@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": "<1689024585-17303-2-git-send-email-roretzla@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1689024585-17303-2-git-send-email-roretzla@linux.microsoft.com",
    "date": "2023-07-10T21:29:45",
    "name": "eal: provide per lcore macros for MSVC",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d5fad08e2316101d2bc8e0668cbd547ff15fe73d",
    "submitter": {
        "id": 2077,
        "url": "http://patches.dpdk.org/api/people/2077/?format=api",
        "name": "Tyler Retzlaff",
        "email": "roretzla@linux.microsoft.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1689024585-17303-2-git-send-email-roretzla@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 28888,
            "url": "http://patches.dpdk.org/api/series/28888/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28888",
            "date": "2023-07-10T21:29:45",
            "name": "eal: provide per lcore macros for MSVC",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/28888/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/129428/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/129428/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 A5E8B42DDB;\n\tMon, 10 Jul 2023 23:29:55 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 65C14410F1;\n\tMon, 10 Jul 2023 23:29:52 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 05DEC40698\n for <dev@dpdk.org>; Mon, 10 Jul 2023 23:29:49 +0200 (CEST)",
            "by linux.microsoft.com (Postfix, from userid 1086)\n id 3C17421C4253; Mon, 10 Jul 2023 14:29:49 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 3C17421C4253",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1689024589;\n bh=ZXGGcm8oUgc2jfuTBX9YPY0MWnpdG6tLOZyax8hWvj8=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=hmMs+3u3IPqvroC7yM2BbrY9htLZ0fwj6C4dx0YRftzmn0+v9kZOTLCBQ82p9Yq5j\n WE2nz8oNOo0b5OU8+vnjC050WbuyhBZuojrRBuvME/cdy8tX81pOcgrdmo9JEGQrQk\n R3YzHaHMC/yhCuc99IhmWz9Imy2hbbqN64GrKrKc=",
        "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, thomas@monjalon.net,\n Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "Subject": "[PATCH] eal: provide per lcore macros for MSVC",
        "Date": "Mon, 10 Jul 2023 14:29:45 -0700",
        "Message-Id": "<1689024585-17303-2-git-send-email-roretzla@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1689024585-17303-1-git-send-email-roretzla@linux.microsoft.com>",
        "References": "<1689024585-17303-1-git-send-email-roretzla@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": "Provide per lcore macros that use __declspec(thread) and uses C23\ntypeof.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/rte_per_lcore.h | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/lib/eal/include/rte_per_lcore.h b/lib/eal/include/rte_per_lcore.h\nindex eaedf0c..4ef8905 100644\n--- a/lib/eal/include/rte_per_lcore.h\n+++ b/lib/eal/include/rte_per_lcore.h\n@@ -24,6 +24,7 @@\n \n #include <pthread.h>\n \n+#ifndef RTE_TOOLCHAIN_MSVC\n /**\n  * Macro to define a per lcore variable \"var\" of type \"type\", don't\n  * use keywords like \"static\" or \"volatile\" in type, just prefix the\n@@ -37,6 +38,13 @@\n  */\n #define RTE_DECLARE_PER_LCORE(type, name)\t\t\t\\\n \textern __thread __typeof__(type) per_lcore_##name\n+#else\n+#define RTE_DEFINE_PER_LCORE(type, name)\t\t\t\\\n+\t__declspec(thread) typeof(type) per_lcore_##name\n+\n+#define RTE_DECLARE_PER_LCORE(type, name)\t\t\t\\\n+\textern __declspec(thread) typeof(type) per_lcore_##name\n+#endif\n \n /**\n  * Read/write the per-lcore variable value\n",
    "prefixes": []
}