From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79A3AA0526; Thu, 9 Jul 2020 08:12:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0246E1DAE0; Thu, 9 Jul 2020 08:12:40 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id AB6F81DA58 for ; Thu, 9 Jul 2020 08:12:38 +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 2EFD61045; Wed, 8 Jul 2020 23:12:38 -0700 (PDT) Received: from net-arm-n1sdp.shanghai.arm.com (net-arm-n1sdp.shanghai.arm.com [10.169.208.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 93AA53F71E; Wed, 8 Jul 2020 23:12:35 -0700 (PDT) From: Feifei Wang To: Honnappa Nagarahalli , Konstantin Ananyev , Ray Kinsella , Neil Horman Cc: dev@dpdk.org, nd@arm.com, Ruifeng.wang@arm.com, Feifei Wang Date: Thu, 9 Jul 2020 01:12:11 -0500 Message-Id: <20200709061212.15931-3-feifei.wang2@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709061212.15931-1-feifei.wang2@arm.com> References: <20200703102651.8918-1> <20200709061212.15931-1-feifei.wang2@arm.com> Subject: [dpdk-dev] [PATCH v2 2/3] ring: remove experimental tag for ring element 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" Remove the experimental tag for rte_ring_xxx_elem APIs that have been around for 2 releases. Signed-off-by: Feifei Wang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Konstantin Ananyev --- v2: 1. add the changed API into DPDK_21 ABI in the map file. (Ray) lib/librte_ring/rte_ring.h | 5 +---- lib/librte_ring/rte_ring_elem.h | 8 -------- lib/librte_ring/rte_ring_version.map | 10 ++-------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index 7181c33b4..35f3f8c42 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -40,6 +40,7 @@ extern "C" { #endif #include +#include /** * Calculate the memory size needed for a ring @@ -401,10 +402,6 @@ rte_ring_sp_enqueue_bulk(struct rte_ring *r, void * const *obj_table, RTE_RING_SYNC_ST, free_space); } -#ifdef ALLOW_EXPERIMENTAL_API -#include -#endif - /** * Enqueue several objects on a ring. * diff --git a/lib/librte_ring/rte_ring_elem.h b/lib/librte_ring/rte_ring_elem.h index 9e5192ae6..69dc51746 100644 --- a/lib/librte_ring/rte_ring_elem.h +++ b/lib/librte_ring/rte_ring_elem.h @@ -23,9 +23,6 @@ extern "C" { #include /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Calculate the memory size needed for a ring with given element size * * This function returns the number of bytes needed for a ring, given @@ -43,13 +40,9 @@ extern "C" { * - -EINVAL - esize is not a multiple of 4 or count provided is not a * power of 2. */ -__rte_experimental ssize_t rte_ring_get_memsize_elem(unsigned int esize, unsigned int count); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Create a new ring named *name* that stores elements with given size. * * This function uses ``memzone_reserve()`` to allocate memory. Then it @@ -109,7 +102,6 @@ ssize_t rte_ring_get_memsize_elem(unsigned int esize, unsigned int count); * - EEXIST - a memzone with the same name already exists * - ENOMEM - no appropriate memory area found in which to create memzone */ -__rte_experimental struct rte_ring *rte_ring_create_elem(const char *name, unsigned int esize, unsigned int count, int socket_id, unsigned int flags); diff --git a/lib/librte_ring/rte_ring_version.map b/lib/librte_ring/rte_ring_version.map index 9a6ce4d32..ac392f3ca 100644 --- a/lib/librte_ring/rte_ring_version.map +++ b/lib/librte_ring/rte_ring_version.map @@ -15,13 +15,7 @@ DPDK_20.0 { DPDK_21 { global: - rte_ring_reset; -} DPDK_20.0; - -EXPERIMENTAL { - global: - - # added in 20.02 rte_ring_create_elem; rte_ring_get_memsize_elem; -}; + rte_ring_reset; +} DPDK_20.0; -- 2.17.1