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 8E6A4423BA; Thu, 12 Jan 2023 22:55:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 436C642DD4; Thu, 12 Jan 2023 22:55:42 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id A9E3842DA6 for ; Thu, 12 Jan 2023 22:55:38 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 12B7120DFE09; Thu, 12 Jan 2023 13:55:37 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 12B7120DFE09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673560538; bh=4mKJWvo2iaVGNpwvjBHCun2o/+frdTiWGVD2nJvJOQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aum7VEyyMm96Pwk9dP1HS+gmxxza2MUlOsg/Xs7TY3YsQyRZZplxYBhgqECyS9lPX UynrR61xYGtr5x9QZi/4rCKGss5NiJpG76uD6tWsGr4OwxMogCicRejZNGEuPSDCws Paqf2G9IPJQ1/sUmJsZaDmIDr5arpYsVukt6LmMM= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com, Tyler Retzlaff Subject: [PATCH v3 4/4] eal: deprecate rte thread setname API Date: Thu, 12 Jan 2023 13:55:36 -0800 Message-Id: <1673560536-31057-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673560536-31057-1-git-send-email-roretzla@linux.microsoft.com> References: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> <1673560536-31057-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