Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122451/?format=api
http://patches.dpdk.org/api/patches/122451/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1674502774-20253-5-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-5-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1674502774-20253-5-git-send-email-roretzla@linux.microsoft.com", "date": "2023-01-23T19:39:33", "name": "[v7,4/5] drivers: mlx5 use rte thread set name", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "51322399014a289ed8ab4194953ce36f78adc220", "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-5-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/122451/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/122451/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 272AB4246C;\n\tMon, 23 Jan 2023 20:39:49 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6617242D2C;\n\tMon, 23 Jan 2023 20:39:39 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id DBF9D40DDB\n for <dev@dpdk.org>; Mon, 23 Jan 2023 20:39:36 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 42C3120E2C0B; Mon, 23 Jan 2023 11:39:36 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 42C3120E2C0B", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1674502776;\n bh=Sv8bBxc2wPrfiJZjzaJPi0izkP07wcmjctZibVXet9w=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=iK72Xg6TIMeGJTp1bRF+yE8bsOthhOL5h3Y7q20fcg0KO6gmLINDTSVrDqCfKmtao\n koxXhV8sAmz9eSKdABNPCNaEPS7tURguxYkKJ1Dr98Am+Iq8u3chEKl/8kgJeU2CZ1\n NaQurm6jnf+UlLtgEMGwh5fO8Il/8Q5XQm33KLyE=", "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 4/5] drivers: mlx5 use rte thread set name", "Date": "Mon, 23 Jan 2023 11:39:33 -0800", "Message-Id": "<1674502774-20253-5-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": "Use the new internal rte_thread_set_name API instead of the now\ndeprecated rte_thread_setname API.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n\n---\n drivers/net/mlx5/mlx5_hws_cnt.c | 3 ++-\n drivers/vdpa/mlx5/mlx5_vdpa_event.c | 3 +--\n 2 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/mlx5_hws_cnt.c b/drivers/net/mlx5/mlx5_hws_cnt.c\nindex 51704ef..05cc954 100644\n--- a/drivers/net/mlx5/mlx5_hws_cnt.c\n+++ b/drivers/net/mlx5/mlx5_hws_cnt.c\n@@ -465,7 +465,8 @@ struct mlx5_hws_cnt_pool *\n \t}\n \tsnprintf(name, CNT_THREAD_NAME_MAX - 1, \"%s/svc@%d\",\n \t\t sh->ibdev_name, service_core);\n-\trte_thread_setname(sh->cnt_svc->service_thread, name);\n+\trte_thread_set_name((rte_thread_t){(uintptr_t)sh->cnt_svc->service_thread},\n+\t\tname);\n \tCPU_SET(service_core, &cpuset);\n \tpthread_setaffinity_np(sh->cnt_svc->service_thread, sizeof(cpuset),\n \t\t\t\t&cpuset);\ndiff --git a/drivers/vdpa/mlx5/mlx5_vdpa_event.c b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\nindex 4d81976..f3d392c 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n@@ -547,8 +547,7 @@\n \t\tgoto out;\n \t}\n \tsnprintf(name, sizeof(name), \"vDPA-mlx5-%d\", priv->vid);\n-\tif (rte_thread_setname(priv->timer_tid, name) != 0)\n-\t\tDRV_LOG(DEBUG, \"Cannot set timer thread name.\");\n+\trte_thread_set_name((rte_thread_t){(uintptr_t)priv->timer_tid}, name);\n out:\n \tif (attrp != NULL)\n \t\tpthread_attr_destroy(attrp);\n", "prefixes": [ "v7", "4/5" ] }{ "id": 122451, "url": "