From ebfe34c501397a06400ec37e899df08933a200fb Mon Sep 17 00:00:00 2001 From: Joyce Kong Date: Fri, 11 Sep 2020 13:45:32 +0800 Subject: [PATCH] mcslock: promote as stable Since rte_mcslock APIs were introduced in 19.08 release, it is now possible to remove the experimental tag from: rte_mcslock_lock() rte_mcslock_unlock() rte_mcslock_trylock() rte_mcslock_is_locked() Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Acked-by: Phil Yang Acked-by: Konstantin Ananyev Acked-by: David Christensen --- MAINTAINERS | 2 +- lib/librte_eal/include/generic/rte_mcslock.h | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ff102957b4..6705c9f8c7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -237,7 +237,7 @@ M: Cristian Dumitrescu F: lib/librte_eal/include/rte_bitmap.h F: app/test/test_bitmap.c -MCSlock - EXPERIMENTAL +MCSlock M: Phil Yang F: lib/librte_eal/include/generic/rte_mcslock.h F: app/test/test_mcslock.c diff --git a/lib/librte_eal/include/generic/rte_mcslock.h b/lib/librte_eal/include/generic/rte_mcslock.h index 2bef28351c..78b0df295e 100644 --- a/lib/librte_eal/include/generic/rte_mcslock.h +++ b/lib/librte_eal/include/generic/rte_mcslock.h @@ -32,9 +32,6 @@ typedef struct rte_mcslock { } rte_mcslock_t; /** - * @warning - * @b EXPERIMENTAL: This API may change without prior notice - * * Take the MCS lock. * * @param msl @@ -45,7 +42,6 @@ typedef struct rte_mcslock { * A pointer to a new node of MCS lock. Each CPU/thread acquiring the * lock should use its 'own node'. */ -__rte_experimental static inline void rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me) { @@ -85,9 +81,6 @@ rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me) } /** - * @warning - * @b EXPERIMENTAL: This API may change without prior notice - * * Release the MCS lock. * * @param msl @@ -95,7 +88,6 @@ rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me) * @param me * A pointer to the node of MCS lock passed in rte_mcslock_lock. */ -__rte_experimental static inline void rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me) { @@ -126,9 +118,6 @@ rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me) } /** - * @warning - * @b EXPERIMENTAL: This API may change without prior notice - * * Try to take the lock. * * @param msl @@ -138,7 +127,6 @@ rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me) * @return * 1 if the lock is successfully taken; 0 otherwise. */ -__rte_experimental static inline int rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me) { @@ -159,9 +147,6 @@ rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me) } /** - * @warning - * @b EXPERIMENTAL: This API may change without prior notice - * * Test if the lock is taken. * * @param msl @@ -169,7 +154,6 @@ rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me) * @return * 1 if the lock is currently taken; 0 otherwise. */ -__rte_experimental static inline int rte_mcslock_is_locked(rte_mcslock_t *msl) { -- 2.20.1