From patchwork Tue Oct 1 06:29:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 174826 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8127148ill; Mon, 30 Sep 2019 23:29:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwDO59YicIe9ZeRa4cEgf5SbDdM2qvIa2K4R+CB8rMdsxu9L96RYxwmgFFZphdopcoo7ab X-Received: by 2002:a05:6402:2cb:: with SMTP id b11mr23995037edx.285.1569911386181; Mon, 30 Sep 2019 23:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569911386; cv=none; d=google.com; s=arc-20160816; b=HvQfDxBHGOkZFLMFIR8mjH59sLjNkH168unuUcxdhjCycoGltUSY+85QkG6/DsD0H2 Vc0LRECGxUvi4MxFW5x0FypyGQXza54dulPDIHbt/NH2kfMhjXOsCf6csnxCG+/IIs3v U+4YpqYhnXhnv/NSqd1eTUByNfDG4UPcCbFzQK710BYa4Zvwrg5JBujAqyI5NFnZnY7c wcxnECHCL4j7/jD8lra7b5aVnrCtKMDASHYxe25IeRJFXqunXqqKxASe2pdFVll2P2Rq WNoUq1LuK5xLBahWM4sDl0hUDqOGU7BlpLQ4uiHCBeiIyRNC2amzwEx/0uLDAbRmP/Dj f7kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=rNe5LtVlX7TyxptQWBP3rPLIXvaf5V2X/S2zyGts96M=; b=gCDtFGeN8lE7VNpRDmuiYpUZM7h9rUUbcMKV2wNrLwjhyWnsKSXziDwkbl1cC20RUZ L0d4arPTqwZu9H8RiopjA1sk3l0GVrfmy+O90ALE7zlMU2mbssIJOpXMmlhTJeO/0evn YUT+ySuwLfXXwQ7u8fmmW5FNRLnXIifKzGpeMU4z2iJOgqSZmjXItkEw8kwQt3cVx23A ffE5sB7xBRVpREh/RFtZ7UBY8bugQu5D2nd+E8v2EX0QiH4L/ZD3XkyRJjaypwMFXKFa Ljwb18xhnxnibR7nbulack2B55fJIPhc7nlOTKh+zBh/t/Gp3HM9wJnDOcJ+2s41NUm7 Ak5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id y23si8946928edb.208.2019.09.30.23.29.46; Mon, 30 Sep 2019 23:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 96A7C5B3E; Tue, 1 Oct 2019 08:29:32 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 9948F4C93 for ; Tue, 1 Oct 2019 08:29:26 +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 D107B28; Mon, 30 Sep 2019 23:29:25 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 75B0F3F739; Mon, 30 Sep 2019 23:32:03 -0700 (PDT) From: Honnappa Nagarahalli To: honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, stephen@networkplumber.org, paulmck@linux.ibm.com Cc: yipeng1.wang@intel.com, vladimir.medvedkin@intel.com, ruifeng.wang@arm.com, dharmik.thakkar@arm.com, dev@dpdk.org, nd@arm.com Date: Tue, 1 Oct 2019 01:29:14 -0500 Message-Id: <20191001062917.35578-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190906094534.36060-1-ruifeng.wang@arm.com> References: <20190906094534.36060-1-ruifeng.wang@arm.com> Subject: [dpdk-dev] [PATCH v3 0/3] Add RCU reclamation APIs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This is not a new patch. This patch set is separated from the LPM changes as the size of the changes in RCU library has grown due to comments from community. These APIs will help reduce the changes in LPM and hash libraries that are getting integrated with RCU library. This adds 4 new APIs to RCU library to create a defer queue, enqueue deleted resources, reclaim resources and delete the defer queue. The rationale for the APIs is documented in 3/3. The patches to LPM and HASH libraries to integrate RCU will depend on this patch. v3 1) Separated from the original series (https://patches.dpdk.org/cover/58811/) 2) Added reclamation APIs and test cases (Stephen, Yipeng) Honnappa Nagarahalli (1): lib/rcu: add resource reclamation APIs Ruifeng Wang (2): lib/ring: add peek API doc/rcu: add RCU integration design details app/test/test_rcu_qsbr.c | 291 ++++++++++++++++++++++++++++- doc/guides/prog_guide/rcu_lib.rst | 59 ++++++ lib/librte_rcu/meson.build | 2 + lib/librte_rcu/rte_rcu_qsbr.c | 185 ++++++++++++++++++ lib/librte_rcu/rte_rcu_qsbr.h | 169 +++++++++++++++++ lib/librte_rcu/rte_rcu_qsbr_pvt.h | 46 +++++ lib/librte_rcu/rte_rcu_version.map | 4 + lib/librte_ring/rte_ring.h | 30 +++ lib/meson.build | 6 +- 9 files changed, 789 insertions(+), 3 deletions(-) create mode 100644 lib/librte_rcu/rte_rcu_qsbr_pvt.h -- 2.17.1