From patchwork Wed Dec 7 19:00:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 120540 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id D2FD6A00C3; Wed, 7 Dec 2022 20:00:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44DC042D40; Wed, 7 Dec 2022 20:00:25 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9CE5940156 for ; Wed, 7 Dec 2022 20:00:20 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 5B6B420B83F0; Wed, 7 Dec 2022 11:00:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5B6B420B83F0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670439619; bh=uz+9QIaiijNUtXz7U/fiuu1nAIug/MnKc7tKxjBXfB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U9gGr5iyF+j0M1sQpWB2tKEY7kneF5LV9IMEtdeYgEbfW02Lpsw7trsU/Q8cNHLq5 OTdD/T/LN5/nq5LyyTLgcS3R4kiCfiRB6f8P9DORY+yPLYYjb5ae7f6WmSXKLq2gBe zBMNn2UaCbnWaeF/iAIGm/JJGZWqM3evt4oQYvZ8= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, olivier.matz@6wind.com, stephen@networkplumber.org, Tyler Retzlaff Subject: [PATCH 5/5] eal: deprecate rte thread setname API Date: Wed, 7 Dec 2022 11:00:17 -0800 Message-Id: <1670439617-9054-6-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> References: <1670439617-9054-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 | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index b9b02dc..b03c935 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -119,3 +119,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 944d89e..3ca9c52 100644 --- a/lib/eal/include/rte_lcore.h +++ b/lib/eal/include/rte_lcore.h @@ -393,6 +393,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); /**