From patchwork Wed Apr 24 13:42:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Ambadipudi X-Patchwork-Id: 888 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 6EF1643EAD; Wed, 24 Apr 2024 15:42:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C771434AD; Wed, 24 Apr 2024 15:42:45 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 9C7F5434A6 for ; Wed, 24 Apr 2024 15:42:43 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B76772F; Wed, 24 Apr 2024 06:43:10 -0700 (PDT) Received: from 2u-thunderx2.usa.Arm.com (unknown [10.118.12.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 95A0D3F64C; Wed, 24 Apr 2024 06:42:42 -0700 (PDT) From: Aditya Ambadipudi To: dev@dpdk.org, jackmin@nvidia.com, stephen@networkplumber.org, matan@nvidia.com, viacheslavo@nvidia.com, roretzla@linux.microsoft.com, konstantin.ananyev@huawei.com, mb@smartsharesystems.com, hofors@lysator.liu.se Cc: wathsala.vithanage@arm.com, dhruv.tripathi@arm.com, honnappa.nagarahalli@arm.com, nd@arm.com, Aditya Ambadipudi Subject: [PATCH v2 0/2] deque: add multithread unsafe deque library Date: Wed, 24 Apr 2024 08:42:31 -0500 Message-Id: <20240424134233.1336370-1-aditya.ambadipudi@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240401013729.1466298-2-aditya.ambadipudi@arm.com> References: <20240401013729.1466298-2-aditya.ambadipudi@arm.com> MIME-Version: 1.0 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 As previously discussed in the mailing list [1] we are sending out this patch that provides the implementation and unit test cases for the RTE_DEQUE library. This includes functions for creating a RTE_DEQUE object. Allocating memory to it. Deleting that object and free'ing the memory associated with it. Enqueue/Dequeue functions. Functions for zero-copy API. Aditya Ambadipudi (1): deque: add unit tests for the deque library Honnappa Nagarahalli (1): deque: add multi-thread unsafe double ended queue .mailmap | 1 + app/test/meson.build | 2 + app/test/test_deque_enqueue_dequeue.c | 1228 ++++++++++++++++++++++++ app/test/test_deque_helper_functions.c | 169 ++++ devtools/build-dict.sh | 1 + lib/deque/meson.build | 11 + lib/deque/rte_deque.c | 193 ++++ lib/deque/rte_deque.h | 533 ++++++++++ lib/deque/rte_deque_core.h | 81 ++ lib/deque/rte_deque_pvt.h | 538 +++++++++++ lib/deque/rte_deque_zc.h | 430 +++++++++ lib/deque/version.map | 14 + lib/meson.build | 2 + 13 files changed, 3203 insertions(+) create mode 100644 app/test/test_deque_enqueue_dequeue.c create mode 100644 app/test/test_deque_helper_functions.c create mode 100644 lib/deque/meson.build create mode 100644 lib/deque/rte_deque.c create mode 100644 lib/deque/rte_deque.h create mode 100644 lib/deque/rte_deque_core.h create mode 100644 lib/deque/rte_deque_pvt.h create mode 100644 lib/deque/rte_deque_zc.h create mode 100644 lib/deque/version.map