From patchwork Wed Jan 6 20:35:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tal Shnaiderman X-Patchwork-Id: 86076 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3530CA09FF; Wed, 6 Jan 2021 21:36:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 466AD140E51; Wed, 6 Jan 2021 21:36:26 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 191D2140E1D for ; Wed, 6 Jan 2021 21:36:22 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from talshn@nvidia.com) with SMTP; 6 Jan 2021 22:36:20 +0200 Received: from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 106KaKmt026677; Wed, 6 Jan 2021 22:36:20 +0200 From: Tal Shnaiderman To: dev@dpdk.org Cc: thomas@monjalon.net, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, david.marchand@redhat.com Date: Wed, 6 Jan 2021 22:35:51 +0200 Message-Id: <20210106203553.9876-1-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20210106194543.14024-1-talshn@nvidia.com> References: <20210106194543.14024-1-talshn@nvidia.com> Subject: [dpdk-dev] [PATCH v9 0/2] support generic threading functions 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 Sender: "dev" Add API for generic threading functions in EAL which do not reference pthread API. --- v8: * Documentation and minor code changes (DmitryK). v9: * Fix sizeof value in key creation, docu change (DmitryK) --- Tal Shnaiderman (2): eal: move thread affinity functions to new file eal: add generic thread-local-storage functions lib/librte_eal/include/meson.build | 1 + lib/librte_eal/include/rte_lcore.h | 22 +------ lib/librte_eal/include/rte_thread.h | 112 ++++++++++++++++++++++++++++++++++++ lib/librte_eal/rte_eal_exports.def | 5 ++ lib/librte_eal/unix/meson.build | 1 + lib/librte_eal/unix/rte_thread.c | 86 +++++++++++++++++++++++++++ lib/librte_eal/version.map | 6 ++ lib/librte_eal/windows/meson.build | 1 + lib/librte_eal/windows/rte_thread.c | 83 ++++++++++++++++++++++++++ 9 files changed, 296 insertions(+), 21 deletions(-) create mode 100644 lib/librte_eal/include/rte_thread.h create mode 100644 lib/librte_eal/unix/rte_thread.c create mode 100644 lib/librte_eal/windows/rte_thread.c