get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 122319,
    "url": "https://patches.dpdk.org/api/patches/122319/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1674071646-6854-4-git-send-email-roretzla@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": "<1674071646-6854-4-git-send-email-roretzla@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1674071646-6854-4-git-send-email-roretzla@linux.microsoft.com",
    "date": "2023-01-18T19:54:04",
    "name": "[v6,3/5] eal: set thread name on Windows worker threads",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b48a51909363e950e4e879b121ae75011d25961a",
    "submitter": {
        "id": 2077,
        "url": "https://patches.dpdk.org/api/people/2077/?format=api",
        "name": "Tyler Retzlaff",
        "email": "roretzla@linux.microsoft.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1674071646-6854-4-git-send-email-roretzla@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 26599,
            "url": "https://patches.dpdk.org/api/series/26599/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26599",
            "date": "2023-01-18T19:54:01",
            "name": "add rte_thread_set_name API for rte_thread_t",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/26599/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/122319/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/122319/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 40D5142411;\n\tWed, 18 Jan 2023 20:54:18 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8751F42D16;\n\tWed, 18 Jan 2023 20:54:13 +0100 (CET)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 2075B4067E\n for <dev@dpdk.org>; Wed, 18 Jan 2023 20:54:11 +0100 (CET)",
            "by linux.microsoft.com (Postfix, from userid 1086)\n id 6BF4F20E0A09; Wed, 18 Jan 2023 11:54:10 -0800 (PST)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 6BF4F20E0A09",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1674071650;\n bh=JK33kn+Fp53Awd2PliiIZhJ6/BtWFXhNabnUiUyrK3w=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=l24hEeVTi0qYIQQQvJhxokQkgbaSO4ErTRuCJQQTTi8ZRgp5YxEWvq1TGOtwrkY3y\n K7BiSmq+mlTuhgBOxV1xiL0uOJ6GNMeKlFstUOP2zigWePLrOT13qrK4ihmVvRSt7e\n 5lVRvyyX4GIgYMc6VoyY5oPvqet5mk6Sl9HthbMs=",
        "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, david.marchand@redhat.com, jerinjacobk@gmail.com,\n mb@smartsharesystems.com, Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "Subject": "[PATCH v6 3/5] eal: set thread name on Windows worker threads",
        "Date": "Wed, 18 Jan 2023 11:54:04 -0800",
        "Message-Id": "<1674071646-6854-4-git-send-email-roretzla@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1674071646-6854-1-git-send-email-roretzla@linux.microsoft.com>",
        "References": "<1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com>\n <1674071646-6854-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": "Bring Windows EAL worker thread initialization in line with linux &\nfreebsd by setting the worker thread name using the new\nplatform agnostic rte_thread_set_name API.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/windows/eal.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/lib/eal/windows/eal.c b/lib/eal/windows/eal.c\nindex b9f95ed..e561f87 100644\n--- a/lib/eal/windows/eal.c\n+++ b/lib/eal/windows/eal.c\n@@ -282,6 +282,7 @@ enum rte_proc_type_t\n \tenum rte_iova_mode iova_mode;\n \tint ret;\n \tchar cpuset[RTE_CPU_AFFINITY_STR_LEN];\n+\tchar thread_name[RTE_MAX_THREAD_NAME_LEN];\n \n \teal_log_init(NULL, 0);\n \n@@ -437,6 +438,12 @@ enum rte_proc_type_t\n \t\tif (rte_thread_create(&lcore_config[i].thread_id, NULL,\n \t\t\t\teal_thread_loop, (void *)(uintptr_t)i) != 0)\n \t\t\trte_panic(\"Cannot create thread\\n\");\n+\n+\t\t/* Set thread_name for aid in debugging. */\n+\t\tsnprintf(thread_name, sizeof(thread_name),\n+\t\t\t\"rte-worker-%d\", i);\n+\t\trte_thread_set_name(lcore_config[i].thread_id, thread_name);\n+\n \t\tret = rte_thread_set_affinity_by_id(lcore_config[i].thread_id,\n \t\t\t&lcore_config[i].cpuset);\n \t\tif (ret != 0)\n",
    "prefixes": [
        "v6",
        "3/5"
    ]
}