From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E720423FF; Tue, 17 Jan 2023 19:22:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD8D142D33; Tue, 17 Jan 2023 19:21:54 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6672242BB1 for ; Tue, 17 Jan 2023 19:21:51 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id A9A7420E09E2; Tue, 17 Jan 2023 10:21:50 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A9A7420E09E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673979710; bh=4mKJWvo2iaVGNpwvjBHCun2o/+frdTiWGVD2nJvJOQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E0SDGMWhb8kBBut09b8e6Ue4vzUeiv/Aijdh0W6cJgOBHdEpBbOTXMIxs7qA7RObc 6cD5Nhcd2CtUU2xTuLRL/Bn+j8mC85TFEBhDsSD+XDmO0xmhUqn5ALoQw6qUwEt5nI eD5aRWtKOS3XVHovqKn0lLw07aaINzMBY6y0DH8I= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com, jerinjacobk@gmail.com, Tyler Retzlaff Subject: [PATCH v5 4/4] eal: deprecate rte thread setname API Date: Tue, 17 Jan 2023 10:21:49 -0800 Message-Id: <1673979709-8613-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673979709-8613-1-git-send-email-roretzla@linux.microsoft.com> References: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> <1673979709-8613-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Notify deprecation of rte_thread_setname API, it is being removed as it exposes platform-specific thread details. The functionality it provided is now implicitly provided via the rte_lcore_set_name API if the underlying platform supports it. Signed-off-by: Tyler Retzlaff --- doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/eal/include/rte_lcore.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index e18ac34..2990bb1 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -126,3 +126,7 @@ Deprecation Notices Its removal has been postponed to let potential users report interest in maintaining it. In the absence of such interest, this library will be removed in DPDK 23.11. + +* eal: The function ``rte_thread_setname`` will be removed, continuing + the effort to decouple EAL from platform-specific thread + implementations. diff --git a/lib/eal/include/rte_lcore.h b/lib/eal/include/rte_lcore.h index 9c78650..2fb3091 100644 --- a/lib/eal/include/rte_lcore.h +++ b/lib/eal/include/rte_lcore.h @@ -13,6 +13,7 @@ */ #include +#include #include #include #include @@ -349,6 +350,7 @@ enum rte_lcore_role_t { * @return * On success, return 0; otherwise return a negative value. */ +__rte_deprecated int rte_thread_setname(pthread_t id, const char *name); /** -- 1.8.3.1