promote long standing experimental API to stable
cover promote long standing experimental API to stable
The experimental tag is supposed to be temporary: a way to ship an API while its shape is still being settled. In practice many symbols keep the tag long after the interface has stopped changing. That discourages use, because applications reasonably avoid an API that advertises it may disappear, and it hides the small number of APIs that really are still in flux.
This series promotes 196 symbols across fifteen libraries. The oldest date from 20.11 and the bulk are three years old or more. In every case the prototype has not changed since it was introduced, and most are in use by in-tree applications, examples or drivers.
By introduction release:
20.11 SWX port, table and pipeline API
21.05 SWX fd and ring ports, wildcard match table,
cryptodev raw enqueue/dequeue and mbuf-to-vec helpers
21.08 SWX selector table 21.11 SWX learner table 22.07 SWX hash function registration, learner timeout and rearm 22.11 SWX pipeline lookup and code generation 23.03 SWX RSS and IPsec, cryptodev algorithm name helpers 23.07 pdcp library, node ip6 route and rewrite 23.11 dispatcher library, node ip4 reassembly and udp4 input,
power uncore environment and frequency list
24.03 argparse parse and parse_type, node ethdev rx next update 24.07 hash RCU queue reclaim, mempool memory range and
object alignment getters
24.11 power PM QoS, thash key generation, eal lcore variables,
cryptodev asymmetric opcap check
25.03 soring enqueue, dequeue, acquire and release,
cmdline bool token ops
25.07 node ip4/ip6 FIB and mbuf dynfield register,
rte_memzero_explicit, rte_free_sensitive, rte_size_to_str
25.11 argparse print_help, rte_basename,
ethdev link connector to string
Where a library had nothing left to keep experimental the file level "all functions in this file may be changed or removed" warnings are dropped as well, along with the then unused rte_compat.h includes.
The node library deserves a note. Most of its headers carried that file level warning while rte_node_ip4_route_add() and rte_node_ip4_rewrite_add() sat underneath it as stable exports, so the warning was already wrong. The whole library is promoted. An API that cannot be declared stable after several releases of use is not helping anyone, and should be removed rather than left in limbo.
Deliberately left experimental:
- trace point symbols (__rte_*_trace_*) in eal, ethdev, eventdev, cryptodev, dmadev, bbdev and mempool
- debug and dump output whose format may still change:
rte_soring_dump, rte_ring_headtail_dump, rte_bbdev_queue_ops_dump, rte_bbdev_ops_param_string and rte_bbdev_ops_trace
- APIs with only one implementation, where the interface should not be frozen before a second driver has tried to use it.
- the metrics rte_metrics_tel_* API, which has no in-tree users and should be deprecated rather than promoted; a deprecation notice will be sent separately
- new subsystems that have not had a release of real use: the eventdev vector adapter, the graph feature arc and the pmu library (all 25.07), and the dmadev access pair group API (25.11)
- the soring peek API, rte_eth_get_queue_rate_limit, rte_mempool_stats_reset and rte_bbdev_queue_stats_get, added in 26.07
- rte_cpu_socket_id, added this release
- rte_event_eth_rx_adapter_queues_add, deferred in commit
42235267000c ("eventdev/eth_rx: promote adapter API to stable") - eal rte_vfio_get_device_info, left alone while the VFIO rework is in progress
- rte_str_skip_leading_spaces, a static inline in rte_string_fns.h with no exported symbol; it can follow separately
- mbuf history API; debug and new in 25.11
No change in functionality, and test results are the same as before these changes.
Stephen Hemminger (20):
eal: add missing export for rte_basename
eal: promote rte_basename to stable
eal: promote explicit zero and sensitive free to stable
eal: promote rte_size_to_str to stable
eal: promote lcore variables API to stable
cmdline: promote bool token ops to stable
ethdev: promote link connector to string to stable
port: promote SWX port API to stable
table: promote SWX table API to stable
pipeline: promote SWX IPsec API to stable
pipeline: promote SWX pipeline and control API to stable
power: promote PM QoS and uncore API to stable
ring: promote soring API to stable
dispatcher: promote API to stable
argparse: promote API to stable
node: promote API to stable
hash: promote RCU reclaim and thash key generation to stable
cryptodev: promote algorithm helpers to stable
pdcp: promote API to stable
mempool: promote memory range and alignment to stable
doc/guides/rel_notes/release_26_11.rst | 50 ++++++++- lib/argparse/rte_argparse.c | 6 +- lib/argparse/rte_argparse.h | 13 --- lib/cmdline/cmdline_parse_bool.c | 2 +- lib/cryptodev/rte_crypto_sym.h | 2 - lib/cryptodev/rte_cryptodev.c | 10 +- lib/cryptodev/rte_cryptodev.h | 10 -- lib/dispatcher/rte_dispatcher.c | 26 ++--- lib/dispatcher/rte_dispatcher.h | 18 --- lib/eal/common/eal_common_lcore_var.c | 2 +- lib/eal/common/eal_common_memory.c | 2 +- lib/eal/common/eal_common_string_fns.c | 2 +- lib/eal/common/rte_malloc.c | 2 +- lib/eal/include/rte_common.h | 4 - lib/eal/include/rte_lcore_var.h | 3 - lib/eal/include/rte_malloc.h | 4 - lib/eal/include/rte_memory.h | 4 - lib/eal/include/rte_string_fns.h | 4 - lib/eal/unix/rte_basename.c | 2 +- lib/eal/windows/rte_basename.c | 2 + lib/ethdev/rte_ethdev.c | 2 +- lib/ethdev/rte_ethdev.h | 4 - lib/hash/rte_cuckoo_hash.c | 2 +- lib/hash/rte_hash.h | 1 - lib/hash/rte_thash.c | 2 +- lib/hash/rte_thash.h | 4 - lib/mempool/rte_mempool.c | 4 +- lib/mempool/rte_mempool.h | 8 -- lib/node/ethdev_ctrl.c | 2 +- lib/node/ip4_lookup_fib.c | 4 +- lib/node/ip4_reassembly.c | 2 +- lib/node/ip6_lookup.c | 2 +- lib/node/ip6_lookup_fib.c | 4 +- lib/node/ip6_rewrite.c | 2 +- lib/node/node_mbuf_dynfield.c | 2 +- lib/node/rte_node_eth_api.h | 6 - lib/node/rte_node_ip4_api.h | 9 -- lib/node/rte_node_ip6_api.h | 9 -- lib/node/rte_node_mbuf_dynfield.h | 6 - lib/node/rte_node_pkt_cls_api.h | 4 - lib/node/rte_node_udp4_input_api.h | 8 -- lib/node/udp4_input.c | 4 +- lib/pdcp/rte_pdcp.c | 10 +- lib/pdcp/rte_pdcp.h | 29 ----- lib/pdcp/rte_pdcp_group.h | 6 - lib/pipeline/rte_swx_ctl.c | 34 +++--- lib/pipeline/rte_swx_ctl.h | 61 ----------- lib/pipeline/rte_swx_ipsec.c | 14 +-- lib/pipeline/rte_swx_ipsec.h | 8 -- lib/pipeline/rte_swx_pipeline.c | 146 ++++++++++++------------- lib/pipeline/rte_swx_pipeline.h | 32 ------ lib/port/rte_swx_port_ethdev.c | 4 +- lib/port/rte_swx_port_fd.c | 4 +- lib/port/rte_swx_port_ring.c | 4 +- lib/port/rte_swx_port_source_sink.c | 6 +- lib/power/rte_power_qos.c | 4 +- lib/power/rte_power_qos.h | 10 -- lib/power/rte_power_uncore.c | 8 +- lib/power/rte_power_uncore.h | 5 - lib/ring/rte_soring.c | 4 +- lib/ring/rte_soring.h | 72 ------------ lib/ring/soring.c | 32 +++--- lib/table/rte_swx_table_em.c | 4 +- lib/table/rte_swx_table_learner.c | 20 ++-- lib/table/rte_swx_table_learner.h | 12 -- lib/table/rte_swx_table_selector.c | 12 +- lib/table/rte_swx_table_selector.h | 8 -- lib/table/rte_swx_table_wm.c | 2 +- 68 files changed, 248 insertions(+), 562 deletions(-)
Signature · 1 line
2.53.0
PATCH 1/20 eal: add missing export for rte_basename
The export for rte_basename was missed on the Windows version. If it is a public API it needs to be on all OS's supported.
--- lib/eal/windows/rte_basename.c | 2 ++ 1 file changed, 2 insertions(+)
lib/eal/windows/rte_basename.c +2 -0
@@ -4,8 +4,10 @@#include <string.h> #include <stdlib.h> +#include <eal_export.h> #include <rte_string_fns.h> +RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_basename, 25.11)size_t rte_basename (const char *path,char *buf,size_t buflen) {
Signature · 1 line
2.53.0
Re: [PATCH 01/20] eal: add missing export for rte_basename
Quoted 8 lines · Stephen Hemminger
The export for
rte_basenamewas missed on the Windows version. If it is a public API it needs to be on all OS's supported.Fixes b8a75ece45fe ("eal: add basename function for common path manipulation")Signed-off-by Stephen Hemminger <[email protected]>---
Quoted 21 lines
lib/eal/windows/rte_basename.c | 2 ++ 1 file changed, 2 insertions(+)lib/eal/windows/rte_basename.c +2
-0@@ -4,8 +4,10 @@#include <string.h> #include <stdlib.h> +#include <eal_export.h> #include <rte_string_fns.h> +RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_basename, 25.11)size_t rte_basename (const char *path,char *buf,size_t buflen) {Signature · 1 line
2.53.0
PATCH 2/20 eal: promote rte_basename to stable
In reply to Stephen Hemmingerrte_basename() was added in 25.11 as a portable replacement for basename(), whose behaviour differs between the POSIX and GNU versions. The prototype has not changed.
--- lib/eal/include/rte_string_fns.h | 4 ---- lib/eal/unix/rte_basename.c | 2 +- lib/eal/windows/rte_basename.c | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-)
lib/eal/include/rte_string_fns.h +0 -4
@@ -140,9 +140,6 @@ rte_str_skip_leading_spaces(const char *src) }/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Provides the final component of a path, similar to POSIX basename function. * * This API provides the similar behaviour on all platforms, Linux, BSD, Windows,
@@ -167,7 +164,6 @@ rte_str_skip_leading_spaces(const char *src)* If the return value is >= buflen, truncation occurred. * Return (size_t)-1 on error (Windows only) */ -__rte_experimental size_t rte_basename (const char *path,char *buf,size_t buflen);
lib/eal/unix/rte_basename.c +1 -1
@@ -10,7 +10,7 @@#include <eal_export.h> #include <rte_string_fns.h> -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_basename, 25.11) +RTE_EXPORT_SYMBOL (rte_basename) size_trte_basename (const char *path,char *buf,size_t buflen) {
lib/eal/windows/rte_basename.c +1 -1
@@ -7,7 +7,7 @@#include <eal_export.h> #include <rte_string_fns.h> -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_basename, 25.11) +RTE_EXPORT_SYMBOL (rte_basename) size_trte_basename (const char *path,char *buf,size_t buflen) {
Signature · 1 line
2.53.0
Re: [PATCH 02/20] eal: promote rte_basename to stable
Quoted 6 lines · Stephen Hemminger
rte_basename()was added in 25.11 as a portable replacement forbasename(), whose behaviour differs between the POSIX and GNU versions. The prototype has not changed.Signed-off-by Stephen Hemminger <[email protected]>---
PATCH 3/20 eal: promote explicit zero and sensitive free to stable
In reply to Stephen Hemmingerrte_memzero_explicit() and rte_free_sensitive() were added in 25.07 and have not changed since. They are used by the QAT crypto driver for asymmetric and symmetric session keys and by the ixgbe IPsec code, which are exactly the sensitive data paths they exist for.
An API for clearing keys is of little use to applications while it is marked as subject to change, so promote it.
--- lib/eal/common/eal_common_memory.c | 2 +- lib/eal/common/rte_malloc.c | 2 +- lib/eal/include/rte_malloc.h | 4 ---- lib/eal/include/rte_memory.h | 4 ---- 4 files changed, 2 insertions(+), 10 deletions(-)
lib/eal/common/eal_common_memory.c +1 -1
@@ -1730,7 +1730,7 @@ RTE_INIT(memory_telemetry)#endif /* telemetry !RTE_EXEC_ENV_WINDOWS */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_memzero_explicit, 25.07) +RTE_EXPORT_SYMBOL (rte_memzero_explicit) voidrte_memzero_explicit (void *dst,size_t sz) {
lib/eal/common/rte_malloc.c +1 -1
@@ -56,7 +56,7 @@ rte_free(void *addr)mem_free (addr, true, false); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_free_sensitive, 25.07) +RTE_EXPORT_SYMBOL (rte_free_sensitive) voidrte_free_sensitive (void *addr) {
lib/eal/include/rte_malloc.h +0 -4
@@ -53,9 +53,6 @@ rte_free(void *ptr);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Frees the memory space pointed to by the provided pointer * and guarantees it will be zero'd before reuse. * This function is slower than simple rte_free() it should only
@@ -70,7 +67,6 @@ rte_free(void *ptr);* @param ptr * The pointer to memory to be freed. */ -__rte_experimental void rte_free_sensitive (void *ptr);
lib/eal/include/rte_memory.h +0 -4
@@ -729,9 +729,6 @@ int rte_mem_alloc_validator_unregister(const char *name, int socket_id);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Fill memory with zero's (e.g. sensitive keys). * Normally using memset() is fine, but in cases where clearing out local data * before going out of scope is required, use rte_memzero_explicit() instead
@@ -742,7 +739,6 @@ rte_mem_alloc_validator_unregister(const char *name, int socket_id);* @param sz * Number of bytes to fill. */ -__rte_experimental void rte_memzero_explicit (void *dst,size_t sz);
Signature · 1 line
2.53.0
Re: [PATCH 03/20] eal: promote explicit zero and sensitive free to stable
Quoted 10 lines · Stephen Hemminger
rte_memzero_explicit()andrte_free_sensitive()were added in 25.07 and have not changed since. They are used by the QAT crypto driver for asymmetric and symmetric session keys and by the ixgbe IPsec code, which are exactly the sensitive data paths they exist for.An API for clearing keys is of little use to applications while it is marked as subject to change, so promote it.
Signed-off-by Stephen Hemminger <[email protected]>---
PATCH 4/20 eal: promote rte_size_to_str to stable
In reply to Stephen Hemmingerrte_size_to_str() was added in 25.07 and has not changed. Its counterpart rte_str_to_size() is already stable.
--- lib/eal/common/eal_common_string_fns.c | 2 +- lib/eal/include/rte_common.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-)
lib/eal/common/eal_common_string_fns.c +1 -1
@@ -114,7 +114,7 @@ rte_str_to_size(const char *str)return size; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_size_to_str, 25.07) +RTE_EXPORT_SYMBOL (rte_size_to_str) char *rte_size_to_str (char *buf,int buf_size,uint64_t count,bool use_iec,const char *unit) {
lib/eal/include/rte_common.h +0 -4
@@ -1137,9 +1137,6 @@ uint64_t rte_str_to_size(const char *str);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Converts the uint64_t value provided to a human-readable string. * It null-terminates the string, truncating the data if needed. * An optional unit (like "B") can be provided as a string. It will be
@@ -1167,7 +1164,6 @@ rte_str_to_size(const char *str);* @return * buf on success, NULL if the buffer is too small. */ -__rte_experimental char *rte_size_to_str (char *buf,int buf_size,uint64_t count,bool use_iec,const char *unit);
Signature · 1 line
2.53.0
Re: [PATCH 04/20] eal: promote rte_size_to_str to stable
Quoted 8 lines · Stephen Hemminger
rte_size_to_str()was added in 25.07 and has not changed. Its counterpartrte_str_to_size()is already stable.Signed-off-by Stephen Hemminger <[email protected]>--- lib/eal/common/eal_common_string_fns.c | 2 +- lib/eal/include/rte_common.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-)
PATCH 5/20 eal: promote lcore variables API to stable
In reply to Stephen Hemmingerrte_lcore_var_alloc() was added in 24.11 and has not changed. The RTE_LCORE_VAR_* macros that form the public interface were never marked experimental, so the header carried a file level warning while the macros applications actually use looked stable.
The API is used by rte_random, rte_service, the x86 power intrinsics and the power PMD management code. Promote the allocator and drop the file level warning.
--- doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/eal/common/eal_common_lcore_var.c | 2 +- lib/eal/include/rte_lcore_var.h | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-)
doc/guides/rel_notes/release_26_11.rst +4 -0
@@ -240,6 +240,10 @@ API Changes are now declared with an alignment of 1 on all architectures. The compiler may generate narrower loads and stores than before. +* eal: Promoted ``rte_memzero_explicit``, ``rte_free_sensitive``, + ``rte_basename``, ``rte_size_to_str`` and the lcore variables API + from experimental to stable. + * ethdev: Updated VMDq related API. * At port configuration time, the number of VMDq pools advertised by a driver
lib/eal/common/eal_common_lcore_var.c +1 -1
@@ -76,7 +76,7 @@ lcore_var_alloc(size_t size, size_t align)return handle; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_lcore_var_alloc, 24.11) +RTE_EXPORT_SYMBOL (rte_lcore_var_alloc) void *rte_lcore_var_alloc (size_t size,size_t align) {
lib/eal/include/rte_lcore_var.h +0 -3
@@ -15,8 +15,6 @@* * Please refer to the lcore variables' programmer's guide * for an overview of this API and its implementation. -* -* EXPERIMENTAL: this API may change, or be removed, without prior notice. */ #include <stddef.h>
@@ -199,7 +197,6 @@ rte_lcore_var_lcore(unsigned int lcore_id, void *handle)* The variable's handle, stored in a void pointer value. * The value is always non-NULL. */ -__rte_experimental void *rte_lcore_var_alloc (size_t size,size_t align)__rte_alloc_align (2 );
Signature · 1 line
2.53.0
Re: [PATCH 05/20] eal: promote lcore variables API to stable
Quoted 11 lines · Stephen Hemminger
rte_lcore_var_alloc()was added in 24.11 and has not changed. The RTE_LCORE_VAR_* macros that form the public interface were never marked experimental, so the header carried a file level warning while the macros applications actually use looked stable.The API is used by
rte_random,rte_service, the x86 power intrinsics and the power PMD management code. Promote the allocator and drop the file level warning.Signed-off-by Stephen Hemminger <[email protected]>---
See comment inline below though.
Quoted 10 lines
doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/eal/common/eal_common_lcore_var.c | 2 +- lib/eal/include/rte_lcore_var.h | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-)doc/guides/rel_notes/release_26_11.rst +0
-0
doc/guides/rel_notes/release_26_11.rst API Changes · line 248
Quoted 9 lines
doc/guides/rel_notes/release_26_11.rst +4
-0@@ -240,6 +240,10 @@ API Changes are now declared with an alignment of 1 on all architectures. The compiler may generate narrower loads and stores than before. +* eal: Promoted ``rte_memzero_explicit``, ``rte_free_sensitive``, + ``rte_basename``, ``rte_size_to_str`` and the lcore variables API + from experimental to stable. + * ethdev: Updated VMDq related API.
This would be better done as a bulleted list so it can be easily added to by patches. Patch 2 of this set should start by adding to release note:
* Promoted the following APIs to stable:
- ``rte_basename`` in EAL
with the later patches adding a new bullet each time.
Quoted 38 lines
doc/guides/rel_notes/release_26_11.rst +0
-0* At port configuration time, the number of VMDq pools advertised by a driverlib/eal/common/eal_common_lcore_var.c +1
-1@@ -76,7 +76,7 @@ lcore_var_alloc(size_t size, size_t align)return handle; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_lcore_var_alloc, 24.11) +RTE_EXPORT_SYMBOL (rte_lcore_var_alloc) void *rte_lcore_var_alloc (size_t size,size_t align) {lib/eal/include/rte_lcore_var.h +0
-3@@ -15,8 +15,6 @@* * Please refer to the lcore variables' programmer's guide * for an overview of this API and its implementation. -* -* EXPERIMENTAL: this API may change, or be removed, without prior notice. */ #include <stddef.h> @@ -199,7 +197,6 @@ rte_lcore_var_lcore(unsigned int lcore_id, void *handle)* The variable's handle, stored in a void pointer value. * The value is always non-NULL. */ -__rte_experimental void *rte_lcore_var_alloc (size_t size,size_t align)__rte_alloc_align (2 );Signature · 1 line
2.53.0
PATCH 6/20 cmdline: promote bool token ops to stable
In reply to Stephen HemmingerThe cmdline_token_bool_ops structure was added in 25.03 and has not changed. It was the only experimental symbol left in the cmdline library, where the other 69 exports are already stable.
--- doc/guides/rel_notes/release_26_11.rst | 2 ++ lib/cmdline/cmdline_parse_bool.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
doc/guides/rel_notes/release_26_11.rst +2 -0
@@ -221,6 +221,8 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. + * eal: Improved pointer arithmetic macros. * ``RTE_PTR_ADD``, ``RTE_PTR_SUB``, ``RTE_PTR_ALIGN``, ``RTE_PTR_ALIGN_CEIL``,
lib/cmdline/cmdline_parse_bool.c +1 -1
@@ -18,7 +18,7 @@ cmdline_get_help_bool(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size); -RTE_EXPORT_EXPERIMENTAL_SYMBOL(cmdline_token_bool_ops, 25.03) +RTE_EXPORT_SYMBOL (cmdline_token_bool_ops) struct cmdline_token_ops cmdline_token_bool_ops = { .parse = cmdline_parse_bool, .complete_get_nb =NULL ,
Signature · 1 line
2.53.0
Re: [PATCH 06/20] cmdline: promote bool token ops to stable
Quoted 10 lines · Stephen Hemminger
The
cmdline_token_bool_opsstructure was added in 25.03 and has not changed. It was the only experimental symbol left in the cmdline library, where the other 69 exports are already stable.Signed-off-by Stephen Hemminger <[email protected]>--- doc/guides/rel_notes/release_26_11.rst | 2 ++ lib/cmdline/cmdline_parse_bool.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
Though see previous comment about release note entries. This might be better just as a bullet under a main stabilization heading.
Quoted 29 lines
doc/guides/rel_notes/release_26_11.rst +2
-0@@ -221,6 +221,8 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. + * eal: Improved pointer arithmetic macros. * ``RTE_PTR_ADD``, ``RTE_PTR_SUB``, ``RTE_PTR_ALIGN``, ``RTE_PTR_ALIGN_CEIL``,lib/cmdline/cmdline_parse_bool.c +1
-1@@ -18,7 +18,7 @@ cmdline_get_help_bool(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size); -RTE_EXPORT_EXPERIMENTAL_SYMBOL(cmdline_token_bool_ops, 25.03) +RTE_EXPORT_SYMBOL (cmdline_token_bool_ops) struct cmdline_token_ops cmdline_token_bool_ops = { .parse = cmdline_parse_bool, .complete_get_nb =NULL ,Signature · 1 line
2.53.0
PATCH 7/20 ethdev: promote link connector to string to stable
In reply to Stephen Hemmingerrte_eth_link_connector_to_str() was added in 25.11 and has not changed. It is a pure enum to string helper with no driver involvement, like the already stable rte_eth_link_speed_to_str().
The xstats counter enable and query functions are left experimental. They are currently implemented only by net/mlx5, so the interface should not be frozen before a second driver has tried to use it.
--- doc/guides/rel_notes/release_26_11.rst | 3 ++- lib/ethdev/rte_ethdev.c | 2 +- lib/ethdev/rte_ethdev.h | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-)
doc/guides/rel_notes/release_26_11.rst +2 -1
@@ -300,7 +300,8 @@ API Changes * utility functions: ``rte_eth_get_monitor_addr``, ``rte_eth_representor_info_get``, ``rte_eth_buffer_split_get_supported_hdr_ptypes``, - ``rte_eth_timesync_adjust_freq`` and ``rte_tm_node_query`` + ``rte_eth_timesync_adjust_freq``, ``rte_tm_node_query``, + and ``rte_eth_link_connector_to_str`` * buffer split and error handling types: ``rte_eth_rxseg_split``, ``rte_eth_rxseg``, ``rte_eth_rxseg_capa`` and ``rte_eth_err_handle_mode``
lib/ethdev/rte_ethdev.c +1 -1
@@ -3329,7 +3329,7 @@ rte_eth_link_to_str(char *str, size_t len, const struct rte_eth_link *eth_link)return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_link_connector_to_str, 25.11) +RTE_EXPORT_SYMBOL (rte_eth_link_connector_to_str) const char *rte_eth_link_connector_to_str (enum rte_eth_link_connector link_connector) {
lib/ethdev/rte_ethdev.h +0 -4
@@ -3075,9 +3075,6 @@ int rte_eth_link_get_nowait(uint16_t port_id, struct rte_eth_link *link)const char *rte_eth_link_speed_to_str (uint32_t link_speed);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * This function converts an Ethernet link type to a string. * * @param link_connector
@@ -3085,7 +3082,6 @@ const char *rte_eth_link_speed_to_str(uint32_t link_speed);* @return * NULL for invalid link connector values otherwise the string representation of the link type. */ -__rte_experimental const char *rte_eth_link_connector_to_str (enum rte_eth_link_connector link_connector);/**
Signature · 1 line
2.53.0
PATCH 8/20 port: promote SWX port API to stable
In reply to Stephen HemmingerThe SWX port ops structures have been experimental since 20.11 (ethdev, source/sink) and 21.05 (fd, ring). They have not changed since being introduced and are the only port API remaining now that the legacy rte_port_* API has been removed, so there is no reason to keep them experimental.
--- lib/port/rte_swx_port_ethdev.c | 4 ++-- lib/port/rte_swx_port_fd.c | 4 ++-- lib/port/rte_swx_port_ring.c | 4 ++-- lib/port/rte_swx_port_source_sink.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-)
lib/port/rte_swx_port_ethdev.c +2 -2
@@ -402,7 +402,7 @@ writer_stats_read(void *port, struct rte_swx_port_out_stats *stats)/* * Summary of port operations */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_ethdev_reader_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_port_ethdev_reader_ops) struct rte_swx_port_in_ops rte_swx_port_ethdev_reader_ops = { .create = reader_create, .free = reader_free,
@@ -410,7 +410,7 @@ struct rte_swx_port_in_ops rte_swx_port_ethdev_reader_ops = { .stats_read = reader_stats_read, }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_ethdev_writer_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_port_ethdev_writer_ops) struct rte_swx_port_out_ops rte_swx_port_ethdev_writer_ops = { .create = writer_create, .free = writer_free,
lib/port/rte_swx_port_fd.c +2 -2
@@ -345,7 +345,7 @@ writer_stats_read(void *port, struct rte_swx_port_out_stats *stats)/* * Summary of port operations */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_fd_reader_ops, 21.05) +RTE_EXPORT_SYMBOL (rte_swx_port_fd_reader_ops) struct rte_swx_port_in_ops rte_swx_port_fd_reader_ops = { .create = reader_create, .free = reader_free,
@@ -353,7 +353,7 @@ struct rte_swx_port_in_ops rte_swx_port_fd_reader_ops = { .stats_read = reader_stats_read, }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_fd_writer_ops, 21.05) +RTE_EXPORT_SYMBOL (rte_swx_port_fd_writer_ops) struct rte_swx_port_out_ops rte_swx_port_fd_writer_ops = { .create = writer_create, .free = writer_free,
lib/port/rte_swx_port_ring.c +2 -2
@@ -407,7 +407,7 @@ writer_stats_read(void *port, struct rte_swx_port_out_stats *stats)/* * Summary of port operations */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_ring_reader_ops, 21.05) +RTE_EXPORT_SYMBOL (rte_swx_port_ring_reader_ops) struct rte_swx_port_in_ops rte_swx_port_ring_reader_ops = { .create = reader_create, .free = reader_free,
@@ -415,7 +415,7 @@ struct rte_swx_port_in_ops rte_swx_port_ring_reader_ops = { .stats_read = reader_stats_read, }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_ring_writer_ops, 21.05) +RTE_EXPORT_SYMBOL (rte_swx_port_ring_writer_ops) struct rte_swx_port_out_ops rte_swx_port_ring_writer_ops = { .create = writer_create, .free = writer_free,
lib/port/rte_swx_port_source_sink.c +3 -3
@@ -202,7 +202,7 @@ source_stats_read(void *port, struct rte_swx_port_in_stats *stats)memcpy (stats, &p->stats,sizeof (p->stats)); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_source_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_port_source_ops) struct rte_swx_port_in_ops rte_swx_port_source_ops = { .create = source_create, .free = source_free,
@@ -212,7 +212,7 @@ struct rte_swx_port_in_ops rte_swx_port_source_ops = {#else -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_source_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_port_source_ops) struct rte_swx_port_in_ops rte_swx_port_source_ops = { .create =NULL , .free = NULL,
@@ -383,7 +383,7 @@ sink_stats_read(void *port, struct rte_swx_port_out_stats *stats)/* * Summary of port operations */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_port_sink_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_port_sink_ops) struct rte_swx_port_out_ops rte_swx_port_sink_ops = { .create = sink_create, .free = sink_free,
Signature · 1 line
2.53.0
PATCH 9/20 table: promote SWX table API to stable
In reply to Stephen HemmingerThe SWX table symbols have been experimental since 20.11 (exact match), 21.05 (wildcard match), 21.08 (selector) and 21.11 (learner), with only the learner timeout and rearm additions in 22.07 being more recent.
The interface has been unchanged for several releases and is the only table API remaining now that the legacy rte_table_* API has been removed, so promote it to stable.
--- lib/table/rte_swx_table_em.c | 4 ++-- lib/table/rte_swx_table_learner.c | 20 ++++++++++---------- lib/table/rte_swx_table_learner.h | 12 ------------ lib/table/rte_swx_table_selector.c | 12 ++++++------ lib/table/rte_swx_table_selector.h | 8 -------- lib/table/rte_swx_table_wm.c | 2 +- 6 files changed, 19 insertions(+), 39 deletions(-)
lib/table/rte_swx_table_em.c +2 -2
@@ -646,7 +646,7 @@ table_footprint(struct rte_swx_table_params *params,return memory_footprint; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_exact_match_unoptimized_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_table_exact_match_unoptimized_ops) struct rte_swx_table_ops rte_swx_table_exact_match_unoptimized_ops = { .footprint_get = table_footprint, .mailbox_size_get = table_mailbox_size_get_unoptimized,
@@ -657,7 +657,7 @@ struct rte_swx_table_ops rte_swx_table_exact_match_unoptimized_ops = { .free = table_free, }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_exact_match_ops, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_table_exact_match_ops) struct rte_swx_table_ops rte_swx_table_exact_match_ops = { .footprint_get = table_footprint, .mailbox_size_get = table_mailbox_size_get,
lib/table/rte_swx_table_learner.c +10 -10
@@ -273,7 +273,7 @@ table_entry_id_get(struct table *t, struct table_bucket *b, size_t bucket_key_poreturn (bucket_id <<TABLE_KEYS_PER_BUCKET_LOG2 ) + bucket_key_pos; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_footprint_get, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_table_learner_footprint_get) uint64_trte_swx_table_learner_footprint_get (struct rte_swx_table_learner_params *params) {
@@ -285,7 +285,7 @@ rte_swx_table_learner_footprint_get(struct rte_swx_table_learner_params *params)return status ?0 : p.total_size; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_create, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_table_learner_create) void *rte_swx_table_learner_create (struct rte_swx_table_learner_params *params,int numa_node) {
@@ -309,7 +309,7 @@ rte_swx_table_learner_create(struct rte_swx_table_learner_params *params, int nureturn t; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_free, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_table_learner_free) voidrte_swx_table_learner_free (void *table) {
@@ -321,7 +321,7 @@ rte_swx_table_learner_free(void *table)env_free (t, t->params.total_size); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_timeout_update, 22.07) +RTE_EXPORT_SYMBOL(rte_swx_table_learner_timeout_update) int rte_swx_table_learner_timeout_update(void *table, uint32_t key_timeout_id,
@@ -359,14 +359,14 @@ struct mailbox {int state; }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_mailbox_size_get, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_table_learner_mailbox_size_get) uint64_trte_swx_table_learner_mailbox_size_get (void ) {return sizeof (struct mailbox ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_lookup, 21.11) +RTE_EXPORT_SYMBOL(rte_swx_table_learner_lookup) int rte_swx_table_learner_lookup(void *table, void *mailbox,
@@ -453,7 +453,7 @@ rte_swx_table_learner_lookup(void *table, } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_rearm, 22.07) +RTE_EXPORT_SYMBOL(rte_swx_table_learner_rearm) void rte_swx_table_learner_rearm(void *table, void *mailbox,
@@ -477,7 +477,7 @@ rte_swx_table_learner_rearm(void *table, b->time[bucket_key_pos] = (input_time + key_timeout) >>32 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_rearm_new, 22.07) +RTE_EXPORT_SYMBOL(rte_swx_table_learner_rearm_new) void rte_swx_table_learner_rearm_new(void *table, void *mailbox,
@@ -502,7 +502,7 @@ rte_swx_table_learner_rearm_new(void *table, b->key_timeout_id[bucket_key_pos] = (uint8_t )key_timeout_id; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_add, 21.11) +RTE_EXPORT_SYMBOL(rte_swx_table_learner_add) uint32_t rte_swx_table_learner_add(void *table, void *mailbox,
@@ -579,7 +579,7 @@ rte_swx_table_learner_add(void *table,return 1 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_learner_delete, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_table_learner_delete) void rte_swx_table_learner_delete(void *table __rte_unused,void *mailbox)
lib/table/rte_swx_table_learner.h +0 -12
@@ -45,8 +45,6 @@#include <stdint.h> #include <sys/types.h> -#include <rte_compat.h> -#include "rte_swx_hash_func.h" #ifdef __cplusplus
@@ -107,7 +105,6 @@ struct rte_swx_table_learner_params {* @return * Table memory footprint in bytes. */ -__rte_experimental uint64_t rte_swx_table_learner_footprint_get (struct rte_swx_table_learner_params *params);
@@ -121,7 +118,6 @@ rte_swx_table_learner_footprint_get(struct rte_swx_table_learner_params *params)* @return * Table mailbox footprint in bytes. */ -__rte_experimental uint64_t rte_swx_table_learner_mailbox_size_get (void );
@@ -135,7 +131,6 @@ rte_swx_table_learner_mailbox_size_get(void);* @return * Table handle, on success, or NULL, on error. */ -__rte_experimental void *rte_swx_table_learner_create (struct rte_swx_table_learner_params *params,int numa_node);
@@ -152,7 +147,6 @@ rte_swx_table_learner_create(struct rte_swx_table_learner_params *params, int nu* 0 on success or the following error codes otherwise: * -EINVAL: Invalid argument(s). */ -__rte_experimental int rte_swx_table_learner_timeout_update(void *table, uint32_t key_timeout_id,
@@ -206,7 +200,6 @@ rte_swx_table_learner_timeout_update(void *table,* 0 when the table lookup operation is not yet completed, and 1 when the table lookup operation * is completed. No other return values are allowed. */ -__rte_experimental int rte_swx_table_learner_lookup(void *table, void *mailbox,
@@ -239,7 +232,6 @@ rte_swx_table_learner_lookup(void *table,* @return * 0 on success, 1 or error (table full). */ -__rte_experimental uint32_t rte_swx_table_learner_add(void *table, void *mailbox,
@@ -261,7 +253,6 @@ rte_swx_table_learner_add(void *table,* @param[in] time * Current time measured in CPU clock cycles. */ -__rte_experimental void rte_swx_table_learner_rearm(void *table, void *mailbox,
@@ -282,7 +273,6 @@ rte_swx_table_learner_rearm(void *table,* @param[in] key_timeout_id * Key timeout ID. */ -__rte_experimental void rte_swx_table_learner_rearm_new(void *table, void *mailbox,
@@ -301,7 +291,6 @@ rte_swx_table_learner_rearm_new(void *table,* @param[in] mailbox * Mailbox for the current operation. */ -__rte_experimental void rte_swx_table_learner_delete (void *table,void *mailbox);
@@ -312,7 +301,6 @@ rte_swx_table_learner_delete(void *table,* @param[in] table * Table handle. */ -__rte_experimental void rte_swx_table_learner_free (void *table);
lib/table/rte_swx_table_selector.c +6 -6
@@ -171,7 +171,7 @@ struct table {uint32_t n_members_per_group_max_log2; }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_footprint_get, 21.08) +RTE_EXPORT_SYMBOL (rte_swx_table_selector_footprint_get) uint64_trte_swx_table_selector_footprint_get (uint32_t n_groups_max,uint32_t n_members_per_group_max) {
@@ -184,7 +184,7 @@ rte_swx_table_selector_footprint_get(uint32_t n_groups_max, uint32_t n_members_preturn sizeof (struct table ) + group_table_size + members_size; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_free, 21.08) +RTE_EXPORT_SYMBOL (rte_swx_table_selector_free) voidrte_swx_table_selector_free (void *table) {
@@ -262,7 +262,7 @@ group_set(struct table *t,uint32_t group_id, struct rte_swx_table_selector_group *group); -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_create, 21.08) +RTE_EXPORT_SYMBOL (rte_swx_table_selector_create) void * rte_swx_table_selector_create(struct rte_swx_table_selector_params *params, struct rte_swx_table_selector_group **groups,
@@ -532,7 +532,7 @@ group_set(struct table *t,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_group_set, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_table_selector_group_set) int rte_swx_table_selector_group_set(void *table, uint32_t group_id,
@@ -547,14 +547,14 @@ struct mailbox { }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_mailbox_size_get, 21.08) +RTE_EXPORT_SYMBOL (rte_swx_table_selector_mailbox_size_get) uint64_trte_swx_table_selector_mailbox_size_get (void ) {return sizeof (struct mailbox ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_selector_select, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_table_selector_select) int rte_swx_table_selector_select(void *table, void *mailbox __rte_unused,
lib/table/rte_swx_table_selector.h +0 -8
@@ -13,8 +13,6 @@#include <stdint.h> -#include <rte_compat.h> -#include "rte_swx_table.h" #ifdef __cplusplus
@@ -83,7 +81,6 @@ struct rte_swx_table_selector_group {* @return * Selector table memory footprint in bytes. */ -__rte_experimental uint64_t rte_swx_table_selector_footprint_get (uint32_t n_groups_max,uint32_t n_members_per_group_max);
@@ -97,7 +94,6 @@ rte_swx_table_selector_footprint_get(uint32_t n_groups_max, uint32_t n_members_p* @return * Selector table mailbox footprint in bytes. */ -__rte_experimental uint64_t rte_swx_table_selector_mailbox_size_get (void );
@@ -115,7 +111,6 @@ rte_swx_table_selector_mailbox_size_get(void);* @return * Table handle, on success, or NULL, on error. */ -__rte_experimental void * rte_swx_table_selector_create(struct rte_swx_table_selector_params *params, struct rte_swx_table_selector_group **groups,
@@ -135,7 +130,6 @@ rte_swx_table_selector_create(struct rte_swx_table_selector_params *params,* -EINVAL: Invalid argument(s); * -ENOSPC: Too many group members. */ -__rte_experimental int rte_swx_table_selector_group_set(void *table, uint32_t group_id,
@@ -177,7 +171,6 @@ rte_swx_table_selector_group_set(void *table,* 0 when the operation is not yet completed, and 1 when the operation is complete. No other * return values are allowed. */ -__rte_experimental int rte_swx_table_selector_select(void *table, void *mailbox,
@@ -191,7 +184,6 @@ rte_swx_table_selector_select(void *table,* @param[in] table * Selector table handle. */ -__rte_experimental void rte_swx_table_selector_free (void *table);
lib/table/rte_swx_table_wm.c +1 -1
@@ -458,7 +458,7 @@ table_lookup(void *table,return 1 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_table_wildcard_match_ops, 21.05) +RTE_EXPORT_SYMBOL (rte_swx_table_wildcard_match_ops) struct rte_swx_table_ops rte_swx_table_wildcard_match_ops = { .footprint_get =NULL , .mailbox_size_get = table_mailbox_size_get,
Signature · 1 line
2.53.0
PATCH 10/20 pipeline: promote SWX IPsec API to stable
In reply to Stephen HemmingerThe rte_swx_ipsec_* symbols have been experimental since 23.03 and have had no functional change since. Promote them to stable along with the rest of the SWX pipeline API.
--- lib/pipeline/rte_swx_ipsec.c | 14 +++++++------- lib/pipeline/rte_swx_ipsec.h | 8 -------- 2 files changed, 7 insertions(+), 15 deletions(-)
lib/pipeline/rte_swx_ipsec.c +7 -7
@@ -178,7 +178,7 @@ static struct rte_tailq_elem rte_swx_ipsec_tailq = { EAL_REGISTER_TAILQ(rte_swx_ipsec_tailq) -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_find, 23.03) +RTE_EXPORT_SYMBOL(rte_swx_ipsec_find) struct rte_swx_ipsec * rte_swx_ipsec_find(const char *name) {
@@ -263,7 +263,7 @@ ipsec_unregister(struct rte_swx_ipsec *ipsec)static void ipsec_session_free (struct rte_swx_ipsec *ipsec,struct rte_ipsec_session *s); -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_free, 23.03) +RTE_EXPORT_SYMBOL (rte_swx_ipsec_free) voidrte_swx_ipsec_free (struct rte_swx_ipsec *ipsec) {
@@ -294,7 +294,7 @@ rte_swx_ipsec_free(struct rte_swx_ipsec *ipsec)env_free (ipsec, ipsec->total_size); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_create, 23.03) +RTE_EXPORT_SYMBOL(rte_swx_ipsec_create) int rte_swx_ipsec_create(struct rte_swx_ipsec **ipsec_out, const char *name,
@@ -722,7 +722,7 @@ rte_swx_ipsec_post_crypto(struct rte_swx_ipsec *ipsec) } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_run, 23.03) +RTE_EXPORT_SYMBOL (rte_swx_ipsec_run) voidrte_swx_ipsec_run (struct rte_swx_ipsec *ipsec) {
@@ -1134,7 +1134,7 @@ do { \ } \ }while (0 ) -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_sa_read, 23.03) +RTE_EXPORT_SYMBOL(rte_swx_ipsec_sa_read)struct rte_swx_ipsec_sa_params * rte_swx_ipsec_sa_read(struct rte_swx_ipsec *ipsec __rte_unused, const char *string,
@@ -1768,7 +1768,7 @@ ipsec_session_free(struct rte_swx_ipsec *ipsec,memset (s,0 ,sizeof (*s)); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_sa_add, 23.03) +RTE_EXPORT_SYMBOL(rte_swx_ipsec_sa_add) int rte_swx_ipsec_sa_add(struct rte_swx_ipsec *ipsec, struct rte_swx_ipsec_sa_params *sa_params,
@@ -1808,7 +1808,7 @@ rte_swx_ipsec_sa_add(struct rte_swx_ipsec *ipsec,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ipsec_sa_delete, 23.03) +RTE_EXPORT_SYMBOL (rte_swx_ipsec_sa_delete) voidrte_swx_ipsec_sa_delete (struct rte_swx_ipsec *ipsec,uint32_t sa_id)
lib/pipeline/rte_swx_ipsec.h +0 -8
@@ -46,7 +46,6 @@#include <stdio.h> #include <netinet/in.h> -#include <rte_compat.h> #include <rte_crypto_sym.h> #include <rte_ip6.h>
@@ -125,7 +124,6 @@ struct rte_swx_ipsec_input_packet_metadata {* @return * Valid IPsec instance handle if found or NULL otherwise. */ -__rte_experimental struct rte_swx_ipsec *rte_swx_ipsec_find (const char *name);
@@ -147,7 +145,6 @@ rte_swx_ipsec_find(const char *name);* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Pipeline with this name already exists. */ -__rte_experimental int rte_swx_ipsec_create(struct rte_swx_ipsec **ipsec, const char *name,
@@ -160,7 +157,6 @@ rte_swx_ipsec_create(struct rte_swx_ipsec **ipsec,* @param[in] ipsec * IPsec instance handle. */ -__rte_experimental void rte_swx_ipsec_free (struct rte_swx_ipsec *ipsec);
@@ -174,7 +170,6 @@ rte_swx_ipsec_free(struct rte_swx_ipsec *ipsec);* @param[in] ipsec * IPsec instance handle. */ -__rte_experimental void rte_swx_ipsec_run (struct rte_swx_ipsec *ipsec);
@@ -297,7 +292,6 @@ struct rte_swx_ipsec_sa_params {* @return * 0 on success or error code otherwise. */ -__rte_experimental int rte_swx_ipsec_sa_add(struct rte_swx_ipsec *ipsec, struct rte_swx_ipsec_sa_params *sa_params,
@@ -314,7 +308,6 @@ rte_swx_ipsec_sa_add(struct rte_swx_ipsec *ipsec,* @param[in] sa_id * The SA ID. */ -__rte_experimental void rte_swx_ipsec_sa_delete (struct rte_swx_ipsec *ipsec,uint32_t sa_id);
@@ -367,7 +360,6 @@ rte_swx_ipsec_sa_delete(struct rte_swx_ipsec *ipsec,* @return * Pointer to valid IPsec SA parameters data structure on success or NULL on error. */ -__rte_experimental struct rte_swx_ipsec_sa_params * rte_swx_ipsec_sa_read(struct rte_swx_ipsec *ipsec, const char *string,
Signature · 1 line
2.53.0
PATCH 11/20 pipeline: promote SWX pipeline and control API to stable
In reply to Stephen HemmingerThe rte_swx_pipeline_* symbols date from 20.11, with later additions for the register and meter arrays (21.05), selector (21.08), learner (21.11), hash function registration (22.07), pipeline lookup and code generation (22.11) and RSS (23.03). The rte_swx_ctl_* control plane symbols span the same range of releases.
The API has been in use unchanged for several releases and is the only pipeline API remaining now that the legacy rte_pipeline_* API has been removed, so promote it to stable.
The pipeline and control parts are promoted together because they cannot be separated: rte_swx_ctl.h declares symbols defined in both rte_swx_ctl.c and rte_swx_pipeline.c, so dropping __rte_experimental from that header requires updating the exports in both files at once.
--- doc/guides/rel_notes/release_26_11.rst | 5 + lib/pipeline/rte_swx_ctl.c | 34 +++--- lib/pipeline/rte_swx_ctl.h | 61 ----------- lib/pipeline/rte_swx_pipeline.c | 146 ++++++++++++------------- lib/pipeline/rte_swx_pipeline.h | 32 ------ 5 files changed, 95 insertions(+), 183 deletions(-)
doc/guides/rel_notes/release_26_11.rst +5 -0
@@ -343,6 +343,11 @@ API Changes ``rte_event_port_profile_links_get`` and ``rte_event_port_profile_unlink`` +* pipeline: Promoted the SWX API from experimental to stable: + the ``rte_swx_pipeline_*``, ``rte_swx_ctl_*`` and ``rte_swx_ipsec_*`` + functions in pipeline, the ``rte_swx_table_*`` symbols in table and + the ``rte_swx_port_*`` symbols in port. + * reorder: Promoted the following API from experimental to stable: ``rte_reorder_seqn``, ``rte_reorder_drain_up_to_seqn``, ``rte_reorder_min_seqn_set`` and ``rte_reorder_memory_footprint_get``.
lib/pipeline/rte_swx_ctl.c +17 -17
@@ -1170,7 +1170,7 @@ static struct rte_tailq_elem rte_swx_ctl_pipeline_tailq = { EAL_REGISTER_TAILQ(rte_swx_ctl_pipeline_tailq) -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_find, 22.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_find) struct rte_swx_ctl_pipeline * rte_swx_ctl_pipeline_find(const char *name) {
@@ -1250,7 +1250,7 @@ ctl_unregister(struct rte_swx_ctl_pipeline *ctl)rte_mcfg_tailq_write_unlock (); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_free, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_free) voidrte_swx_ctl_pipeline_free (struct rte_swx_ctl_pipeline *ctl) {
@@ -1273,7 +1273,7 @@ rte_swx_ctl_pipeline_free(struct rte_swx_ctl_pipeline *ctl)free (ctl); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_create, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_create) struct rte_swx_ctl_pipeline *rte_swx_ctl_pipeline_create (struct rte_swx_pipeline *p) {
@@ -1552,7 +1552,7 @@ rte_swx_ctl_pipeline_create(struct rte_swx_pipeline *p)return NULL ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_table_entry_add, 20.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_table_entry_add) int rte_swx_ctl_pipeline_table_entry_add(struct rte_swx_ctl_pipeline *ctl, const char *table_name,
@@ -1667,7 +1667,7 @@ rte_swx_ctl_pipeline_table_entry_add(struct rte_swx_ctl_pipeline *ctl,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_table_entry_delete, 20.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_table_entry_delete) int rte_swx_ctl_pipeline_table_entry_delete(struct rte_swx_ctl_pipeline *ctl, const char *table_name,
@@ -1758,7 +1758,7 @@ rte_swx_ctl_pipeline_table_entry_delete(struct rte_swx_ctl_pipeline *ctl,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_table_default_entry_add, 20.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_table_default_entry_add) int rte_swx_ctl_pipeline_table_default_entry_add(struct rte_swx_ctl_pipeline *ctl, const char *table_name,
@@ -2096,7 +2096,7 @@ table_abort(struct rte_swx_ctl_pipeline *ctl, uint32_t table_id)table_pending_default_free (table); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_selector_group_add, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_selector_group_add) int rte_swx_ctl_pipeline_selector_group_add(struct rte_swx_ctl_pipeline *ctl, const char *selector_name,
@@ -2124,7 +2124,7 @@ rte_swx_ctl_pipeline_selector_group_add(struct rte_swx_ctl_pipeline *ctl,return -ENOSPC ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_selector_group_delete, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_selector_group_delete) int rte_swx_ctl_pipeline_selector_group_delete(struct rte_swx_ctl_pipeline *ctl, const char *selector_name,
@@ -2176,7 +2176,7 @@ rte_swx_ctl_pipeline_selector_group_delete(struct rte_swx_ctl_pipeline *ctl,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_selector_group_member_add, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_selector_group_member_add) int rte_swx_ctl_pipeline_selector_group_member_add(struct rte_swx_ctl_pipeline *ctl, const char *selector_name,
@@ -2236,7 +2236,7 @@ rte_swx_ctl_pipeline_selector_group_member_add(struct rte_swx_ctl_pipeline *ctl,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_selector_group_member_delete, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_selector_group_member_delete) int rte_swx_ctl_pipeline_selector_group_member_delete(struct rte_swx_ctl_pipeline *ctl, const char *selector_name,
@@ -2490,7 +2490,7 @@ learner_default_entry_duplicate(struct rte_swx_ctl_pipeline *ctl,return NULL ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_learner_default_entry_add, 21.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_learner_default_entry_add) int rte_swx_ctl_pipeline_learner_default_entry_add(struct rte_swx_ctl_pipeline *ctl, const char *learner_name,
@@ -2564,7 +2564,7 @@ learner_abort(struct rte_swx_ctl_pipeline *ctl, uint32_t learner_id)learner_pending_default_free (l); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_commit, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_commit) intrte_swx_ctl_pipeline_commit (struct rte_swx_ctl_pipeline *ctl,int abort_on_fail) {
@@ -2651,7 +2651,7 @@ rte_swx_ctl_pipeline_commit(struct rte_swx_ctl_pipeline *ctl, int abort_on_fail)return status; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_abort, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_abort) voidrte_swx_ctl_pipeline_abort (struct rte_swx_ctl_pipeline *ctl) {
@@ -2986,7 +2986,7 @@ token_is_comment(const char *token)#define RTE_SWX_CTL_ENTRY_TOKENS_MAX 256 -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_table_entry_read, 20.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_table_entry_read) struct rte_swx_table_entry * rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl, const char *table_name,
@@ -3186,7 +3186,7 @@ rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl,return NULL ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_learner_default_entry_read, 21.11) +RTE_EXPORT_SYMBOL (rte_swx_ctl_pipeline_learner_default_entry_read) struct rte_swx_table_entry * rte_swx_ctl_pipeline_learner_default_entry_read(struct rte_swx_ctl_pipeline *ctl, const char *learner_name,
@@ -3339,7 +3339,7 @@ table_entry_printf(FILE *f,fprintf (f,"\n" ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_table_fprintf, 20.11) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_table_fprintf) int rte_swx_ctl_pipeline_table_fprintf(FILE *f, struct rte_swx_ctl_pipeline *ctl,
@@ -3390,7 +3390,7 @@ rte_swx_ctl_pipeline_table_fprintf(FILE *f,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_swx_ctl_pipeline_selector_fprintf, 21.08) +RTE_EXPORT_SYMBOL(rte_swx_ctl_pipeline_selector_fprintf) int rte_swx_ctl_pipeline_selector_fprintf(FILE *f, struct rte_swx_ctl_pipeline *ctl,
lib/pipeline/rte_swx_ctl.h +0 -61
427 lines not on this page · raw message
lib/pipeline/rte_swx_pipeline.c +73 -73
584 lines not on this page · raw message
lib/pipeline/rte_swx_pipeline.h +0 -32
@@ -12,8 +12,6 @@#include <stdint.h> #include <stdio.h> -#include <rte_compat.h> -#include "rte_swx_port.h" #include "rte_swx_table.h" #include "rte_swx_extern.h"
@@ -52,7 +50,6 @@ struct rte_swx_pipeline;* @return * Valid pipeline handle if found or NULL otherwise. */ -__rte_experimental struct rte_swx_pipeline *rte_swx_pipeline_find (const char *name);
@@ -72,7 +69,6 @@ rte_swx_pipeline_find(const char *name);* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Pipeline with this name already exists. */ -__rte_experimental int rte_swx_pipeline_config(struct rte_swx_pipeline **p, const char *name,
@@ -97,7 +93,6 @@ rte_swx_pipeline_config(struct rte_swx_pipeline **p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Input port type with this name already exists. */ -__rte_experimental int rte_swx_pipeline_port_in_type_register(struct rte_swx_pipeline *p, const char *name,
@@ -120,7 +115,6 @@ rte_swx_pipeline_port_in_type_register(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -ENODEV: Input port object creation error. */ -__rte_experimental int rte_swx_pipeline_port_in_config(struct rte_swx_pipeline *p, uint32_t port_id,
@@ -146,7 +140,6 @@ rte_swx_pipeline_port_in_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Output port type with this name already exists. */ -__rte_experimental int rte_swx_pipeline_port_out_type_register(struct rte_swx_pipeline *p, const char *name,
@@ -169,7 +162,6 @@ rte_swx_pipeline_port_out_type_register(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -ENODEV: Output port object creation error. */ -__rte_experimental int rte_swx_pipeline_port_out_config(struct rte_swx_pipeline *p, uint32_t port_id,
@@ -211,7 +203,6 @@ struct rte_swx_pipeline_mirroring_params {* -ENOMEM: Not enough memory; * -EEXIST: Pipeline was already built successfully. */ -__rte_experimental int rte_swx_pipeline_mirroring_config (struct rte_swx_pipeline *p,struct rte_swx_pipeline_mirroring_params *params);
@@ -242,7 +233,6 @@ rte_swx_pipeline_mirroring_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Extern type with this name already exists. */ -__rte_experimental int rte_swx_pipeline_extern_type_register(struct rte_swx_pipeline *p, const char *name,
@@ -268,7 +258,6 @@ rte_swx_pipeline_extern_type_register(struct rte_swx_pipeline *p,* -EEXIST: Member function with this name already exists for this type; * -ENOSPC: Maximum number of member functions reached for this type. */ -__rte_experimental int rte_swx_pipeline_extern_type_member_func_register(struct rte_swx_pipeline *p, const char *extern_type_name,
@@ -295,7 +284,6 @@ rte_swx_pipeline_extern_type_member_func_register(struct rte_swx_pipeline *p,* -EEXIST: Extern object with this name already exists; * -ENODEV: Extern object constructor error. */ -__rte_experimental int rte_swx_pipeline_extern_object_config(struct rte_swx_pipeline *p, const char *extern_type_name,
@@ -321,7 +309,6 @@ rte_swx_pipeline_extern_object_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Extern function with this name already exists. */ -__rte_experimental int rte_swx_pipeline_extern_func_register(struct rte_swx_pipeline *p, const char *name,
@@ -346,7 +333,6 @@ rte_swx_pipeline_extern_func_register(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Hash function with this name already exists. */ -__rte_experimental int rte_swx_pipeline_hash_func_register(struct rte_swx_pipeline *p, const char *name,
@@ -369,7 +355,6 @@ rte_swx_pipeline_hash_func_register(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: RSS object with this name already exists. */ -__rte_experimental int rte_swx_pipeline_rss_config (struct rte_swx_pipeline *p,const char *name);
@@ -425,7 +410,6 @@ struct rte_swx_field_params {* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Struct type with this name already exists. */ -__rte_experimental int rte_swx_pipeline_struct_type_register(struct rte_swx_pipeline *p, const char *name,
@@ -449,7 +433,6 @@ rte_swx_pipeline_struct_type_register(struct rte_swx_pipeline *p,* -EEXIST: Header with this name already exists; * -ENOSPC: Maximum number of headers reached for the pipeline. */ -__rte_experimental int rte_swx_pipeline_packet_header_register(struct rte_swx_pipeline *p, const char *name,
@@ -466,7 +449,6 @@ rte_swx_pipeline_packet_header_register(struct rte_swx_pipeline *p,* 0 on success or the following error codes otherwise: * -EINVAL: Invalid argument. */ -__rte_experimental int rte_swx_pipeline_packet_metadata_register (struct rte_swx_pipeline *p,const char *struct_type_name);
@@ -601,7 +583,6 @@ rte_swx_pipeline_packet_metadata_register(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Action with this name already exists. */ -__rte_experimental int rte_swx_pipeline_action_config(struct rte_swx_pipeline *p, const char *name,
@@ -630,7 +611,6 @@ rte_swx_pipeline_action_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Table type with this name already exists. */ -__rte_experimental int rte_swx_pipeline_table_type_register(struct rte_swx_pipeline *p, const char *name,
@@ -739,7 +719,6 @@ struct rte_swx_pipeline_table_params {* -EEXIST: Table with this name already exists; * -ENODEV: Table creation error. */ -__rte_experimental int rte_swx_pipeline_table_config(struct rte_swx_pipeline *p, const char *name,
@@ -793,7 +772,6 @@ struct rte_swx_pipeline_selector_params {* -EEXIST: Selector table with this name already exists; * -ENODEV: Selector table creation error. */ -__rte_experimental int rte_swx_pipeline_selector_config(struct rte_swx_pipeline *p, const char *name,
@@ -881,7 +859,6 @@ struct rte_swx_pipeline_learner_params {* -EEXIST: Learner table with this name already exists; * -ENODEV: Learner table creation error. */ -__rte_experimental int rte_swx_pipeline_learner_config(struct rte_swx_pipeline *p, const char *name,
@@ -907,7 +884,6 @@ rte_swx_pipeline_learner_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Register array with this name already exists. */ -__rte_experimental int rte_swx_pipeline_regarray_config(struct rte_swx_pipeline *p, const char *name,
@@ -930,7 +906,6 @@ rte_swx_pipeline_regarray_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Meter array with this name already exists. */ -__rte_experimental int rte_swx_pipeline_metarray_config(struct rte_swx_pipeline *p, const char *name,
@@ -950,7 +925,6 @@ rte_swx_pipeline_metarray_config(struct rte_swx_pipeline *p,* -EINVAL: Invalid argument; * -ENOMEM: Not enough space/cannot allocate memory. */ -__rte_experimental int rte_swx_pipeline_instructions_config(struct rte_swx_pipeline *p, const char **instructions,
@@ -971,7 +945,6 @@ rte_swx_pipeline_instructions_config(struct rte_swx_pipeline *p,* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Pipeline was already built successfully. */ -__rte_experimental int rte_swx_pipeline_build (struct rte_swx_pipeline *p);
@@ -993,7 +966,6 @@ rte_swx_pipeline_build(struct rte_swx_pipeline *p);* -ENOMEM: Not enough space/cannot allocate memory; * -EEXIST: Resource with the same name already exists. */ -__rte_experimental int rte_swx_pipeline_codegen(FILE *spec_file, FILE *code_file,
@@ -1026,7 +998,6 @@ rte_swx_pipeline_codegen(FILE *spec_file,* -EEXIST: Pipeline with this name already exists; * -ENODEV: Extern object or table creation error. */ -__rte_experimental int rte_swx_pipeline_build_from_lib(struct rte_swx_pipeline **p, const char *name,
@@ -1042,7 +1013,6 @@ rte_swx_pipeline_build_from_lib(struct rte_swx_pipeline **p,* @param[in] n_instructions * Number of instructions to execute. */ -__rte_experimental void rte_swx_pipeline_run (struct rte_swx_pipeline *p,uint32_t n_instructions);
@@ -1056,7 +1026,6 @@ rte_swx_pipeline_run(struct rte_swx_pipeline *p,* Pipeline handle. * If p is NULL, no operation is performed. */ -__rte_experimental void rte_swx_pipeline_flush (struct rte_swx_pipeline *p);
@@ -1066,7 +1035,6 @@ rte_swx_pipeline_flush(struct rte_swx_pipeline *p);* @param[in] p * Pipeline handle. */ -__rte_experimental void rte_swx_pipeline_free (struct rte_swx_pipeline *p);
Signature · 1 line
2.53.0
PATCH 12/20 power: promote PM QoS and uncore API to stable
In reply to Stephen HemmingerThe PM QoS API (rte_power_qos_{set,get}_cpu_resume_latency) has been experimental since 24.11, and the uncore environment and frequency list functions (rte_power_{set,unset,get}_uncore_env, rte_power_uncore_freqs) since 23.11.
These interfaces have not changed since they were introduced and the rest of the uncore API is already stable, so promote them.
--- doc/guides/rel_notes/release_26_11.rst | 7 +++++++ lib/power/rte_power_qos.c | 4 ++-- lib/power/rte_power_qos.h | 10 ---------- lib/power/rte_power_uncore.c | 8 ++++---- lib/power/rte_power_uncore.h | 5 ----- 5 files changed, 13 insertions(+), 21 deletions(-)
doc/guides/rel_notes/release_26_11.rst +7 -0
@@ -348,6 +348,13 @@ API Changes functions in pipeline, the ``rte_swx_table_*`` symbols in table and the ``rte_swx_port_*`` symbols in port. +* power: Promoted the following API from experimental to stable: + + * PM QoS: ``rte_power_qos_set_cpu_resume_latency`` and + ``rte_power_qos_get_cpu_resume_latency`` + * uncore: ``rte_power_set_uncore_env``, ``rte_power_unset_uncore_env``, + ``rte_power_get_uncore_env`` and ``rte_power_uncore_freqs`` + * reorder: Promoted the following API from experimental to stable: ``rte_reorder_seqn``, ``rte_reorder_drain_up_to_seqn``, ``rte_reorder_min_seqn_set`` and ``rte_reorder_memory_footprint_get``.
lib/power/rte_power_qos.c +2 -2
@@ -18,7 +18,7 @@#define PM_QOS_CPU_RESUME_LATENCY_BUF_LEN 32 -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_qos_set_cpu_resume_latency, 24.11) +RTE_EXPORT_SYMBOL (rte_power_qos_set_cpu_resume_latency) intrte_power_qos_set_cpu_resume_latency (uint16_t lcore_id,int latency) {
@@ -69,7 +69,7 @@ rte_power_qos_set_cpu_resume_latency(uint16_t lcore_id, int latency)return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_qos_get_cpu_resume_latency, 24.11) +RTE_EXPORT_SYMBOL (rte_power_qos_get_cpu_resume_latency) intrte_power_qos_get_cpu_resume_latency (uint16_t lcore_id) {
lib/power/rte_power_qos.h +0 -10
@@ -7,8 +7,6 @@#include <stdint.h> -#include <rte_compat.h> -#ifdef __cplusplusextern "C" {#endif
@@ -36,9 +34,6 @@ extern "C" {#define RTE_POWER_QOS_RESUME_LATENCY_NO_CONSTRAINT INT32_MAX/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * @param lcore_id * target logical core id *
@@ -48,13 +43,9 @@ extern "C" {* @return * 0 on success. Otherwise negative value is returned. */ -__rte_experimental int rte_power_qos_set_cpu_resume_latency (uint16_t lcore_id,int latency);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Get the current resume latency of this logical core. * The default value in kernel is @see RTE_POWER_QOS_RESUME_LATENCY_NO_CONSTRAINT * if don't set it.
@@ -63,7 +54,6 @@ int rte_power_qos_set_cpu_resume_latency(uint16_t lcore_id, int latency);* Negative value on failure. * >= 0 means the actual resume latency limit on this core. */ -__rte_experimental int rte_power_qos_get_cpu_resume_latency (uint16_t lcore_id);#ifdef __cplusplus
lib/power/rte_power_uncore.c +4 -4
@@ -46,7 +46,7 @@ rte_power_register_uncore_ops(struct rte_power_uncore_ops *driver_ops)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_set_uncore_env, 23.11) +RTE_EXPORT_SYMBOL (rte_power_set_uncore_env) intrte_power_set_uncore_env (enum rte_uncore_power_mgmt_env env) {
@@ -86,7 +86,7 @@ rte_power_set_uncore_env(enum rte_uncore_power_mgmt_env env)return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_unset_uncore_env, 23.11) +RTE_EXPORT_SYMBOL (rte_power_unset_uncore_env) voidrte_power_unset_uncore_env (void ) {
@@ -95,7 +95,7 @@ rte_power_unset_uncore_env(void)rte_spinlock_unlock (&global_env_cfg_lock); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_get_uncore_env, 23.11) +RTE_EXPORT_SYMBOL (rte_power_get_uncore_env) enum rte_uncore_power_mgmt_envrte_power_get_uncore_env (void ) {
@@ -180,7 +180,7 @@ rte_power_uncore_freq_min(unsigned int pkg, unsigned int die)return global_uncore_ops->freq_min (pkg, die); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_power_uncore_freqs, 23.11) +RTE_EXPORT_SYMBOL (rte_power_uncore_freqs) intrte_power_uncore_freqs (unsigned int pkg,unsigned int die,uint32_t *freqs,uint32_t num)
lib/power/rte_power_uncore.h +0 -5
@@ -11,7 +11,6 @@* Uncore Frequency Management */ -#include <rte_compat.h> #include <rte_common.h> #ifdef __cplusplus
@@ -39,14 +38,12 @@ enum rte_uncore_power_mgmt_env {* - 0 on success. * - Negative on error. */ -__rte_experimental int rte_power_set_uncore_env (enum rte_uncore_power_mgmt_env env);/** * Unset the global uncore environment configuration. * This can only be called after all threads have completed. */ -__rte_experimental void rte_power_unset_uncore_env (void );/**
@@ -55,7 +52,6 @@ void rte_power_unset_uncore_env(void);* @return * power_management_env The configured environment. */ -__rte_experimental enum rte_uncore_power_mgmt_env rte_power_get_uncore_env (void );/**
@@ -203,7 +199,6 @@ int rte_power_uncore_freq_min(unsigned int pkg, unsigned int die);* - The number of available index's in frequency array. * - Negative on error. */ -__rte_experimental int rte_power_uncore_freqs (unsigned int pkg,unsigned int die,uint32_t *freqs,uint32_t num);
Signature · 1 line
2.53.0
PATCH 13/20 ring: promote soring API to stable
In reply to Stephen HemmingerThe staged ordered ring (soring) API was introduced in 25.03 and the core enqueue, dequeue, acquire and release functions have not changed since.
Promote those to stable. The peek API added in 26.07 is left experimental since it is only one release old, as is the soring and ring headtail dump debug output which may still change.
--- doc/guides/rel_notes/release_26_11.rst | 5 ++ lib/ring/rte_soring.c | 4 +- lib/ring/rte_soring.h | 72 -------------------------- lib/ring/soring.c | 32 ++++++------ 4 files changed, 23 insertions(+), 90 deletions(-)
doc/guides/rel_notes/release_26_11.rst +5 -0
@@ -359,6 +359,11 @@ API Changes ``rte_reorder_seqn``, ``rte_reorder_drain_up_to_seqn``, ``rte_reorder_min_seqn_set`` and ``rte_reorder_memory_footprint_get``. +* ring: Promoted the staged ordered ring (soring) API from experimental + to stable, except the peek and dump functions. + The peek API added in 26.07 and the ``rte_soring_dump`` and + ``rte_ring_headtail_dump`` debug functions remain experimental. + * telemetry: Promoted the following API from experimental to stable: * ``rte_tel_data_add_array_uint_hex``
lib/ring/rte_soring.c +2 -2
@@ -120,7 +120,7 @@ rte_soring_dump(FILE *f, const struct rte_soring *r) } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_get_memsize, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_get_memsize) ssize_trte_soring_get_memsize (const struct rte_soring_param *prm) {
@@ -154,7 +154,7 @@ soring_compilation_checks(void) offsetof(struct soring_stage_headtail, unused)); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_init, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_init) intrte_soring_init (struct rte_soring *r,const struct rte_soring_param *prm) {
lib/ring/rte_soring.h +0 -72
269 lines not on this page · raw message
lib/ring/soring.c +16 -16
@@ -635,7 +635,7 @@ soring_release(struct rte_soring *r, const void *objs,* Public functions (data-path) start here. */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_release, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_release) voidrte_soring_release (struct rte_soring *r,const void *objs,uint32_t stage,uint32_t n,uint32_t ftoken)
@@ -644,7 +644,7 @@ rte_soring_release(struct rte_soring *r, const void *objs, } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_releasx, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_releasx) voidrte_soring_releasx (struct rte_soring *r,const void *objs,const void *meta,uint32_t stage,uint32_t n,uint32_t ftoken)
@@ -652,7 +652,7 @@ rte_soring_releasx(struct rte_soring *r, const void *objs,soring_release (r, objs, meta, stage, n, ftoken); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_enqueue_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_enqueue_bulk) uint32_trte_soring_enqueue_bulk (struct rte_soring *r,const void *objs,uint32_t n,uint32_t *free_space)
@@ -661,7 +661,7 @@ rte_soring_enqueue_bulk(struct rte_soring *r, const void *objs, uint32_t n, free_space); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_enqueux_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_enqueux_bulk) uint32_trte_soring_enqueux_bulk (struct rte_soring *r,const void *objs,const void *meta,uint32_t n,uint32_t *free_space)
@@ -670,7 +670,7 @@ rte_soring_enqueux_bulk(struct rte_soring *r, const void *objs, free_space); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_enqueue_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_enqueue_burst) uint32_trte_soring_enqueue_burst (struct rte_soring *r,const void *objs,uint32_t n,uint32_t *free_space)
@@ -679,7 +679,7 @@ rte_soring_enqueue_burst(struct rte_soring *r, const void *objs, uint32_t n, free_space); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_enqueux_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_enqueux_burst) uint32_trte_soring_enqueux_burst (struct rte_soring *r,const void *objs,const void *meta,uint32_t n,uint32_t *free_space)
@@ -688,7 +688,7 @@ rte_soring_enqueux_burst(struct rte_soring *r, const void *objs, free_space); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_dequeue_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_dequeue_bulk) uint32_trte_soring_dequeue_bulk (struct rte_soring *r,void *objs,uint32_t num,uint32_t *available)
@@ -697,7 +697,7 @@ rte_soring_dequeue_bulk(struct rte_soring *r, void *objs, uint32_t num, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_dequeux_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_dequeux_bulk) uint32_trte_soring_dequeux_bulk (struct rte_soring *r,void *objs,void *meta,uint32_t num,uint32_t *available)
@@ -706,7 +706,7 @@ rte_soring_dequeux_bulk(struct rte_soring *r, void *objs, void *meta, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_dequeue_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_dequeue_burst) uint32_trte_soring_dequeue_burst (struct rte_soring *r,void *objs,uint32_t num,uint32_t *available)
@@ -715,7 +715,7 @@ rte_soring_dequeue_burst(struct rte_soring *r, void *objs, uint32_t num, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_dequeux_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_dequeux_burst) uint32_trte_soring_dequeux_burst (struct rte_soring *r,void *objs,void *meta,uint32_t num,uint32_t *available)
@@ -724,7 +724,7 @@ rte_soring_dequeux_burst(struct rte_soring *r, void *objs, void *meta, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_acquire_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_acquire_bulk) uint32_trte_soring_acquire_bulk (struct rte_soring *r,void *objs,uint32_t stage,uint32_t num,uint32_t *ftoken,uint32_t *available)
@@ -733,7 +733,7 @@ rte_soring_acquire_bulk(struct rte_soring *r, void *objs, RTE_RING_QUEUE_FIXED, ftoken, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_acquirx_bulk, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_acquirx_bulk) uint32_trte_soring_acquirx_bulk (struct rte_soring *r,void *objs,void *meta,uint32_t stage,uint32_t num,uint32_t *ftoken,uint32_t *available)
@@ -742,7 +742,7 @@ rte_soring_acquirx_bulk(struct rte_soring *r, void *objs, void *meta, RTE_RING_QUEUE_FIXED, ftoken, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_acquire_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_acquire_burst) uint32_trte_soring_acquire_burst (struct rte_soring *r,void *objs,uint32_t stage,uint32_t num,uint32_t *ftoken,uint32_t *available)
@@ -751,7 +751,7 @@ rte_soring_acquire_burst(struct rte_soring *r, void *objs, RTE_RING_QUEUE_VARIABLE, ftoken, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_acquirx_burst, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_acquirx_burst) uint32_trte_soring_acquirx_burst (struct rte_soring *r,void *objs,void *meta,uint32_t stage,uint32_t num,uint32_t *ftoken,uint32_t *available)
@@ -760,7 +760,7 @@ rte_soring_acquirx_burst(struct rte_soring *r, void *objs, void *meta, RTE_RING_QUEUE_VARIABLE, ftoken, available); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_count, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_count) unsigned intrte_soring_count (const struct rte_soring *r) {
@@ -770,7 +770,7 @@ rte_soring_count(const struct rte_soring *r)return (count > r->capacity) ? r->capacity : count; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_soring_free_count, 25.03) +RTE_EXPORT_SYMBOL (rte_soring_free_count) unsigned intrte_soring_free_count (const struct rte_soring *r) {
Signature · 1 line
2.53.0
PATCH 14/20 dispatcher: promote API to stable
In reply to Stephen HemmingerThe dispatcher library was added in 23.11 and none of its functions have changed since. It has been experimental for two years, which is long enough to call the interface settled.
Promote all of it: the whole library is covered by a single file level experimental warning in the header, so there is nothing left to keep experimental once the symbols are promoted.
--- doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/dispatcher/rte_dispatcher.c | 26 +++++++++++++------------- lib/dispatcher/rte_dispatcher.h | 18 ------------------ 3 files changed, 17 insertions(+), 31 deletions(-)
doc/guides/rel_notes/release_26_11.rst +4 -0
@@ -223,6 +223,10 @@ API Changes * cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. +* dispatcher: Promoted the whole library API from experimental to stable. + The ``rte_dispatcher_*`` functions are unchanged since the library was + added in 23.11. + * eal: Improved pointer arithmetic macros. * ``RTE_PTR_ADD``, ``RTE_PTR_SUB``, ``RTE_PTR_ALIGN``, ``RTE_PTR_ALIGN_CEIL``,
lib/dispatcher/rte_dispatcher.c +13 -13
@@ -267,7 +267,7 @@ evd_service_unregister(struct rte_dispatcher *dispatcher)return rc; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_create, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_create) struct rte_dispatcher *rte_dispatcher_create (uint8_t event_dev_id) {
@@ -302,7 +302,7 @@ rte_dispatcher_create(uint8_t event_dev_id)return dispatcher; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_free, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_free) intrte_dispatcher_free (struct rte_dispatcher *dispatcher) {
@@ -320,7 +320,7 @@ rte_dispatcher_free(struct rte_dispatcher *dispatcher)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_service_id_get, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_service_id_get) uint32_trte_dispatcher_service_id_get (const struct rte_dispatcher *dispatcher) {
@@ -344,7 +344,7 @@ lcore_port_index(struct rte_dispatcher_lcore *lcore,return -1 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_bind_port_to_lcore, 23.11) +RTE_EXPORT_SYMBOL(rte_dispatcher_bind_port_to_lcore) int rte_dispatcher_bind_port_to_lcore(struct rte_dispatcher *dispatcher, uint8_t event_port_id, uint16_t batch_size, uint64_t timeout,
@@ -374,7 +374,7 @@ rte_dispatcher_bind_port_to_lcore(struct rte_dispatcher *dispatcher,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_unbind_port_from_lcore, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_unbind_port_from_lcore) intrte_dispatcher_unbind_port_from_lcore (struct rte_dispatcher *dispatcher,uint8_t event_port_id,unsigned int lcore_id)
@@ -457,7 +457,7 @@ evd_install_handler(struct rte_dispatcher *dispatcher, } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_register, 23.11) +RTE_EXPORT_SYMBOL(rte_dispatcher_register) int rte_dispatcher_register(struct rte_dispatcher *dispatcher, rte_dispatcher_match_t match_fun, void *match_data,
@@ -529,7 +529,7 @@ evd_uninstall_handler(struct rte_dispatcher *dispatcher, int handler_id)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_unregister, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_unregister) intrte_dispatcher_unregister (struct rte_dispatcher *dispatcher,int handler_id) {
@@ -583,7 +583,7 @@ evd_alloc_finalizer(struct rte_dispatcher *dispatcher)return finalizer; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_finalize_register, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_finalize_register) intrte_dispatcher_finalize_register (struct rte_dispatcher *dispatcher, rte_dispatcher_finalize_t finalize_fun,void *finalize_data)
@@ -601,7 +601,7 @@ rte_dispatcher_finalize_register(struct rte_dispatcher *dispatcher,return finalizer->id; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_finalize_unregister, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_finalize_unregister) intrte_dispatcher_finalize_unregister (struct rte_dispatcher *dispatcher,int finalizer_id)
@@ -653,14 +653,14 @@ evd_set_service_runstate(struct rte_dispatcher *dispatcher, int state)RTE_VERIFY (rc ==0 ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_start, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_start) voidrte_dispatcher_start (struct rte_dispatcher *dispatcher) {evd_set_service_runstate (dispatcher,1 ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_stop, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_stop) voidrte_dispatcher_stop (struct rte_dispatcher *dispatcher) {
@@ -677,7 +677,7 @@ evd_aggregate_stats(struct rte_dispatcher_stats *result, result->ev_drop_count += part->ev_drop_count; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_stats_get, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_stats_get) voidrte_dispatcher_stats_get (const struct rte_dispatcher *dispatcher,struct rte_dispatcher_stats *stats)
@@ -694,7 +694,7 @@ rte_dispatcher_stats_get(const struct rte_dispatcher *dispatcher, } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dispatcher_stats_reset, 23.11) +RTE_EXPORT_SYMBOL (rte_dispatcher_stats_reset) voidrte_dispatcher_stats_reset (struct rte_dispatcher *dispatcher) {
lib/dispatcher/rte_dispatcher.h +0 -18
@@ -10,10 +10,6 @@* * RTE Dispatcher * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * The purpose of the dispatcher is to help decouple different parts * of an application (e.g., modules), sharing the same underlying * event device.
@@ -22,7 +18,6 @@#include <stdbool.h> #include <stdint.h> -#include <rte_compat.h> #include <rte_eventdev.h> #ifdef __cplusplus
@@ -127,7 +122,6 @@ struct rte_dispatcher_stats {* A pointer to a new dispatcher instance, or NULL on failure, in which * case rte_errno is set. */ -__rte_experimental struct rte_dispatcher *rte_dispatcher_create (uint8_t event_dev_id);
@@ -141,7 +135,6 @@ rte_dispatcher_create(uint8_t event_dev_id);* - 0: Success * - <0: Error code on failure */ -__rte_experimental int rte_dispatcher_free (struct rte_dispatcher *dispatcher);
@@ -154,7 +147,6 @@ rte_dispatcher_free(struct rte_dispatcher *dispatcher);* @return * The dispatcher service's id. */ -__rte_experimental uint32_t rte_dispatcher_service_id_get (const struct rte_dispatcher *dispatcher);
@@ -199,7 +191,6 @@ rte_dispatcher_service_id_get(const struct rte_dispatcher *dispatcher);* - -EEXISTS: Event port is already configured. * - -EINVAL: Invalid arguments. */ -__rte_experimental int rte_dispatcher_bind_port_to_lcore(struct rte_dispatcher *dispatcher, uint8_t event_port_id, uint16_t batch_size, uint64_t timeout,
@@ -225,7 +216,6 @@ rte_dispatcher_bind_port_to_lcore(struct rte_dispatcher *dispatcher,* - 0: Success * - -ENOENT: Event port id not bound to this @c lcore_id. */ -__rte_experimental int rte_dispatcher_unbind_port_from_lcore (struct rte_dispatcher *dispatcher,uint8_t event_port_id,unsigned int lcore_id);
@@ -289,7 +279,6 @@ rte_dispatcher_unbind_port_from_lcore(struct rte_dispatcher *dispatcher,* - >= 0: The identifier for this registration. * - -ENOMEM: Unable to allocate sufficient resources. */ -__rte_experimental int rte_dispatcher_register(struct rte_dispatcher *dispatcher, rte_dispatcher_match_t match_fun, void *match_cb_data,
@@ -313,7 +302,6 @@ rte_dispatcher_register(struct rte_dispatcher *dispatcher,* - 0: Success * - -EINVAL: The @c handler_id parameter was invalid. */ -__rte_experimental int rte_dispatcher_unregister (struct rte_dispatcher *dispatcher,int handler_id);
@@ -355,7 +343,6 @@ rte_dispatcher_unregister(struct rte_dispatcher *dispatcher, int handler_id);* - >= 0: The identifier for this registration. * - -ENOMEM: Unable to allocate sufficient resources. */ -__rte_experimental int rte_dispatcher_finalize_register (struct rte_dispatcher *dispatcher,rte_dispatcher_finalize_t finalize_fun,void *finalize_data);
@@ -378,7 +365,6 @@ rte_dispatcher_finalize_register(struct rte_dispatcher *dispatcher,* - 0: Success * - -EINVAL: The @c reg_id parameter was invalid. */ -__rte_experimental int rte_dispatcher_finalize_unregister (struct rte_dispatcher *dispatcher,int reg_id);
@@ -403,7 +389,6 @@ rte_dispatcher_finalize_unregister(struct rte_dispatcher *dispatcher, int reg_id* @param dispatcher * The dispatcher instance. */ -__rte_experimental void rte_dispatcher_start (struct rte_dispatcher *dispatcher);
@@ -415,7 +400,6 @@ rte_dispatcher_start(struct rte_dispatcher *dispatcher);* @param dispatcher * The dispatcher instance. */ -__rte_experimental void rte_dispatcher_stop (struct rte_dispatcher *dispatcher);
@@ -430,7 +414,6 @@ rte_dispatcher_stop(struct rte_dispatcher *dispatcher);* @param[out] stats * A pointer to a structure to fill with statistics. */ -__rte_experimental void rte_dispatcher_stats_get (const struct rte_dispatcher *dispatcher,struct rte_dispatcher_stats *stats);
@@ -445,7 +428,6 @@ rte_dispatcher_stats_get(const struct rte_dispatcher *dispatcher,* @param dispatcher * The dispatcher instance. */ -__rte_experimental void rte_dispatcher_stats_reset (struct rte_dispatcher *dispatcher);
Signature · 1 line
2.53.0
PATCH 15/20 argparse: promote API to stable
In reply to Stephen HemmingerThe rte_argparse_parse() and rte_argparse_parse_type() functions were added in 24.03 and rte_argparse_print_help() in 25.11. No prototype has changed and they are used by the EAL option parsing as well as several applications and examples, so the interface is settled.
This promotes the whole library, so the header no longer needs rte_compat.h.
--- doc/guides/rel_notes/release_26_11.rst | 2 ++ lib/argparse/rte_argparse.c | 6 +++--- lib/argparse/rte_argparse.h | 13 ------------- 3 files changed, 5 insertions(+), 16 deletions(-)
doc/guides/rel_notes/release_26_11.rst +2 -0
@@ -221,6 +221,8 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* argparse: Promoted the whole library API from experimental to stable. + * cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. * dispatcher: Promoted the whole library API from experimental to stable.
lib/argparse/rte_argparse.c +3 -3
@@ -899,7 +899,7 @@ show_args_opt_help(FILE *stream, const struct rte_argparse *obj, uint32_t align) } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_print_help, 25.11) +RTE_EXPORT_SYMBOL (rte_argparse_print_help) voidrte_argparse_print_help (FILE *stream,const struct rte_argparse *obj) {
@@ -918,7 +918,7 @@ rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj)fprintf (stream,"\n" ); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_parse, 24.03) +RTE_EXPORT_SYMBOL (rte_argparse_parse) intrte_argparse_parse (const struct rte_argparse *obj,int argc,char **argv) {
@@ -960,7 +960,7 @@ rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv)return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_parse_type, 24.03) +RTE_EXPORT_SYMBOL (rte_argparse_parse_type) intrte_argparse_parse_type (const char *str,enum rte_argparse_value_type val_type,void *val) {
lib/argparse/rte_argparse.h +0 -13
@@ -30,7 +30,6 @@#include <stdint.h> #include <rte_bitops.h> -#include <rte_compat.h> #ifdef __cplusplusextern "C" {
@@ -181,9 +180,6 @@ struct rte_argparse {#define ARGPARSE_ARG_END () { NULL }/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Parse parameters passed until all are processed, * or until a "--" parameter is encountered. *
@@ -198,13 +194,9 @@ struct rte_argparse {* number of arguments parsed (>= 0) on success. * Otherwise negative error code is returned. */ -__rte_experimental int rte_argparse_parse (const struct rte_argparse *obj,int argc,char **argv);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Output the help text information for the given argparse object. * * @param stream
@@ -212,13 +204,9 @@ int rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv);* @param obj * Parser object. */ -__rte_experimental void rte_argparse_print_help (FILE *stream,const struct rte_argparse *obj);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Parse the value from the input string based on the value type. * * @param str
@@ -231,7 +219,6 @@ void rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj);* @return * 0 on success. Otherwise negative value is returned. */ -__rte_experimental int rte_argparse_parse_type (const char *str,enum rte_argparse_value_type val_type,void *val);#ifdef __cplusplus
Signature · 1 line
2.53.0
Re: [PATCH 15/20] argparse: promote API to stable
Quoted 8 lines · Stephen Hemminger
The
rte_argparse_parse()andrte_argparse_parse_type()functions were added in 24.03 andrte_argparse_print_help()in 25.11. No prototype has changed and they are used by the EAL option parsing as well as several applications and examples, so the interface is settled.This promotes the whole library, so the header no longer needs
rte_compat.h.
Quoted 6 lines
Signed-off-by Stephen Hemminger <[email protected]>--- doc/guides/rel_notes/release_26_11.rst | 2 ++ lib/argparse/rte_argparse.c | 6 +++--- lib/argparse/rte_argparse.h | 13 ------------- 3 files changed, 5 insertions(+), 16 deletions(-)
Re: [PATCH 15/20] argparse: promote API to stable
In reply to Stephen HemmingerQuoted 9 lines · Stephen Hemminger
The
rte_argparse_parse()andrte_argparse_parse_type()functions were added in 24.03 andrte_argparse_print_help()in 25.11. No prototype has changed and they are used by the EAL option parsing as well as several applications and examples, so the interface is settled.This promotes the whole library, so the header no longer needs
rte_compat.h.Signed-off-by Stephen Hemminger <[email protected]>
PATCH 16/20 node: promote API to stable
In reply to Stephen HemmingerThe node control path functions were added between 23.07 and 25.07 and none of the prototypes have changed. They are used by the graph application and the l3fwd-graph example.
Most of the node headers carried a file level warning claiming that all functions in the file may be changed or removed. That warning was already wrong, since rte_node_ip4_route_add() and friends have been stable for years while sitting under it.
Promote the whole library and drop those warnings. An API that cannot be declared stable after several releases of use is not useful to applications and should be removed instead.
--- doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/node/ethdev_ctrl.c | 2 +- lib/node/ip4_lookup_fib.c | 4 ++-- lib/node/ip4_reassembly.c | 2 +- lib/node/ip6_lookup.c | 2 +- lib/node/ip6_lookup_fib.c | 4 ++-- lib/node/ip6_rewrite.c | 2 +- lib/node/node_mbuf_dynfield.c | 2 +- lib/node/rte_node_eth_api.h | 6 ------ lib/node/rte_node_ip4_api.h | 9 --------- lib/node/rte_node_ip6_api.h | 9 --------- lib/node/rte_node_mbuf_dynfield.h | 6 ------ lib/node/rte_node_pkt_cls_api.h | 4 ---- lib/node/rte_node_udp4_input_api.h | 8 -------- lib/node/udp4_input.c | 4 ++-- 15 files changed, 15 insertions(+), 53 deletions(-)
doc/guides/rel_notes/release_26_11.rst +4 -0
@@ -349,6 +349,10 @@ API Changes ``rte_event_port_profile_links_get`` and ``rte_event_port_profile_unlink`` +* node: Promoted the whole library API from experimental to stable. + The ``rte_node_*`` control path functions date from 23.07 to 25.07 and + are used by the graph application and the l3fwd-graph example. + * pipeline: Promoted the SWX API from experimental to stable: the ``rte_swx_pipeline_*``, ``rte_swx_ctl_*`` and ``rte_swx_ipsec_*`` functions in pipeline, the ``rte_swx_table_*`` symbols in table and
lib/node/ethdev_ctrl.c +1 -1
@@ -141,7 +141,7 @@ rte_node_eth_config(struct rte_node_ethdev_config *conf, uint16_t nb_confs,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ethdev_rx_next_update, 24.03) +RTE_EXPORT_SYMBOL (rte_node_ethdev_rx_next_update) intrte_node_ethdev_rx_next_update (rte_node_t id,const char *edge_name) {
lib/node/ip4_lookup_fib.c +2 -2
@@ -193,7 +193,7 @@ ip4_lookup_fib_node_process(struct rte_graph *graph, struct rte_node *node, voidreturn nb_objs; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip4_fib_create, 25.07) +RTE_EXPORT_SYMBOL (rte_node_ip4_fib_create) intrte_node_ip4_fib_create (int socket,struct rte_fib_conf *conf) {
@@ -213,7 +213,7 @@ rte_node_ip4_fib_create(int socket, struct rte_fib_conf *conf)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip4_fib_route_add, 25.07) +RTE_EXPORT_SYMBOL (rte_node_ip4_fib_route_add) intrte_node_ip4_fib_route_add (uint32_t ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip4_lookup_next next_node)
lib/node/ip4_reassembly.c +1 -1
@@ -128,7 +128,7 @@ ip4_reassembly_node_process(struct rte_graph *graph, struct rte_node *node, voidreturn idx; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip4_reassembly_configure, 23.11) +RTE_EXPORT_SYMBOL (rte_node_ip4_reassembly_configure) intrte_node_ip4_reassembly_configure (struct rte_node_ip4_reassembly_cfg *cfg,uint16_t cnt) {
lib/node/ip6_lookup.c +1 -1
@@ -258,7 +258,7 @@ ip6_lookup_node_process_scalar(struct rte_graph *graph, struct rte_node *node,return nb_objs; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip6_route_add, 23.07) +RTE_EXPORT_SYMBOL (rte_node_ip6_route_add) intrte_node_ip6_route_add (const struct rte_ipv6_addr *ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip6_lookup_next next_node)
lib/node/ip6_lookup_fib.c +2 -2
@@ -187,7 +187,7 @@ ip6_lookup_fib_node_process(struct rte_graph *graph, struct rte_node *node, voidreturn nb_objs; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip6_fib_create, 25.07) +RTE_EXPORT_SYMBOL (rte_node_ip6_fib_create) intrte_node_ip6_fib_create (int socket,struct rte_fib6_conf *conf) {
@@ -207,7 +207,7 @@ rte_node_ip6_fib_create(int socket, struct rte_fib6_conf *conf)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip6_fib_route_add, 25.07) +RTE_EXPORT_SYMBOL (rte_node_ip6_fib_route_add) intrte_node_ip6_fib_route_add (const struct rte_ipv6_addr *ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip6_lookup_next next_node)
lib/node/ip6_rewrite.c +1 -1
@@ -273,7 +273,7 @@ ip6_rewrite_set_next(uint16_t port_id, uint16_t next_index)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_ip6_rewrite_add, 23.07) +RTE_EXPORT_SYMBOL (rte_node_ip6_rewrite_add) intrte_node_ip6_rewrite_add (uint16_t next_hop,uint8_t *rewrite_data,uint8_t rewrite_len,uint16_t dst_port)
lib/node/node_mbuf_dynfield.c +1 -1
@@ -20,7 +20,7 @@ static const struct rte_mbuf_dynfield node_mbuf_dynfield_desc = { .align = alignof(rte_node_mbuf_dynfield_t), }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL (rte_node_mbuf_dynfield_register,25.07 ); +RTE_EXPORT_SYMBOL (rte_node_mbuf_dynfield_register) int rte_node_mbuf_dynfield_register(void) {struct node_mbuf_dynfield_mz *f =NULL ;
lib/node/rte_node_eth_api.h +0 -6
@@ -8,15 +8,10 @@/** * @file rte_node_eth_api.h * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * This API allows setting up ethdev_rx and ethdev_tx nodes * and its queue associations. */ -#include <rte_compat.h> #include <rte_common.h> #include <rte_graph.h> #include <rte_mempool.h>
@@ -72,7 +67,6 @@ int rte_node_eth_config(struct rte_node_ethdev_config *cfg,* - ENOMEM: If memory allocation failed * - 0 on successful initialization. */ -__rte_experimental int rte_node_ethdev_rx_next_update (rte_node_t id,const char *edge_name);#ifdef __cplusplus
lib/node/rte_node_ip4_api.h +0 -9
@@ -8,16 +8,10 @@/** * @file rte_node_ip4_api.h * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * This API allows performing control path functions of ip4_* nodes * like ip4_lookup, ip4_rewrite. */ #include <rte_common.h> -#include <rte_compat.h> -#include <rte_fib.h> #include <rte_graph.h>
@@ -119,7 +113,6 @@ int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip4_reassembly_configure (struct rte_node_ip4_reassembly_cfg *cfg,uint16_t cnt);/**
@@ -133,7 +126,6 @@ int rte_node_ip4_reassembly_configure(struct rte_node_ip4_reassembly_cfg *cfg, u* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip4_fib_create (int socket,struct rte_fib_conf *conf);/**
@@ -151,7 +143,6 @@ int rte_node_ip4_fib_create(int socket, struct rte_fib_conf *conf);* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip4_fib_route_add (uint32_t ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip4_lookup_next next_node);
lib/node/rte_node_ip6_api.h +0 -9
@@ -8,15 +8,10 @@/** * @file rte_node_ip6_api.h * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * This API allows performing control path functions of ip6_* nodes * like ip6_lookup, ip6_rewrite. */ #include <rte_common.h> -#include <rte_compat.h> #include <rte_fib6.h> #include <rte_ip6.h>
@@ -49,7 +44,6 @@ enum rte_node_ip6_lookup_next {* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip6_route_add (const struct rte_ipv6_addr *ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip6_lookup_next next_node);
@@ -68,7 +62,6 @@ int rte_node_ip6_route_add(const struct rte_ipv6_addr *ip, uint8_t depth, uint16* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip6_rewrite_add (uint16_t next_hop,uint8_t *rewrite_data,uint8_t rewrite_len,uint16_t dst_port);
@@ -83,7 +76,6 @@ int rte_node_ip6_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip6_fib_create (int socket,struct rte_fib6_conf *conf);/**
@@ -101,7 +93,6 @@ int rte_node_ip6_fib_create(int socket, struct rte_fib6_conf *conf);* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_ip6_fib_route_add (const struct rte_ipv6_addr *ip,uint8_t depth,uint16_t next_hop,enum rte_node_ip6_lookup_next next_node);
lib/node/rte_node_mbuf_dynfield.h +0 -6
@@ -12,9 +12,6 @@/** * @file: rte_node_mbuf_dynfield.h * -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Defines rte_node specific mbuf dynamic field region [rte_node_mbuf_dynfield_t] * which can be used by both DPDK built-in and out-of-tree nodes * for storing per-mbuf fields for graph walk.
@@ -102,7 +99,6 @@ typedef struct rte_node_mbuf_dynfield {* @return * Pointer to node specific mbuf dynamic field structure */ -__rte_experimental static __rte_always_inline rte_node_mbuf_dynfield_t *rte_node_mbuf_dynfield_get (struct rte_mbuf *m,const int offset) {
@@ -120,7 +116,6 @@ rte_node_mbuf_dynfield_get(struct rte_mbuf *m, const int offset)* @return * Pointer to node mbuf overloadable fields */ -__rte_experimental static __rte_always_inline rte_node_mbuf_overload_fields_t *rte_node_mbuf_overload_fields_get (struct rte_mbuf *m,const int offset) {
@@ -148,7 +143,6 @@ rte_node_mbuf_overload_fields_get(struct rte_mbuf *m, const int offset)* - ENOMEM - no memory * >=0 on success: dynamic field offset */ -__rte_experimental int rte_node_mbuf_dynfield_register (void );#ifdef __cplusplus
lib/node/rte_node_pkt_cls_api.h +0 -4
@@ -8,10 +8,6 @@/** * @file rte_node_pkt_cls_api.h * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * This API allows performing control path functions of pkt_cls node. */
lib/node/rte_node_udp4_input_api.h +0 -8
@@ -8,16 +8,10 @@/** * @file rte_node_udp4_input_api.h * -* @warning -* @b EXPERIMENTAL: -* All functions in this file may be changed or removed without prior notice. -* * This API allows performing control path functions of udp4_* nodes * like udp4_input. */ #include <rte_common.h> -#include <rte_compat.h> -#include "rte_graph.h" #ifdef __cplusplus
@@ -37,7 +31,6 @@ enum rte_node_udp4_input_next {* @param usr_node * Node registered by user to receive data. */ -__rte_experimental int rte_node_udp4_usr_node_add (const char *usr_node);/**
@@ -50,7 +43,6 @@ int rte_node_udp4_usr_node_add(const char *usr_node);* @return * 0 on success, negative otherwise. */ -__rte_experimental int rte_node_udp4_dst_port_add (uint32_t dst_port,rte_edge_t next_node);#ifdef __cplusplus
lib/node/udp4_input.c +2 -2
@@ -56,7 +56,7 @@ static struct rte_hash_parameters udp4_params = { .socket_id = 0, }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_udp4_dst_port_add, 23.11) +RTE_EXPORT_SYMBOL (rte_node_udp4_dst_port_add) intrte_node_udp4_dst_port_add (uint32_t dst_port,rte_edge_t next_node) {
@@ -78,7 +78,7 @@ rte_node_udp4_dst_port_add(uint32_t dst_port, rte_edge_t next_node)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_udp4_usr_node_add, 23.11) +RTE_EXPORT_SYMBOL (rte_node_udp4_usr_node_add) intrte_node_udp4_usr_node_add (const char *usr_node) {
Signature · 1 line
2.53.0
PATCH 17/20 hash: promote RCU reclaim and thash key generation to stable
In reply to Stephen Hemmingerrte_hash_rcu_qsbr_dq_reclaim() was added in 24.07 and rte_thash_gen_key() in 24.11. Neither prototype has changed and the rest of both APIs is already stable.
--- doc/guides/rel_notes/release_26_11.rst | 3 +++ lib/hash/rte_cuckoo_hash.c | 2 +- lib/hash/rte_hash.h | 1 - lib/hash/rte_thash.c | 2 +- lib/hash/rte_thash.h | 4 ---- 5 files changed, 5 insertions(+), 7 deletions(-)
doc/guides/rel_notes/release_26_11.rst +3 -0
@@ -349,6 +349,9 @@ API Changes ``rte_event_port_profile_links_get`` and ``rte_event_port_profile_unlink`` +* hash: Promoted ``rte_hash_rcu_qsbr_dq_reclaim`` and ``rte_thash_gen_key`` + from experimental to stable. + * node: Promoted the whole library API from experimental to stable. The ``rte_node_*`` control path functions date from 23.07 to 25.07 and are used by the graph application and the l3fwd-graph example.
lib/hash/rte_cuckoo_hash.c +1 -1
@@ -1921,7 +1921,7 @@ rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg)return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_hash_rcu_qsbr_dq_reclaim, 24.07) +RTE_EXPORT_SYMBOL (rte_hash_rcu_qsbr_dq_reclaim) int rte_hash_rcu_qsbr_dq_reclaim(struct rte_hash *h, unsigned int *freed, unsigned int *pending,unsigned int *available) {
lib/hash/rte_hash.h +0 -1
@@ -700,7 +700,6 @@ int rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg);* Possible rte_errno codes are: * - EINVAL - invalid pointer */ -__rte_experimental int rte_hash_rcu_qsbr_dq_reclaim (struct rte_hash *h,unsigned int *freed,unsigned int *pending,unsigned int *available);
lib/hash/rte_thash.c +1 -1
@@ -836,7 +836,7 @@ rte_thash_adjust_tuple(struct rte_thash_ctx *ctx,return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_thash_gen_key, 24.11) +RTE_EXPORT_SYMBOL (rte_thash_gen_key) intrte_thash_gen_key (uint8_t *key,size_t key_len,size_t reta_sz_log,uint32_t entropy_start,size_t entropy_sz)
lib/hash/rte_thash.h +0 -4
@@ -465,9 +465,6 @@ rte_thash_adjust_tuple(struct rte_thash_ctx *ctx, rte_thash_check_tuple_t fn, void *userdata);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Modify RSS hash key such that subtuple bits corresponding to `entropy_sz` * bits starting from `entropy_start` will have the most even distribution with * this key with a given ReTa size.
@@ -488,7 +485,6 @@ rte_thash_adjust_tuple(struct rte_thash_ctx *ctx,* @return * 0 on success negative otherwise */ -__rte_experimental int rte_thash_gen_key (uint8_t *key,size_t key_len,size_t reta_sz_log,uint32_t entropy_start,size_t entropy_sz);
Signature · 1 line
2.53.0
Re: [PATCH 17/20] hash: promote RCU reclaim and thash key generation to stable
Quoted 4 lines · Stephen Hemminger
rte_hash_rcu_qsbr_dq_reclaim()was added in 24.07 andrte_thash_gen_key()in 24.11. Neither prototype has changed and the rest of both APIs is already stable.
Quoted 9 lines
Signed-off-by Stephen Hemminger <[email protected]>--- doc/guides/rel_notes/release_26_11.rst | 3 +++ lib/hash/rte_cuckoo_hash.c | 2 +- lib/hash/rte_hash.h | 1 - lib/hash/rte_thash.c | 2 +- lib/hash/rte_thash.h | 4 ---- 5 files changed, 5 insertions(+), 7 deletions(-)
PATCH 18/20 cryptodev: promote algorithm helpers to stable
In reply to Stephen HemmingerThe algorithm name lookup helpers were added in 23.03 and the asymmetric opcap check in 24.11. The inline raw enqueue/dequeue and mbuf-to-vec helpers date back to 21.05. None of them have changed and all are driver independent.
The queue pair reset, event error query and queue pair depth functions are left experimental. They are currently implemented only by crypto/cnxk, so the interface should not be frozen before a second driver has tried to use it.
--- doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/cryptodev/rte_crypto_sym.h | 2 -- lib/cryptodev/rte_cryptodev.c | 10 +++++----- lib/cryptodev/rte_cryptodev.h | 10 ---------- 4 files changed, 9 insertions(+), 17 deletions(-)
doc/guides/rel_notes/release_26_11.rst +4 -0
@@ -225,6 +225,10 @@ API Changes * cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. +* cryptodev: Promoted the algorithm name helpers and the asymmetric + capability check from experimental to stable, along with the inline + raw enqueue/dequeue and mbuf-to-vec helpers. + * dispatcher: Promoted the whole library API from experimental to stable. The ``rte_dispatcher_*`` functions are unchanged since the library was added in 23.11.
lib/cryptodev/rte_crypto_sym.h +0 -2
@@ -16,7 +16,6 @@#include <string.h> -#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_memory.h> #include <rte_mempool.h>
@@ -983,7 +982,6 @@ __rte_crypto_sym_op_attach_sym_session(struct rte_crypto_sym_op *sym_op, void *s* - number of successfully filled entries in *vec* array. * - negative number of elements in *vec* array required. */ -__rte_experimental static inline int rte_crypto_mbuf_to_vec (const struct rte_mbuf *mb,uint32_t ofs,uint32_t len,struct rte_crypto_vec vec[],uint32_t num)
lib/cryptodev/rte_cryptodev.c +5 -5
@@ -407,7 +407,7 @@ rte_cryptodev_asym_get_xform_enum(enum rte_crypto_asym_xform_type *xform_enum,return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_cryptodev_get_cipher_algo_string, 23.03) +RTE_EXPORT_SYMBOL (rte_cryptodev_get_cipher_algo_string) const char *rte_cryptodev_get_cipher_algo_string (enum rte_crypto_cipher_algorithm algo_enum) {
@@ -421,7 +421,7 @@ rte_cryptodev_get_cipher_algo_string(enum rte_crypto_cipher_algorithm algo_enum)return alg_str; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_cryptodev_get_auth_algo_string, 23.03) +RTE_EXPORT_SYMBOL (rte_cryptodev_get_auth_algo_string) const char *rte_cryptodev_get_auth_algo_string (enum rte_crypto_auth_algorithm algo_enum) {
@@ -435,7 +435,7 @@ rte_cryptodev_get_auth_algo_string(enum rte_crypto_auth_algorithm algo_enum)return alg_str; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_cryptodev_get_aead_algo_string, 23.03) +RTE_EXPORT_SYMBOL (rte_cryptodev_get_aead_algo_string) const char *rte_cryptodev_get_aead_algo_string (enum rte_crypto_aead_algorithm algo_enum) {
@@ -449,7 +449,7 @@ rte_cryptodev_get_aead_algo_string(enum rte_crypto_aead_algorithm algo_enum)return alg_str; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_cryptodev_asym_get_xform_string, 23.03) +RTE_EXPORT_SYMBOL (rte_cryptodev_asym_get_xform_string) const char *rte_cryptodev_asym_get_xform_string (enum rte_crypto_asym_xform_type xform_enum) {
@@ -731,7 +731,7 @@ rte_cryptodev_asym_xform_capability_check_hash(return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_cryptodev_asym_xform_capability_check_opcap, 24.11) +RTE_EXPORT_SYMBOL(rte_cryptodev_asym_xform_capability_check_opcap) int rte_cryptodev_asym_xform_capability_check_opcap( const struct rte_cryptodev_asymmetric_xform_capability *capability,
lib/cryptodev/rte_cryptodev.h +0 -10
@@ -372,9 +372,6 @@ rte_cryptodev_asym_xform_capability_check_hash( enum rte_crypto_auth_algorithm hash);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Check if op capability is supported * * @param capability Description of the asymmetric crypto capability.
@@ -385,7 +382,6 @@ rte_cryptodev_asym_xform_capability_check_hash(* - Return 1 if the op capability is supported * - Return 0 if unsupported */ -__rte_experimental int rte_cryptodev_asym_xform_capability_check_opcap( const struct rte_cryptodev_asymmetric_xform_capability *capability,
@@ -460,7 +456,6 @@ rte_cryptodev_asym_get_xform_enum(enum rte_crypto_asym_xform_type *xform_enum,* - Return NULL if enum is not valid * - Return algo_string corresponding to enum */ -__rte_experimental const char *rte_cryptodev_get_cipher_algo_string (enum rte_crypto_cipher_algorithm algo_enum);
@@ -473,7 +468,6 @@ rte_cryptodev_get_cipher_algo_string(enum rte_crypto_cipher_algorithm algo_enum)* - Return NULL if enum is not valid * - Return algo_string corresponding to enum */ -__rte_experimental const char *rte_cryptodev_get_auth_algo_string (enum rte_crypto_auth_algorithm algo_enum);
@@ -486,7 +480,6 @@ rte_cryptodev_get_auth_algo_string(enum rte_crypto_auth_algorithm algo_enum);* - Return NULL if enum is not valid * - Return algo_string corresponding to enum */ -__rte_experimental const char *rte_cryptodev_get_aead_algo_string (enum rte_crypto_aead_algorithm algo_enum);
@@ -499,7 +492,6 @@ rte_cryptodev_get_aead_algo_string(enum rte_crypto_aead_algorithm algo_enum);* - Return NULL, if enum is not valid. * - Return xform string, for valid enum. */ -__rte_experimental const char *rte_cryptodev_asym_get_xform_string (enum rte_crypto_asym_xform_type xform_enum);
@@ -1690,7 +1682,6 @@ rte_cryptodev_raw_enqueue_burst(struct rte_crypto_raw_dp_ctx *ctx,* until rte_cryptodev_raw_enqueue_done() is called. * - negative integer: failure. */ -__rte_experimental static __rte_always_inline int rte_cryptodev_raw_enqueue(struct rte_crypto_raw_dp_ctx *ctx, struct rte_crypto_vec *data_vec, uint16_t n_data_vecs,
@@ -1790,7 +1781,6 @@ rte_cryptodev_raw_dequeue_burst(struct rte_crypto_raw_dp_ctx *ctx,* - The user data pointer retrieved from device queue or NULL if no * operation is ready for dequeue. */ -__rte_experimental static __rte_always_inline void *rte_cryptodev_raw_dequeue (struct rte_crypto_raw_dp_ctx *ctx,int *dequeue_status,enum rte_crypto_op_status *op_status)
Signature · 1 line
2.53.0
PATCH 19/20 pdcp: promote API to stable
In reply to Stephen HemmingerThe PDCP library was added in 23.07 and none of its functions have changed since. The whole library was experimental, including the inline packet pre and post process helpers, so there is nothing left to keep experimental once the symbols are promoted.
--- doc/guides/rel_notes/release_26_11.rst | 4 ++++ lib/pdcp/rte_pdcp.c | 10 ++++----- lib/pdcp/rte_pdcp.h | 29 -------------------------- lib/pdcp/rte_pdcp_group.h | 6 ------ 4 files changed, 9 insertions(+), 40 deletions(-)
doc/guides/rel_notes/release_26_11.rst +4 -0
@@ -360,6 +360,10 @@ API Changes The ``rte_node_*`` control path functions date from 23.07 to 25.07 and are used by the graph application and the l3fwd-graph example. +* pdcp: Promoted the whole library API from experimental to stable. + The ``rte_pdcp_*`` functions are unchanged since the library was added + in 23.07. + * pipeline: Promoted the SWX API from experimental to stable: the ``rte_swx_pipeline_*``, ``rte_swx_ctl_*`` and ``rte_swx_ipsec_*`` functions in pipeline, the ``rte_swx_table_*`` symbols in table and
lib/pdcp/rte_pdcp.c +5 -5
@@ -98,7 +98,7 @@ pdcp_dl_establish(struct rte_pdcp_entity *entity, const struct rte_pdcp_entity_creturn 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pdcp_entity_establish, 23.07) +RTE_EXPORT_SYMBOL (rte_pdcp_entity_establish) struct rte_pdcp_entity *rte_pdcp_entity_establish (const struct rte_pdcp_entity_conf *conf) {
@@ -199,7 +199,7 @@ pdcp_dl_release(struct rte_pdcp_entity *entity, struct rte_mbuf *out_mb[])return nb_out; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pdcp_entity_release, 23.07) +RTE_EXPORT_SYMBOL (rte_pdcp_entity_release) intrte_pdcp_entity_release (struct rte_pdcp_entity *pdcp_entity,struct rte_mbuf *out_mb[]) {
@@ -222,7 +222,7 @@ rte_pdcp_entity_release(struct rte_pdcp_entity *pdcp_entity, struct rte_mbuf *oureturn nb_out; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pdcp_entity_suspend, 23.07) +RTE_EXPORT_SYMBOL (rte_pdcp_entity_suspend) intrte_pdcp_entity_suspend (struct rte_pdcp_entity *pdcp_entity,struct rte_mbuf *out_mb[])
@@ -250,7 +250,7 @@ rte_pdcp_entity_suspend(struct rte_pdcp_entity *pdcp_entity,return nb_out; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pdcp_control_pdu_create, 23.07) +RTE_EXPORT_SYMBOL (rte_pdcp_control_pdu_create) struct rte_mbuf *rte_pdcp_control_pdu_create (struct rte_pdcp_entity *pdcp_entity,enum rte_pdcp_ctrl_pdu_type type)
@@ -291,7 +291,7 @@ rte_pdcp_control_pdu_create(struct rte_pdcp_entity *pdcp_entity,return m; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pdcp_t_reordering_expiry_handle, 23.07) +RTE_EXPORT_SYMBOL (rte_pdcp_t_reordering_expiry_handle) uint16_trte_pdcp_t_reordering_expiry_handle (const struct rte_pdcp_entity *entity,struct rte_mbuf *out_mb[]) {
lib/pdcp/rte_pdcp.h +0 -29
@@ -13,7 +13,6 @@* A framework for PDCP protocol processing. */ -#include <rte_compat.h> #include <rte_common.h> #include <rte_mempool.h> #include <rte_pdcp_hdr.h>
@@ -161,9 +160,6 @@ struct rte_pdcp_entity_conf {/* >8 End of structure rte_pdcp_entity_conf. */ /** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * 5.1.1 PDCP entity establishment * * Establish PDCP entity based on provided input configuration.
@@ -174,14 +170,10 @@ struct rte_pdcp_entity_conf {* - Valid handle if success * - NULL in case of failure. rte_errno will be set to error code. */ -__rte_experimental struct rte_pdcp_entity *rte_pdcp_entity_establish (const struct rte_pdcp_entity_conf *conf);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * 5.1.3 PDCP entity release * * Release PDCP entity.
@@ -204,15 +196,11 @@ rte_pdcp_entity_establish(const struct rte_pdcp_entity_conf *conf);* - >0: Success and the number of packets returned in out_mb * - <0: Error code in case of failures */ -__rte_experimental int rte_pdcp_entity_release (struct rte_pdcp_entity *pdcp_entity,struct rte_mbuf *out_mb[]);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * 5.1.4 PDCP entity suspend * * Suspend PDCP entity.
@@ -233,15 +221,11 @@ rte_pdcp_entity_release(struct rte_pdcp_entity *pdcp_entity,* - >0: Success and the number of packets returned in out_mb. * - <0: Error code in case of failures. */ -__rte_experimental int rte_pdcp_entity_suspend (struct rte_pdcp_entity *pdcp_entity,struct rte_mbuf *out_mb[]);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Create control PDU packet of the `type` specified. The control PDU packet * would be allocated from *rte_pdcp_entity_conf.ctrl_pdu_pool* by lib PDCP. *
@@ -253,15 +237,11 @@ rte_pdcp_entity_suspend(struct rte_pdcp_entity *pdcp_entity,* - Control PDU generated, in case of success. * - NULL in case of failure. rte_errno will be set to error code. */ -__rte_experimental struct rte_mbuf *rte_pdcp_control_pdu_create (struct rte_pdcp_entity *pdcp_entity,enum rte_pdcp_ctrl_pdu_type type);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * For input mbufs and given PDCP entity pre-process the mbufs and prepare * crypto ops that can be enqueued to the cryptodev associated with given * session. Only error packets would be moved returned in the input buffer,
@@ -284,7 +264,6 @@ rte_pdcp_control_pdu_create(struct rte_pdcp_entity *pdcp_entity,* @return * Count of crypto_ops prepared. */ -__rte_experimental static inline uint16_t rte_pdcp_pkt_pre_process(const struct rte_pdcp_entity *entity, struct rte_mbuf *mb[], struct rte_crypto_op *cop[],
@@ -294,9 +273,6 @@ rte_pdcp_pkt_pre_process(const struct rte_pdcp_entity *entity, }/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * For input mbufs and given PDCP entity, perform PDCP post-processing of the mbufs. * * Input mbufs are the ones retrieved from rte_crypto_ops dequeued from cryptodev
@@ -325,7 +301,6 @@ rte_pdcp_pkt_pre_process(const struct rte_pdcp_entity *entity,* @return * Count of packets returned in *out_mb* buffer. */ -__rte_experimental static inline uint16_t rte_pdcp_pkt_post_process(const struct rte_pdcp_entity *entity, struct rte_mbuf *in_mb[],
@@ -336,9 +311,6 @@ rte_pdcp_pkt_post_process(const struct rte_pdcp_entity *entity, }/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice -* * 5.2.2.2 Actions when a t-Reordering expires * * When t-Reordering timer expires, PDCP is required to slide the reception
@@ -358,7 +330,6 @@ rte_pdcp_pkt_post_process(const struct rte_pdcp_entity *entity,* @return * Number of packets returned in *out_mb* buffer. */ -__rte_experimental uint16_t rte_pdcp_t_reordering_expiry_handle (const struct rte_pdcp_entity *entity,struct rte_mbuf *out_mb[]);
lib/pdcp/rte_pdcp_group.h +0 -6
@@ -37,9 +37,6 @@ struct rte_pdcp_group { };/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Take crypto-op as an input and extract pointer to related PDCP entity. * @param cop * The address of an input *rte_crypto_op* structure.
@@ -56,9 +53,6 @@ rte_pdcp_en_from_cop(const struct rte_crypto_op *cop) }/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Take as input completed crypto ops, extract related mbufs and group them by * *rte_pdcp_entity* they belong to. Mbuf for which the crypto operation has * failed would be flagged using *RTE_MBUF_F_RX_SEC_OFFLOAD_FAILED* flag
Signature · 1 line
2.53.0
PATCH 20/20 mempool: promote memory range and alignment to stable
In reply to Stephen Hemmingerrte_mempool_get_mem_range() and rte_mempool_get_obj_alignment() were added in 24.07 and have not changed since. The bulk of the mempool API is already stable.
The trace points and rte_mempool_stats_reset() from 26.07 are left experimental.
--- doc/guides/rel_notes/release_26_11.rst | 3 +++ lib/mempool/rte_mempool.c | 4 ++-- lib/mempool/rte_mempool.h | 8 -------- 3 files changed, 5 insertions(+), 10 deletions(-)
doc/guides/rel_notes/release_26_11.rst +3 -0
@@ -356,6 +356,9 @@ API Changes * hash: Promoted ``rte_hash_rcu_qsbr_dq_reclaim`` and ``rte_thash_gen_key`` from experimental to stable. +* mempool: Promoted ``rte_mempool_get_mem_range`` and + ``rte_mempool_get_obj_alignment`` from experimental to stable. + * node: Promoted the whole library API from experimental to stable. The ``rte_node_*`` control path functions date from 23.07 to 25.07 and are used by the graph application and the l3fwd-graph example.
lib/mempool/rte_mempool.c +2 -2
@@ -1444,7 +1444,7 @@ void rte_mempool_walk(void (*func)(struct rte_mempool *, void *),rte_mcfg_mempool_read_unlock (); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_mempool_get_mem_range, 24.07) +RTE_EXPORT_SYMBOL (rte_mempool_get_mem_range) int rte_mempool_get_mem_range(const struct rte_mempool *mp,struct rte_mempool_mem_range_info *mem_range) {
@@ -1479,7 +1479,7 @@ int rte_mempool_get_mem_range(const struct rte_mempool *mp,return 0 ; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_mempool_get_obj_alignment, 24.07) +RTE_EXPORT_SYMBOL (rte_mempool_get_obj_alignment) size_t rte_mempool_get_obj_alignment(const struct rte_mempool *mp) {if (mp ==NULL )
lib/mempool/rte_mempool.h +0 -8
@@ -1966,9 +1966,6 @@ struct rte_mempool_mem_range_info { };/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Get information about the memory range used to store objects in the mempool. * * @param[in] mp
@@ -1980,15 +1977,11 @@ struct rte_mempool_mem_range_info {* @return * 0 on success, -EINVAL if mempool is not valid or mem_range is NULL. */ -__rte_experimental int rte_mempool_get_mem_range (const struct rte_mempool *mp,struct rte_mempool_mem_range_info *mem_range);/** -* @warning -* @b EXPERIMENTAL: this API may change without prior notice. -* * Return alignment of objects stored in the mempool. * * @param[in] mp
@@ -1996,7 +1989,6 @@ rte_mempool_get_mem_range(const struct rte_mempool *mp,* @return * Object alignment if mp is valid. 0 if mp is NULL. */ -__rte_experimental size_t rte_mempool_get_obj_alignment (const struct rte_mempool *mp);
Signature · 1 line
2.53.0
RE: [PATCH 20/20] mempool: promote memory range and alignment to stable
Quoted 7 lines
From: Stephen Hemminger [mailto:[email protected]]
Sent: Wednesday, 7 October 2026 23.40
rte_mempool_get_mem_range()andrte_mempool_get_obj_alignment()were added in 24.07 and have not changed since. The bulk of the mempool API is already stable.
Quoted 5 lines
The trace points and
rte_mempool_stats_reset()from 26.07 are left experimental.Signed-off-by Stephen Hemminger <[email protected]>---