bitops: mark new symbols as stable
PATCH 1/1 bitops: mark new symbols as stable
Calling an experimental symbol from an inline helper triggers a warning when such code is not compiled with experimental API.
This can be seen when rte_bitops.h gets (indirectly) included in OVS builds.
On the other hand, rte_clz32, rte_clz64, rte_ctz32, rte_ctz64, rte_popcount32, rte_popcount64 are inline helpers for abstracting common bit counting functions. This part of the API is unlikely to change.
Mark those symbols as stable.
---
Copying Techboard for info, as this goes against the usual policy of marking new API as experimental.
--- lib/eal/include/rte_bitops.h | 48 ------------------------------------ 1 file changed, 48 deletions(-)
lib/eal/include/rte_bitops.h +0 -48
@@ -280,9 +280,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr)#ifdef RTE_TOOLCHAIN_MSVC /** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of leading 0-bits in v. * * @param v
@@ -290,7 +287,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v) {
@@ -302,9 +298,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of leading 0-bits in v. * * @param v
@@ -312,7 +305,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {
@@ -324,9 +316,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of trailing 0-bits in v. * * @param v
@@ -334,7 +323,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {
@@ -346,9 +334,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of trailing 0-bits in v. * * @param v
@@ -356,7 +341,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {
@@ -368,9 +352,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of 1-bits in v. * * @param v
@@ -378,7 +359,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {
@@ -386,9 +366,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of 1-bits in v. * * @param v
@@ -396,7 +373,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) {
@@ -406,9 +382,6 @@ rte_popcount64(uint64_t v)#else /** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of leading 0-bits in v. * * @param v
@@ -416,7 +389,6 @@ rte_popcount64(uint64_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v) {
@@ -424,9 +396,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of leading 0-bits in v. * * @param v
@@ -434,7 +403,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {
@@ -442,9 +410,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of trailing 0-bits in v. * * @param v
@@ -452,7 +417,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {
@@ -460,9 +424,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of trailing 0-bits in v. * * @param v
@@ -470,7 +431,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {
@@ -478,9 +438,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of 1-bits in v. * * @param v
@@ -488,7 +445,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {
@@ -496,9 +452,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice -* * Get the count of 1-bits in v. * * @param v
@@ -506,7 +459,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) {
Signature · 1 line
2.41.0
Quoted 16 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday, October 18, 2023 5:11 PM
To: [email protected]
Cc: [email protected]; [email protected]; Joyce Kong <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: [PATCH] bitops: mark new symbols as stableCalling an experimental symbol from an inline helper triggers a warning when such code is not compiled with experimental API.
This can be seen whenrte_bitops.hgets (indirectly) included in OVS builds.On the other hand,
rte_clz32,rte_clz64,rte_ctz32,rte_ctz64,rte_popcount32,rte_popcount64are inline helpers for abstracting common bit counting functions. This part of the API is unlikely to change.
Quoted 5 lines
Mark those symbols as stable.
Fixes 18898c4d06f9 ("eal: use abstracted bit count functions")Signed-off-by David Marchand <[email protected]>
Quoted 231 lines
---
Copying Techboard for info, as this goes against the usual policy of marking new API as experimental.--- lib/eal/include/rte_bitops.h | 48 ------------------------------------ 1 file changed, 48 deletions(-)lib/eal/include/rte_bitops.h index renamed from lib/eal/include/rte_bitops.h +0
-0
6b8ae8d3ac..174d25216d100644lib/eal/include/rte_bitops.h +0
-0@@ -280,9 +280,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr,volatile
uint64_t*addr) #ifdefRTE_TOOLCHAIN_MSVC/**
- * @warning
- * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-1@@ -290,7 +287,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr,volatile uint64_t *addr) * @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v){
lib/eal/include/rte_bitops.h +0
-2@@ -302,9 +298,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -312,7 +305,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {@@ -324,9 +316,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -334,7 +323,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {@@ -346,9 +334,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -356,7 +341,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {@@ -368,9 +352,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -378,7 +359,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {@@ -386,9 +366,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -396,7 +373,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) {@@ -406,9 +382,6 @@ rte_popcount64(uint64_t v) #else/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -416,7 +389,6 @@ rte_popcount64(uint64_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v) {@@ -424,9 +396,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -434,7 +403,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {@@ -442,9 +410,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -452,7 +417,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {@@ -460,9 +424,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -470,7 +431,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {@@ -478,9 +438,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -488,7 +445,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {@@ -496,9 +452,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-2@@ -506,7 +459,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) { --
Quoted 1 line
2.41.0
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Kevin Traynor
Acked-byQuoted 16 lines · Joyce Kong
Quoted 16 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday, October 18, 2023 5:11 PM
To: [email protected]
Cc: [email protected]; [email protected]; Joyce Kong <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: [PATCH] bitops: mark new symbols as stableCalling an experimental symbol from an inline helper triggers a warning when such code is not compiled with experimental API.
This can be seen whenrte_bitops.hgets (indirectly) included in OVS builds.On the other hand,
rte_clz32,rte_clz64,rte_ctz32,rte_ctz64,rte_popcount32,rte_popcount64are inline helpers for abstracting common bit counting functions. This part of the API is unlikely to change.
Quoted 8 lines
Quoted 5 lines
Mark those symbols as stable.
Fixes 18898c4d06f9 ("eal: use abstracted bit count functions")Signed-off-by David Marchand <[email protected]>Reviewed-by Joyce Kong <[email protected]>
Quoted 4 lines
Quoted 4 lines
---
Copying Techboard for info, as this goes against the usual policy of marking new API as experimental.
Approved in techboard meeting:
http://inbox.dpdk.org/dev/[email protected]/
Quoted 231 lines
Quoted 227 lines
--- lib/eal/include/rte_bitops.h | 48 ------------------------------------ 1 file changed, 48 deletions(-)lib/eal/include/rte_bitops.h index renamed from lib/eal/include/rte_bitops.h +0
-0
6b8ae8d3ac..174d25216d100644lib/eal/include/rte_bitops.h +0
-0@@ -280,9 +280,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr,volatile
uint64_t*addr) #ifdefRTE_TOOLCHAIN_MSVC/**
- * @warning
- * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-1@@ -290,7 +287,6 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr,volatile uint64_t *addr) * @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v){lib/eal/include/rte_bitops.h +0
-2@@ -302,9 +298,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -312,7 +305,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {@@ -324,9 +316,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -334,7 +323,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {@@ -346,9 +334,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -356,7 +341,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {@@ -368,9 +352,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -378,7 +359,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {@@ -386,9 +366,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -396,7 +373,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) {@@ -406,9 +382,6 @@ rte_popcount64(uint64_t v) #else/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -416,7 +389,6 @@ rte_popcount64(uint64_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz32 (uint32_t v) {@@ -424,9 +396,6 @@ rte_clz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of leading 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -434,7 +403,6 @@ rte_clz32(uint32_t v)* @return * The count of leading zero bits. */ -__rte_experimental static inline unsigned int rte_clz64 (uint64_t v) {@@ -442,9 +410,6 @@ rte_clz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -452,7 +417,6 @@ rte_clz64(uint64_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz32 (uint32_t v) {@@ -460,9 +424,6 @@ rte_ctz32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of trailing 0-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -470,7 +431,6 @@ rte_ctz32(uint32_t v)* @return * The count of trailing zero bits. */ -__rte_experimental static inline unsigned int rte_ctz64 (uint64_t v) {@@ -478,9 +438,6 @@ rte_ctz64(uint64_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-3@@ -488,7 +445,6 @@ rte_ctz64(uint64_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount32 (uint32_t v) {@@ -496,9 +452,6 @@ rte_popcount32(uint32_t v) }/** -* @warning -* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get the count of 1-bits in v.
*
* @param vlib/eal/include/rte_bitops.h +0
-2@@ -506,7 +459,6 @@ rte_popcount32(uint32_t v)* @return * The count of 1-bits. */ -__rte_experimental static inline unsigned int rte_popcount64 (uint64_t v) { --Quoted 1 line
2.41.0
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
David Marchand
AppliedQuoted 8 lines · Kevin Traynor
Quoted 8 lines
Quoted 8 lines
Calling an experimental symbol from an inline helper triggers a warning when such code is not compiled with experimental API.
This can be seen whenrte_bitops.hgets (indirectly) included in OVS builds.On the other hand,
rte_clz32,rte_clz64,rte_ctz32,rte_ctz64,rte_popcount32,rte_popcount64are inline helpers for abstracting common bit counting functions. This part of the API is unlikely to change.
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Mark those symbols as stable.
Fixes 18898c4d06f9 ("eal: use abstracted bit count functions")Signed-off-by David Marchand <[email protected]>Reviewed-by Joyce Kong <[email protected]>Acked-by Kevin Traynor <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand