From patchwork Mon Dec 5 20:24:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 120460 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 865FCA0547; Mon, 5 Dec 2022 21:24:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22A2B42D20; Mon, 5 Dec 2022 21:24:35 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 34E3640395 for ; Mon, 5 Dec 2022 21:24:32 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2101F20B83CB; Mon, 5 Dec 2022 12:24:31 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2101F20B83CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670271871; bh=bvaBMFjzUCJePVqlBYDk7EFCCce2QtPDsoSimpxf+no=; h=From:To:Cc:Subject:Date:From; b=Ei0W7OhBNnfX/IqXceUy/Yhn6cV8GUUTHGcXcXm0HKl73INgYTVc94sTpLFjA9i/u ksOW+sIR5/VHZ35s+6lBiZwuKDcOdiHQA1UP6YDwUiIUmgt5ng1u5YYxydhCpOLL6U 4yALncvV7jy+Z2pwZYa30H3jXhKottd8Hx3SuCVA= From: Tyler Retzlaff To: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com, stephen@networkplumber.org, olivier.matz@6wind.com Cc: Tyler Retzlaff Subject: [PATCH 0/3] eal: rte_ctrl_thread_create API replacement Date: Mon, 5 Dec 2022 12:24:25 -0800 Message-Id: <1670271868-11364-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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. 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(-) Reviewed-by: Mattias Rönnblom