ethdev: promote flow metadata APIs to stable
PATCH 1/1 ethdev: promote flow metadata APIs to stable
Following experimental symbols related to flow metadata were added in v19.11:
- rte_flow_dynf_metadata_register
- rte_flow_dynf_metadata_offs
- rte_flow_dynf_metadata_mask
Type of rte_flow_dynf_metadata_offs was changed from int to int32_t in v20.05 release.
There were no changes to these symbols since then.
This patch promotes these symbols and removes __rte_experimental from the following inline functions:
- rte_flow_dynf_metadata_avail
- rte_flow_dynf_metadata_get
- rte_flow_dynf_metadata_set
All these symbols and functions will be used by netdev-doca backend in Open vSwitch [1].
Stabilizing these symbols is required by current OVS policy to remove the need for ALLOW_EXPERIMENTAL_API [2].
[1]: https://patchwork.ozlabs.org/project/openvswitch/list/?series=504726&state=%2A&archive=both
[2]: https://mail.openvswitch.org/pipermail/ovs-dev/2026-May/432066.html
--- lib/ethdev/rte_flow.c | 6 +++--- lib/ethdev/rte_flow.h | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-)
lib/ethdev/rte_flow.c +3 -3
@@ -23,11 +23,11 @@#define FLOW_LOG RTE_ETHDEV_LOG_LINE/* Mbuf dynamic field name for metadata. */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_offs, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_offs) int32_t rte_flow_dynf_metadata_offs = -1;/* Mbuf dynamic field flag bit number for metadata. */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_mask, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_mask) uint64_t rte_flow_dynf_metadata_mask;/**
@@ -281,7 +281,7 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = { MK_FLOW_ACTION(JUMP_TO_TABLE_INDEX, sizeof(struct rte_flow_action_jump_to_table_index)), }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_register, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_register) intrte_flow_dynf_metadata_register (void ) {
lib/ethdev/rte_flow.h +0 -4
@@ -4253,14 +4253,12 @@ extern uint64_t rte_flow_dynf_metadata_mask;#define RTE_MBUF_DYNFLAG_RX_METADATA (rte_flow_dynf_metadata_mask)#define RTE_MBUF_DYNFLAG_TX_METADATA (rte_flow_dynf_metadata_mask) -__rte_experimental static inline uint32_t rte_flow_dynf_metadata_get (struct rte_mbuf *m) {return *RTE_FLOW_DYNF_METADATA (m); } -__rte_experimental static inline void rte_flow_dynf_metadata_set (struct rte_mbuf *m,uint32_t v) {
@@ -4590,7 +4588,6 @@ rte_flow_dev_dump(uint16_t port_id, struct rte_flow *flow,* @return * True if registered, false otherwise. */ -__rte_experimental static inline int rte_flow_dynf_metadata_avail (void ) {
@@ -4607,7 +4604,6 @@ rte_flow_dynf_metadata_avail(void)* @return * 0 on success, a negative errno value otherwise and rte_errno is set. */ -__rte_experimental int rte_flow_dynf_metadata_register (void );
Signature · 1 line
2.47.3
PATCH v2 1/1 ethdev: promote flow metadata APIs to stable
Following experimental symbols related to flow metadata were added in v19.11:
- rte_flow_dynf_metadata_register
- rte_flow_dynf_metadata_offs
- rte_flow_dynf_metadata_mask
Type of rte_flow_dynf_metadata_offs was changed from int to int32_t in v20.05 release.
There were no changes to these symbols since then.
This patch promotes these symbols and removes __rte_experimental from the following inline functions:
- rte_flow_dynf_metadata_avail
- rte_flow_dynf_metadata_get
- rte_flow_dynf_metadata_set
All these symbols and functions will be used by netdev-doca backend in Open vSwitch [1].
Stabilizing these symbols is required by current OVS policy to remove the need for ALLOW_EXPERIMENTAL_API [2].
[1]: https://patchwork.ozlabs.org/project/openvswitch/list/?series=504726&state=%2A&archive=both
[2]: https://mail.openvswitch.org/pipermail/ovs-dev/2026-May/432066.html
---
v2:
- Updated 26.07 release notes.
doc/guides/rel_notes/release_26_07.rst | 11 +++++++++++ lib/ethdev/rte_flow.c | 6 +++--- lib/ethdev/rte_flow.h | 4 ---- 3 files changed, 14 insertions(+), 7 deletions(-)
doc/guides/rel_notes/release_26_07.rst +11 -0
@@ -116,6 +116,17 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* **ethdev: promoted flow metadata APIs from experimental to stable.** + + The following ethdev APIs and symbols are no longer marked experimental: + + - ``rte_flow_dynf_metadata_register`` + - ``rte_flow_dynf_metadata_offs`` + - ``rte_flow_dynf_metadata_mask`` + - ``rte_flow_dynf_metadata_avail`` + - ``rte_flow_dynf_metadata_get`` + - ``rte_flow_dynf_metadata_set`` + ABI Changes -----------
lib/ethdev/rte_flow.c +3 -3
@@ -23,11 +23,11 @@#define FLOW_LOG RTE_ETHDEV_LOG_LINE/* Mbuf dynamic field name for metadata. */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_offs, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_offs) int32_t rte_flow_dynf_metadata_offs = -1;/* Mbuf dynamic field flag bit number for metadata. */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_mask, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_mask) uint64_t rte_flow_dynf_metadata_mask;/**
@@ -281,7 +281,7 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = { MK_FLOW_ACTION(JUMP_TO_TABLE_INDEX, sizeof(struct rte_flow_action_jump_to_table_index)), }; -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_flow_dynf_metadata_register, 19.11) +RTE_EXPORT_SYMBOL (rte_flow_dynf_metadata_register) intrte_flow_dynf_metadata_register (void ) {
lib/ethdev/rte_flow.h +0 -4
@@ -4253,14 +4253,12 @@ extern uint64_t rte_flow_dynf_metadata_mask;#define RTE_MBUF_DYNFLAG_RX_METADATA (rte_flow_dynf_metadata_mask)#define RTE_MBUF_DYNFLAG_TX_METADATA (rte_flow_dynf_metadata_mask) -__rte_experimental static inline uint32_t rte_flow_dynf_metadata_get (struct rte_mbuf *m) {return *RTE_FLOW_DYNF_METADATA (m); } -__rte_experimental static inline void rte_flow_dynf_metadata_set (struct rte_mbuf *m,uint32_t v) {
@@ -4590,7 +4588,6 @@ rte_flow_dev_dump(uint16_t port_id, struct rte_flow *flow,* @return * True if registered, false otherwise. */ -__rte_experimental static inline int rte_flow_dynf_metadata_avail (void ) {
@@ -4607,7 +4604,6 @@ rte_flow_dynf_metadata_avail(void)* @return * 0 on success, a negative errno value otherwise and rte_errno is set. */ -__rte_experimental int rte_flow_dynf_metadata_register (void );
--
2.47.3
Quoted 23 lines · On Fri, 29 May 2026 09:28:53 +0200 Dariusz Sosnowski <[email protected]>…
Following experimental symbols related to flow metadata were added in v19.11:
-
rte_flow_dynf_metadata_register
-rte_flow_dynf_metadata_offs
-rte_flow_dynf_metadata_maskType of
rte_flow_dynf_metadata_offswas changed from int toint32_tin v20.05 release.
There were no changes to these symbols since then.This patch promotes these symbols and removes
__rte_experimentalfrom the following inline functions:-
rte_flow_dynf_metadata_avail
-rte_flow_dynf_metadata_get
-rte_flow_dynf_metadata_setAll these symbols and functions will be used by netdev-doca backend in Open vSwitch [1].
Stabilizing these symbols is required by current OVS policy to remove the need forALLOW_EXPERIMENTAL_API[2].
Quoted 4 lines
[1]: https://patchwork.ozlabs.org/project/openvswitch/list/?series=504726&state=%2A&archive=both
[2]: https://mail.openvswitch.org/pipermail/ovs-dev/2026-May/432066.htmlSigned-off-by Dariusz Sosnowski <[email protected]>
LGTM
Applied to next-net