From patchwork Wed Oct 13 21:38:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 101517 X-Patchwork-Delegate: david.marchand@redhat.com 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 AE831A0C55; Wed, 13 Oct 2021 23:39:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B5A7410E2; Wed, 13 Oct 2021 23:39:08 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 1B250410E0 for ; Wed, 13 Oct 2021 23:39:07 +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 74B891063; Wed, 13 Oct 2021 14:39:05 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 69EDB3F70D; Wed, 13 Oct 2021 14:39:05 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, mdr@ashroe.eu, yipeng1.wang@intel.com Cc: dharmik.thakkar@arm.com, nd@arm.com Date: Wed, 13 Oct 2021 16:38:58 -0500 Message-Id: <20211013213858.16200-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] hash: promote APIs to stable 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" Promote rte_hash_free_key_with_position and rte_hash_rcu_qsbr_add APIs to stable. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar --- lib/hash/rte_hash.h | 2 -- lib/hash/version.map | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/hash/rte_hash.h b/lib/hash/rte_hash.h index 73c415ff7e..0d3ef231b7 100644 --- a/lib/hash/rte_hash.h +++ b/lib/hash/rte_hash.h @@ -430,7 +430,6 @@ rte_hash_get_key_with_position(const struct rte_hash *h, const int32_t position, * - 0 if freed successfully * - -EINVAL if the parameters are invalid. */ -__rte_experimental int rte_hash_free_key_with_position(const struct rte_hash *h, const int32_t position); @@ -691,7 +690,6 @@ rte_hash_iterate(const struct rte_hash *h, const void **key, void **data, uint32 * - EEXIST - already added QSBR * - ENOMEM - memory allocation failure */ -__rte_experimental int rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg); #ifdef __cplusplus diff --git a/lib/hash/version.map b/lib/hash/version.map index ce4309aa07..85178df3f7 100644 --- a/lib/hash/version.map +++ b/lib/hash/version.map @@ -14,6 +14,7 @@ DPDK_22 { rte_hash_del_key_with_hash; rte_hash_find_existing; rte_hash_free; + rte_hash_free_key_with_position; rte_hash_get_key_with_position; rte_hash_hash; rte_hash_iterate; @@ -23,6 +24,7 @@ DPDK_22 { rte_hash_lookup_data; rte_hash_lookup_with_hash; rte_hash_lookup_with_hash_data; + rte_hash_rcu_qsbr_add; rte_hash_reset; rte_hash_set_cmp_func; @@ -32,11 +34,9 @@ DPDK_22 { EXPERIMENTAL { global: - rte_hash_free_key_with_position; rte_hash_lookup_with_hash_bulk; rte_hash_lookup_with_hash_bulk_data; rte_hash_max_key_id; - rte_hash_rcu_qsbr_add; rte_thash_add_helper; rte_thash_adjust_tuple; rte_thash_find_existing;