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 Signed-off-by: Dariusz Sosnowski <[email protected]> --- lib/ethdev/rte_flow.c | 6 +++--- lib/ethdev/rte_flow.h | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c index 7a51b667cf..ec0fe08355 100644 --- a/lib/ethdev/rte_flow.c +++ b/lib/ethdev/rte_flow.c @@ -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) int rte_flow_dynf_metadata_register(void) { diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index ba3bcc89a3..0c6d42c0d8 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -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

