Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122450/?format=api
http://patches.dpdk.org/api/patches/122450/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1674502774-20253-4-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": "<1674502774-20253-4-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1674502774-20253-4-git-send-email-roretzla@linux.microsoft.com", "date": "2023-01-23T19:39:32", "name": "[v7,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": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1674502774-20253-4-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 26630, "url": "http://patches.dpdk.org/api/series/26630/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26630", "date": "2023-01-23T19:39:29", "name": "add rte_thread_set_name API for rte_thread_t", "version": 7, "mbox": "http://patches.dpdk.org/series/26630/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/122450/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/122450/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 54A6B4246C;\n\tMon, 23 Jan 2023 20:39:43 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7E4E640E2D;\n\tMon, 23 Jan 2023 20:39:38 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id DB45540684\n for <dev@dpdk.org>; Mon, 23 Jan 2023 20:39:36 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 36D2820E2C08; Mon, 23 Jan 2023 11:39:36 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 36D2820E2C08", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1674502776;\n bh=9rmDbCrh+YjpojsrkPlTXbp4Nh5ceLRvgK6/UToh3qc=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=ixRYjLHV+5XbiUuE4uhr5kf+2rsveyR+/yy5w+R4f8VFBISLYDs2Aurdmz4Sr4e9X\n 585Ok8ZTWzpKudGxD+SpdoXW1OpqaaOLFWx0ZL05brqY5vgIl85UXb1DguExL+acAF\n +aUw+656j2+kuNmY75L8HE0r+ac7m8Hk4u1xy/mQ=", "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 v7 3/5] eal: set thread name on Windows worker threads", "Date": "Mon, 23 Jan 2023 11:39:32 -0800", "Message-Id": "<1674502774-20253-4-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1674502774-20253-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com>\n <1674502774-20253-1-git-send-email-roretzla@linux.microsoft.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n\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": [ "v7", "3/5" ] }{ "id": 122450, "url": "