[v2,04/14] eal: make rte_drand a stable API

Message ID 20231020214119.255491-5-stephen@networkplumber.org (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series eal: mark older API's as stable |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Oct. 20, 2023, 9:41 p.m. UTC
  This API was added in 2020.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/eal/include/rte_random.h | 4 ----
 lib/eal/version.map          | 4 +---
 2 files changed, 1 insertion(+), 7 deletions(-)
  

Comments

Mattias Rönnblom Oct. 23, 2023, 4:12 p.m. UTC | #1
On 2023-10-20 23:41, Stephen Hemminger wrote:
> This API was added in 2020.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>   lib/eal/include/rte_random.h | 4 ----
>   lib/eal/version.map          | 4 +---
>   2 files changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/lib/eal/include/rte_random.h b/lib/eal/include/rte_random.h
> index c12eb07ea818..ea74ca020044 100644
> --- a/lib/eal/include/rte_random.h
> +++ b/lib/eal/include/rte_random.h
> @@ -70,9 +70,6 @@ uint64_t
>   rte_rand_max(uint64_t upper_bound);
>   
>   /**
> - * @warning
> - * @b EXPERIMENTAL: this API may change without prior notice
> - *
>    * Generates a pseudo-random floating point number.
>    *
>    * This function returns a non-negative double-precision floating random
> @@ -87,7 +84,6 @@ rte_rand_max(uint64_t upper_bound);
>    * @return
>    *   A pseudo-random value between 0 and 1.0.
>    */
> -__rte_experimental
>   double rte_drand(void);
>   
>   #ifdef __cplusplus
> diff --git a/lib/eal/version.map b/lib/eal/version.map
> index 5fd7ceec94fb..edeb7ff518e2 100644
> --- a/lib/eal/version.map
> +++ b/lib/eal/version.map
> @@ -57,6 +57,7 @@ DPDK_24 {
>   	rte_devargs_parsef;
>   	rte_devargs_remove;
>   	rte_devargs_type_count;
> +	rte_drand;
>   	rte_driver_name;
>   	rte_dump_physmem_layout;
>   	rte_dump_stack;
> @@ -395,9 +396,6 @@ EXPERIMENTAL {
>   	rte_intr_type_get;
>   	rte_intr_type_set;
>   
> -	# added in 22.07
> -	rte_drand;
> -
>   	# added in 23.03
>   	rte_lcore_register_usage_cb;
>   	__rte_eal_trace_generic_blob;

Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
  

Patch

diff --git a/lib/eal/include/rte_random.h b/lib/eal/include/rte_random.h
index c12eb07ea818..ea74ca020044 100644
--- a/lib/eal/include/rte_random.h
+++ b/lib/eal/include/rte_random.h
@@ -70,9 +70,6 @@  uint64_t
 rte_rand_max(uint64_t upper_bound);
 
 /**
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice
- *
  * Generates a pseudo-random floating point number.
  *
  * This function returns a non-negative double-precision floating random
@@ -87,7 +84,6 @@  rte_rand_max(uint64_t upper_bound);
  * @return
  *   A pseudo-random value between 0 and 1.0.
  */
-__rte_experimental
 double rte_drand(void);
 
 #ifdef __cplusplus
diff --git a/lib/eal/version.map b/lib/eal/version.map
index 5fd7ceec94fb..edeb7ff518e2 100644
--- a/lib/eal/version.map
+++ b/lib/eal/version.map
@@ -57,6 +57,7 @@  DPDK_24 {
 	rte_devargs_parsef;
 	rte_devargs_remove;
 	rte_devargs_type_count;
+	rte_drand;
 	rte_driver_name;
 	rte_dump_physmem_layout;
 	rte_dump_stack;
@@ -395,9 +396,6 @@  EXPERIMENTAL {
 	rte_intr_type_get;
 	rte_intr_type_set;
 
-	# added in 22.07
-	rte_drand;
-
 	# added in 23.03
 	rte_lcore_register_usage_cb;
 	__rte_eal_trace_generic_blob;