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 8FCDE4238D; Fri, 13 Jan 2023 19:52:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0754342E04; Fri, 13 Jan 2023 19:52:09 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9566242D86 for ; Fri, 13 Jan 2023 19:52:05 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id F043B20DFDBB; Fri, 13 Jan 2023 10:52:04 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F043B20DFDBB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673635924; bh=4mKJWvo2iaVGNpwvjBHCun2o/+frdTiWGVD2nJvJOQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O8l19m7B4Gn5m/YXyjntEFnZqEMmq2JxDkOV64lAfp5EwHgXE+w4sa2ePz9FghGQN i1GtIyu7z7+eYui8BA23ATXf0jJnDf2tVb/Fjt2yT7A/mzzwUvVXmIzXPgo+wHW/Hh 2LyuPGLLritEWwxrtcNlWzCo3Rx4aW5d48qCTt/E= 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 v4 4/4] eal: deprecate rte thread setname API Date: Fri, 13 Jan 2023 10:52:03 -0800 Message-Id: <1673635923-12432-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673635923-12432-1-git-send-email-roretzla@linux.microsoft.com> References: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> <1673635923-12432-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