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 F2351A054A; Tue, 6 Dec 2022 18:28:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D6394161A; Tue, 6 Dec 2022 18:28:54 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id F36FA40A7F for ; Tue, 6 Dec 2022 18:28:51 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id E7DDD20B83CB; Tue, 6 Dec 2022 09:28:50 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E7DDD20B83CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670347730; bh=XeZqIMwmsdpYv7hitKMow3EcipXYFrhhSjkQKHdEfLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mttqr+L8qzdCja3FNuq9aFguYpLwh4z9ORN3s5iKA5X7jBpYhMjN2w9Q0li+pSQnk mg5h7iUnztAo12mNCNMpf7ki4m3DnP4qycNZUJjhBQNfYgTkPteEaYJFmgbS6zVhtr nukXupRFNjm3EdhNxZisIxzbE4H4F28bullQEwEQ= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, stephen@networkplumber.org, olivier.matz@6wind.com, mb@smartsharesystems.com, Tyler Retzlaff Subject: [PATCH v2 0/3] eal: rte_ctrl_thread_create API replacement Date: Tue, 6 Dec 2022 09:28:23 -0800 Message-Id: <1670347706-23802-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1670271868-11364-1-git-send-email-roretzla@linux.microsoft.com> References: <1670271868-11364-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove rte_ctrl_thread_create API which exposes pthread_t and provide new rte_control_thread_create API based on EALs rte_thread_t. To limit compatibility regression risk and ease of removal of the existing rte_ctrl_thread_create in the future duplicate most of the existing implementation. The duplication will be removed when rte_ctrl_thread_create is finally duplicated/removed. The unit test for rte_ctrl_thread_create has been duplicated to exercise both the old and the new API during transition, as with the API the duplicate test will be removed when the rte_ctrl_thread_create API is removed. v2: * correct style error void * (*foo) -> void *(*foo) * place retval on lhs of comparison 0 != foo() -> foo() != 0 * add missing commit description on patch 3/3 * add cast uintptr_t to pthread_t where appropriate * fix doxygen @param names to match parameter names Tyler Retzlaff (3): eal: add rte control thread create API test: add rte control thread create API test eal: deprecate pthread control thread create API app/test/test_lcores.c | 44 +++++++++++++++++ doc/guides/rel_notes/deprecation.rst | 4 ++ lib/eal/common/eal_common_thread.c | 93 ++++++++++++++++++++++++++++++++---- lib/eal/include/rte_thread.h | 29 +++++++++++ lib/eal/version.map | 3 ++ 5 files changed, 165 insertions(+), 8 deletions(-) -- 1.8.3.1 Series-Acked-by: Morten Brørup