Skip to contentSkip to conversation

eal: add new function versioning macros

RFC Superseded David Marchand 10 participants 101 messages Mar 5, 2025 – Apr 7, 2025 Page 1 of 4

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 eal: add new function versioning macros

For versioning symbols:
- MSVC uses pragmas on the function symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for versioning functions that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a function is just a call to a single macro:
- VERSION_FUNCTION (resp. VERSION_FUNCTION_EXPERIMENTAL), for keeping an old implementation code under a versioned function,
- DEFAULT_FUNCTION, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Documentation has been updated though it needs some polishing. The experimental macro has not been tested.

---
 doc/guides/contributing/abi_versioning.rst | 133 ++++-----------------
 lib/eal/include/rte_function_versioning.h  |  27 +++++
 lib/net/rte_net_crc.c                      |  41 +++----
 3 files changed, 69 insertions(+), 132 deletions(-)
doc/guides/contributing/abi_versioning.rst +26 -107
index 7afd1c1886..b83383fd0b 100644
@@ -277,86 +277,52 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``VERSION_FUNCTION``, passing the current ABI version,
+the function return type, and the function name, then the full implementation of the
+function.
 
 .. code-block:: c
 
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ +VERSION_FUNCTION(21,
+ +struct rte_acl_ctx *,
+ +rte_acl_create, (const struct rte_acl_param *param)
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
         ...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -}
+ +})
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new
-function name, with the ``v22`` suffix, and implement it appropriately.
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``DEFAULT_FUNCTION``.
 
 .. code-block:: c
 
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   DEFAULT_FUNCTION(22,
+   struct rte_acl_ctx *,
+   rte_acl_create, (const struct rte_acl_param *param, int debug);
    {
         struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
 
         ctx->debug = debug;
 
         return ctx;
-   }
-
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+   })
 
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +331,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -519,26 +452,19 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   DEFAULT_FUNCTION(22,
+   struct rte_acl_ctx *,
+   rte_acl_create, (const struct rte_acl_param *param)
    {
    ...
-   }
-
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
+   })
 
+   VERSION_FUNCTION_EXPERIMENTAL(
    struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   rte_acl_create, (const struct rte_acl_param *param)
    {
       return rte_acl_create(param);
-   }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+   })
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +490,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
lib/eal/include/rte_function_versioning.h +27 -0
index eb6dd2bc17..7a33a45928 100644
@@ -96,4 +96,31 @@
  */
 #endif
 
+#ifdef RTE_BUILD_SHARED_LIB
+
+#define VERSION_FUNCTION(ver, type, name, ...) \
+__rte_used type name ## _v ## ver __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@DPDK_" RTE_STR(ver));
+
+#define VERSION_FUNCTION_EXPERIMENTAL(type, name, ...) \
+__rte_used type name ## _exp __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_exp, " RTE_STR(name) "@EXPERIMENTAL")
+
+#define DEFAULT_FUNCTION(ver, type, name, ...) \
+__rte_used type name ## _v ## ver __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@@DPDK_" RTE_STR(ver));
+
+#else /* !RTE_BUILD_SHARED_LIB */
+
+#define VERSION_FUNCTION(ver, type, name, ...) \
+type name ## _v ## ver __VA_ARGS__
+
+#define VERSION_FUNCTION_EXPERIMENTAL(type, name, ...) \
+type name ## _exp __VA_ARGS__
+
+#define DEFAULT_FUNCTION(ver, type, name, ...) \
+type name __VA_ARGS__
+
+#endif /* RTE_BUILD_SHARED_LIB */
+
 #endif /* _RTE_FUNCTION_VERSIONING_H_ */
lib/net/rte_net_crc.c +16 -25

75 lines not on this page · raw message

Signature · 1 line
2.48.1
#1 lore raw

Recheck-request: iol-intel-Performance

There was an infra failure with the Arm Grace server about 12 hours ago which caused this failure - sending a retest request.

#2 lore raw
In reply to David Marchand
Quoted 15 lines · David Marchand

For versioning symbols:
- MSVC uses pragmas on the function symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for versioning functions that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a function is just a call to a single macro:
- VERSION_FUNCTION (resp. VERSION_FUNCTION_EXPERIMENTAL), for keeping an old implementation code under a versioned function,
- DEFAULT_FUNCTION, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Quoted 5 lines

Documentation has been updated though it needs some polishing. The experimental macro has not been tested.

---

This looks a nice improvement to me, thanks.

#3 lore raw

RFC v2 1/2 eal: add new function versioning macros

In reply to David Marchand

For versioning symbols:
- MSVC uses pragmas on the symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a symbol is just a call to a single macro:
- RTE_VERSION_SYMBOL (resp. RTE_VERSION_EXPERIMENTAL_SYMBOL), for keeping an old implementation code under a versioned function (resp. experimental function),
- RTE_DEFAULT_SYMBOL, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Documentation has been updated though it needs some polishing. The experimental macro has not been tested.

---
Changes since RFC v1:
- renamed and prefixed macros,
- reindented in prevision of second patch,

---
 doc/guides/contributing/abi_versioning.rst | 130 ++++-----------------
 lib/eal/include/rte_function_versioning.h  |  27 +++++
 lib/net/rte_net_crc.c                      |  30 ++---
 3 files changed, 57 insertions(+), 130 deletions(-)
doc/guides/contributing/abi_versioning.rst +22 -108
index 7afd1c1886..c4baf6433a 100644
@@ -277,86 +277,49 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
+the function return type, and the function name, then the full implementation of the
+function.
 
 .. code-block:: c
 
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param)
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
         ...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -}
+ +})
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new
-function name, with the ``v22`` suffix, and implement it appropriately.
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
 .. code-block:: c
 
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug);
    {
         struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
 
         ctx->debug = debug;
 
         return ctx;
-   }
-
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+   })
 
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +328,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -519,26 +449,17 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param)
    {
    ...
-   }
+   })
 
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
-
-   struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   RTE_VERSION_EXPERIMENTAL_SYMBOL(struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param)
    {
       return rte_acl_create(param);
-   }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+   })
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +485,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
lib/eal/include/rte_function_versioning.h +27 -0
index eb6dd2bc17..259b960ef5 100644
@@ -96,4 +96,31 @@
  */
 #endif
 
+#ifdef RTE_BUILD_SHARED_LIB
+
+#define RTE_VERSION_SYMBOL(ver, type, name, ...) \
+__rte_used type name ## _v ## ver __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@DPDK_" RTE_STR(ver));
+
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, ...) \
+__rte_used type name ## _exp __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_exp, " RTE_STR(name) "@EXPERIMENTAL")
+
+#define RTE_DEFAULT_SYMBOL(ver, type, name, ...) \
+__rte_used type name ## _v ## ver __VA_ARGS__ \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@@DPDK_" RTE_STR(ver));
+
+#else /* !RTE_BUILD_SHARED_LIB */
+
+#define RTE_VERSION_SYMBOL(ver, type, name, ...) \
+type name ## _v ## ver __VA_ARGS__
+
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, ...) \
+type name ## _exp __VA_ARGS__
+
+#define RTE_DEFAULT_SYMBOL(ver, type, name, ...) \
+type name __VA_ARGS__
+
+#endif /* RTE_BUILD_SHARED_LIB */
+
 #endif /* _RTE_FUNCTION_VERSIONING_H_ */
lib/net/rte_net_crc.c +8 -22
index 2fb3eec231..dd93d43c2e 100644
@@ -345,8 +345,7 @@ handlers_init(enum rte_net_crc_alg alg)
 
 /* Public API */
 
-void
-rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
+RTE_VERSION_SYMBOL(25, void, rte_net_crc_set_alg, (enum rte_net_crc_alg alg)
 {
 	handlers = NULL;
 	if (max_simd_bitwidth == 0)
@@ -372,10 +371,9 @@ rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
 
 	if (handlers == NULL)
 		handlers = handlers_scalar;
-}
-VERSION_SYMBOL(rte_net_crc_set_alg, _v25, 25);
+})
 
-struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
+RTE_DEFAULT_SYMBOL(26, struct rte_net_crc *, rte_net_crc_set_alg, (enum rte_net_crc_alg alg,
 	enum rte_net_crc_type type)
 {
 	uint16_t max_simd_bitwidth;
@@ -413,20 +411,14 @@ struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
 		break;
 	}
 	return crc;
-}
-BIND_DEFAULT_SYMBOL(rte_net_crc_set_alg, _v26, 26);
-MAP_STATIC_SYMBOL(struct rte_net_crc *rte_net_crc_set_alg(
-	enum rte_net_crc_alg alg, enum rte_net_crc_type type),
-	rte_net_crc_set_alg_v26);
+})
 
 void rte_net_crc_free(struct rte_net_crc *crc)
 {
 	rte_free(crc);
 }
 
-uint32_t
-rte_net_crc_calc_v25(const void *data,
-	uint32_t data_len,
+RTE_VERSION_SYMBOL(25, uint32_t, rte_net_crc_calc, (const void *data, uint32_t data_len,
 	enum rte_net_crc_type type)
 {
 	uint32_t ret;
@@ -436,19 +428,13 @@ rte_net_crc_calc_v25(const void *data,
 	ret = f_handle(data, data_len);
 
 	return ret;
-}
-VERSION_SYMBOL(rte_net_crc_calc, _v25, 25);
+})
 
-uint32_t
-rte_net_crc_calc_v26(const struct rte_net_crc *ctx,
+RTE_DEFAULT_SYMBOL(26, uint32_t, rte_net_crc_calc, (const struct rte_net_crc *ctx,
 	const void *data, const uint32_t data_len)
 {
 	return handlers_dpdk26[ctx->alg].f[ctx->type](data, data_len);
-}
-BIND_DEFAULT_SYMBOL(rte_net_crc_calc, _v26, 26);
-MAP_STATIC_SYMBOL(uint32_t rte_net_crc_calc(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len),
-	rte_net_crc_calc_v26);
+})
 
 /* Call initialisation helpers for all crc algorithm handlers */
 RTE_INIT(rte_net_crc_init)
Signature · 1 line
2.48.1
#4 lore raw

RFC v2 2/2 build: generate symbol maps

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token.
The build framework then generates map files in a format that can satisfy GNU linker.

Apply those macros to lib/net as an example.

Documentation is missing.
Converting from .map to Windows export file is not done. Checks on map files are left in place, though they could be removed once the whole tree is converted.
Experimental and internal symbol types are not handled. Probably something else is missing, but this patch is still at RFC level.

---
 buildtools/gen-version-map.py | 65 +++++++++++++++++++++++++++++++++++
 buildtools/meson.build        |  1 +
 drivers/meson.build           |  2 --
 lib/meson.build               | 19 ++++++++--
 lib/net/rte_arp.c             |  1 +
 lib/net/rte_ether.c           |  3 ++
 lib/net/rte_net.c             |  2 ++
 lib/net/rte_net_crc.c         |  1 +
 lib/net/version.map           | 23 -------------
 meson.build                   |  3 +-
 10 files changed, 91 insertions(+), 29 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 delete mode 100644 lib/net/version.map
buildtools/gen-version-map.py new file +65 -0
new file mode 100755
index 0000000000..2b03f328ea
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2024 Red Hat, Inc.
+
+"""Generate a version map file used by GNU linker."""
+
+import re
+import sys
+
+# From meson.build
+sym_export_regexp = re.compile(r"^RTE_EXPORT_SYMBOL\(([^,]+)\)$")
+# From rte_function_versioning.h
+sym_ver_regexp = re.compile(r"^RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+sym_default_regexp = re.compile(r"^RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+with open("../ABI_VERSION") as f:
+    abi = re.match("([0-9]+).[0-9]", f.readline()).group(1)
+
+symbols = {}
+
+for file in sys.argv[2:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            node = None
+            symbol = None
+            if sym_export_regexp.match(ln):
+                symbol = sym_export_regexp.match(ln).group(1)
+            elif sym_ver_regexp.match(ln):
+                node = sym_ver_regexp.match(ln).group(1)
+                symbol = sym_ver_regexp.match(ln).group(2)
+            elif sym_default_regexp.match(ln):
+                node = sym_default_regexp.match(ln).group(1)
+                symbol = sym_default_regexp.match(ln).group(2)
+
+            if not symbol:
+                continue
+
+            if not node:
+                node = abi
+            if node not in symbols:
+                symbols[node] = []
+            symbols[node].append(symbol)
+
+with open(sys.argv[1], "w") as outfile:
+    local_token = False
+    if abi in symbols:
+        outfile.writelines(f"DPDK_{abi} {{\n\tglobal:\n\n")
+        for symbol in sorted(symbols[abi]):
+            outfile.writelines(f"\t{symbol};\n")
+        outfile.writelines("\n")
+        if not local_token:
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+        outfile.writelines("};\n")
+        del symbols[abi]
+    for key in sorted(symbols.keys()):
+        outfile.writelines(f"DPDK_{key} {{\n\tglobal:\n\n")
+        for symbol in sorted(symbols[key]):
+            outfile.writelines(f"\t{symbol};\n")
+        outfile.writelines("\n")
+        if not local_token:
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+        outfile.writelines(f"}} DPDK_{abi};\n")
+        del symbols[key]
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
drivers/meson.build +0 -2
index 05391a575d..d5fe3749c4 100644
@@ -5,8 +5,6 @@ if is_ms_compiler
     subdir_done()
 endif
 
-fs = import('fs')
-
 # Defines the order of dependencies evaluation
 subdirs = [
         'common',
lib/meson.build +16 -3
index ce92cb5537..4db1864241 100644
@@ -110,6 +110,7 @@ endif
 default_cflags = machine_args
 default_cflags += ['-DALLOW_EXPERIMENTAL_API']
 default_cflags += ['-DALLOW_INTERNAL_API']
+default_cflags += ['-DRTE_EXPORT_SYMBOL(a)=']
 
 if cc.has_argument('-Wno-format-truncation')
     default_cflags += '-Wno-format-truncation'
@@ -254,6 +255,9 @@ foreach l:libraries
             include_directories: includes,
             dependencies: static_deps)
 
+    version_map = '@0@/@1@/version.map'.format(meson.current_source_dir(), l)
+    lk_deps = []
+
     if not use_function_versioning or is_windows
         # use pre-build objects to build shared lib
         sources = []
@@ -262,10 +266,19 @@ foreach l:libraries
         # for compat we need to rebuild with
         # RTE_BUILD_SHARED_LIB defined
         cflags += '-DRTE_BUILD_SHARED_LIB'
-    endif
 
-    version_map = '@0@/@1@/version.map'.format(meson.current_source_dir(), l)
-    lk_deps = [version_map]
+        # POC: generate version.map if absent.
+        if not fs.is_file(version_map)
+            map_file = custom_target(libname + '_map',
+                    command: [gen_version_map, '@OUTPUT@', '@INPUT@'],
+                    input: sources,
+                    output: '@0@_version.map'.format(libname))
+            version_map = map_file.full_path()
+            lk_deps += [map_file]
+        else
+            lk_deps += [version_map]
+        endif
+    endif
 
     if is_ms_linker
         def_file = custom_target(libname + '_def',
lib/net/rte_arp.c +1 -0
index 22af519586..cd0f49a7a9 100644
@@ -47,3 +47,4 @@ rte_net_make_rarp_packet(struct rte_mempool *mpool,
 
 	return mbuf;
 }
+RTE_EXPORT_SYMBOL(rte_net_make_rarp_packet)
lib/net/rte_ether.c +3 -0
index f59c20289d..9d02db1676 100644
@@ -17,6 +17,7 @@ rte_eth_random_addr(uint8_t *addr)
 	addr[0] &= (uint8_t)~RTE_ETHER_GROUP_ADDR;	/* clear multicast bit */
 	addr[0] |= RTE_ETHER_LOCAL_ADMIN_ADDR;	/* set local assignment bit */
 }
+RTE_EXPORT_SYMBOL(rte_eth_random_addr)
 
 void
 rte_ether_format_addr(char *buf, uint16_t size,
@@ -25,6 +26,7 @@ rte_ether_format_addr(char *buf, uint16_t size,
 	snprintf(buf, size, RTE_ETHER_ADDR_PRT_FMT,
 		RTE_ETHER_ADDR_BYTES(eth_addr));
 }
+RTE_EXPORT_SYMBOL(rte_ether_format_addr)
 
 static int8_t get_xdigit(char ch)
 {
@@ -153,3 +155,4 @@ rte_ether_unformat_addr(const char *s, struct rte_ether_addr *ea)
 	rte_errno = EINVAL;
 	return -1;
 }
+RTE_EXPORT_SYMBOL(rte_ether_unformat_addr)
lib/net/rte_net.c +2 -0
index 0c32e78a13..9a1bc3fb7d 100644
@@ -306,6 +306,7 @@ rte_net_skip_ip6_ext(uint16_t proto, const struct rte_mbuf *m, uint32_t *off,
 	}
 	return -1;
 }
+RTE_EXPORT_SYMBOL(rte_net_skip_ip6_ext)
 
 /* parse mbuf data to get packet type */
 uint32_t rte_net_get_ptype(const struct rte_mbuf *m,
@@ -601,3 +602,4 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m,
 
 	return pkt_type;
 }
+RTE_EXPORT_SYMBOL(rte_net_get_ptype)
lib/net/rte_net_crc.c +1 -0
index dd93d43c2e..03be816509 100644
@@ -417,6 +417,7 @@ void rte_net_crc_free(struct rte_net_crc *crc)
 {
 	rte_free(crc);
 }
+RTE_EXPORT_SYMBOL(rte_net_crc_free)
 
 RTE_VERSION_SYMBOL(25, uint32_t, rte_net_crc_calc, (const void *data, uint32_t data_len,
 	enum rte_net_crc_type type)
lib/net/version.map deleted +0 -23
deleted file mode 100644
index f4dd673fa3..0000000000
@@ -1,23 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_eth_random_addr;
-	rte_ether_format_addr;
-	rte_ether_unformat_addr;
-	rte_net_crc_calc;
-	rte_net_crc_free;
-	rte_net_crc_set_alg;
-	rte_net_get_ptype;
-	rte_net_make_rarp_packet;
-	rte_net_skip_ip6_ext;
-
-	local: *;
-};
-
-DPDK_26 {
-	global:
-
-	rte_net_crc_calc;
-	rte_net_crc_set_alg;
-
-} DPDK_25;
meson.build +2 -1
index 8436d1dff8..dfb4cb3aee 100644
@@ -13,10 +13,11 @@ project('DPDK', 'c',
         meson_version: '>= 0.57'
 )
 
+fs = import('fs')
+
 # check for developer mode
 developer_mode = false
 if get_option('developer_mode').auto()
-    fs = import('fs')
     developer_mode = fs.exists('.git')
 else
     developer_mode = get_option('developer_mode').enabled()
Signature · 1 line
2.48.1
Acked-by on v2 1/2
#5 lore raw
In reply to David Marchand
Quoted 25 lines · David Marchand

For versioning symbols:
- MSVC uses pragmas on the symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a symbol is just a call to a single macro:
- RTE_VERSION_SYMBOL (resp. RTE_VERSION_EXPERIMENTAL_SYMBOL), for keeping an old implementation code under a versioned function (resp. experimental function),
- RTE_DEFAULT_SYMBOL, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Documentation has been updated though it needs some polishing. The experimental macro has not been tested.

---
Changes since RFC v1:
- renamed and prefixed macros,
- reindented in prevision of second patch,

Quoted 6 lines
---
 doc/guides/contributing/abi_versioning.rst | 130 ++++-----------------
 lib/eal/include/rte_function_versioning.h  |  27 +++++
 lib/net/rte_net_crc.c                      |  30 ++---
 3 files changed, 57 insertions(+), 130 deletions(-)

I like the proposal. Having a single macro able to handle different linkers is clearly a good step forward.

#6 lore raw

v3 cover Symbol versioning and export rework

In reply to David Marchand

So far, each DPDK library (or driver) exposing symbols in an ABI had to maintain a version.map and use some macros for symbol versioning, specially crafted with the GNU linker in mind.

This series proposes to rework the whole principle, and instead rely on marking the symbol exports in the source code itself, then let it to the build framework to produce a version script adapted to the linker in use (think GNU linker vs MSVC linker).

This greatly simplifies versioning symbols: a developer does not need to know anything about version.map, or that a versioned symbol must be renamed with _v26, annotated with __vsym, exported in a header etc...

Checking symbol maps becomes unnecessary since generated by the build framework.

Updating to a new ABI is just a matter of bumping the value in ABI_VERSION.

Comments please.

Signature · 666 lines
David Marchand

Changes since RFC v2:
- updated RTE_VERSION_SYMBOL() (and friends) so that only the fonction
  signature is enclosed in the macro,
- dropped invalid exports for some dead symbols or inline helpers,
- updated documentation and tooling,
- converted the whole tree (via a local script of mine),

David Marchand (8):
  lib: remove incorrect exported symbols
  drivers: remove incorrect exported symbols
  eal: rework function versioning macros
  buildtools: display version when listing symbols
  build: generate symbol maps
  build: mark exported symbols
  build: use dynamically generated version maps
  build: remove static version maps

 .github/workflows/build.yml                   |   1 -
 MAINTAINERS                                   |   9 +-
 buildtools/check-symbols.sh                   |  33 +-
 buildtools/gen-version-map.py                 | 111 ++++
 buildtools/map-list-symbol.sh                 |  15 +-
 buildtools/map_to_win.py                      |  41 --
 buildtools/meson.build                        |   2 +-
 config/meson.build                            |   2 +
 config/rte_export.h                           |  16 +
 devtools/check-symbol-change.py               |  90 +++
 devtools/check-symbol-change.sh               | 186 ------
 devtools/check-symbol-maps.sh                 | 115 ----
 devtools/checkpatches.sh                      |   4 +-
 devtools/update-abi.sh                        |  46 --
 devtools/update_version_map_abi.py            | 210 -------
 doc/guides/contributing/abi_policy.rst        |  21 +-
 doc/guides/contributing/abi_versioning.rst    | 385 ++----------
 doc/guides/contributing/coding_style.rst      |   7 -
 .../contributing/img/patch_cheatsheet.svg     | 303 +++++----
 doc/guides/contributing/patches.rst           |   6 +-
 drivers/baseband/acc/rte_acc100_pmd.c         |   1 +
 drivers/baseband/acc/version.map              |  10 -
 .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c         |   1 +
 drivers/baseband/fpga_5gnr_fec/version.map    |  11 -
 drivers/baseband/fpga_lte_fec/fpga_lte_fec.c  |   1 +
 drivers/baseband/fpga_lte_fec/version.map     |  10 -
 drivers/bus/auxiliary/auxiliary_common.c      |   2 +
 drivers/bus/auxiliary/version.map             |   8 -
 drivers/bus/cdx/cdx.c                         |   4 +
 drivers/bus/cdx/cdx_vfio.c                    |   4 +
 drivers/bus/cdx/version.map                   |  14 -
 drivers/bus/dpaa/dpaa_bus.c                   | 104 ++++
 drivers/bus/dpaa/version.map                  | 109 ----
 drivers/bus/fslmc/fslmc_bus.c                 |   4 +
 drivers/bus/fslmc/fslmc_vfio.c                |  12 +
 drivers/bus/fslmc/mc/dpbp.c                   |   6 +
 drivers/bus/fslmc/mc/dpci.c                   |   3 +
 drivers/bus/fslmc/mc/dpcon.c                  |   6 +
 drivers/bus/fslmc/mc/dpdmai.c                 |   8 +
 drivers/bus/fslmc/mc/dpio.c                   |  13 +
 drivers/bus/fslmc/mc/dpmng.c                  |   2 +
 drivers/bus/fslmc/mc/mc_sys.c                 |   1 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c      |   3 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpci.c      |   2 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c      |  11 +
 drivers/bus/fslmc/qbman/qbman_debug.c         |   2 +
 drivers/bus/fslmc/qbman/qbman_portal.c        |  41 ++
 drivers/bus/fslmc/version.map                 | 129 ----
 drivers/bus/ifpga/ifpga_bus.c                 |   3 +
 drivers/bus/ifpga/version.map                 |   9 -
 drivers/bus/pci/bsd/pci.c                     |  10 +
 drivers/bus/pci/linux/pci.c                   |  10 +
 drivers/bus/pci/pci_common.c                  |  10 +
 drivers/bus/pci/version.map                   |  43 --
 drivers/bus/pci/windows/pci.c                 |  10 +
 drivers/bus/platform/platform.c               |   2 +
 drivers/bus/platform/version.map              |  10 -
 drivers/bus/uacce/uacce.c                     |   9 +
 drivers/bus/uacce/version.map                 |  15 -
 drivers/bus/vdev/vdev.c                       |   6 +
 drivers/bus/vdev/version.map                  |  17 -
 drivers/bus/vmbus/linux/vmbus_bus.c           |   6 +
 drivers/bus/vmbus/version.map                 |  33 -
 drivers/bus/vmbus/vmbus_channel.c             |  13 +
 drivers/bus/vmbus/vmbus_common.c              |   3 +
 drivers/common/cnxk/cnxk_security.c           |  12 +
 drivers/common/cnxk/cnxk_utils.c              |   1 +
 drivers/common/cnxk/roc_platform.c            | 559 +++++++++++++++++
 drivers/common/cnxk/roc_se.h                  |   1 -
 drivers/common/cnxk/version.map               | 578 ------------------
 drivers/common/cpt/cpt_fpm_tables.c           |   2 +
 drivers/common/cpt/cpt_pmd_ops_helper.c       |   3 +
 drivers/common/cpt/version.map                |  11 -
 drivers/common/dpaax/caamflib.c               |   1 +
 drivers/common/dpaax/dpaa_of.c                |  12 +
 drivers/common/dpaax/dpaax_iova_table.c       |   6 +
 drivers/common/dpaax/version.map              |  25 -
 drivers/common/ionic/ionic_common_uio.c       |   4 +
 drivers/common/ionic/version.map              |  10 -
 .../common/mlx5/linux/mlx5_common_auxiliary.c |   1 +
 drivers/common/mlx5/linux/mlx5_common_os.c    |   9 +
 drivers/common/mlx5/linux/mlx5_common_verbs.c |   3 +
 drivers/common/mlx5/linux/mlx5_glue.c         |   1 +
 drivers/common/mlx5/linux/mlx5_nl.c           |  21 +
 drivers/common/mlx5/mlx5_common.c             |   9 +
 drivers/common/mlx5/mlx5_common_devx.c        |   9 +
 drivers/common/mlx5/mlx5_common_mp.c          |   8 +
 drivers/common/mlx5/mlx5_common_mr.c          |  11 +
 drivers/common/mlx5/mlx5_common_pci.c         |   2 +
 drivers/common/mlx5/mlx5_common_utils.c       |  11 +
 drivers/common/mlx5/mlx5_devx_cmds.c          |  51 ++
 drivers/common/mlx5/mlx5_malloc.c             |   4 +
 drivers/common/mlx5/version.map               | 174 ------
 drivers/common/mlx5/windows/mlx5_common_os.c  |   5 +
 drivers/common/mlx5/windows/mlx5_glue.c       |   3 +-
 drivers/common/mvep/mvep_common.c             |   2 +
 drivers/common/mvep/version.map               |   8 -
 drivers/common/nfp/nfp_common.c               |   7 +
 drivers/common/nfp/nfp_common_pci.c           |   1 +
 drivers/common/nfp/nfp_dev.c                  |   1 +
 drivers/common/nfp/version.map                |  16 -
 drivers/common/nitrox/nitrox_device.c         |   1 +
 drivers/common/nitrox/nitrox_logs.c           |   1 +
 drivers/common/nitrox/nitrox_qp.c             |   2 +
 drivers/common/nitrox/version.map             |  10 -
 drivers/common/octeontx/octeontx_mbox.c       |   6 +
 drivers/common/octeontx/version.map           |  12 -
 drivers/common/sfc_efx/sfc_efx.c              | 273 +++++++++
 drivers/common/sfc_efx/sfc_efx_mcdi.c         |   2 +
 drivers/common/sfc_efx/version.map            | 302 ---------
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c     |   7 +
 drivers/crypto/cnxk/cn9k_cryptodev_ops.c      |   2 +
 drivers/crypto/cnxk/cnxk_cryptodev_ops.c      |   7 +
 drivers/crypto/cnxk/version.map               |  30 -
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   2 +
 drivers/crypto/dpaa2_sec/version.map          |   8 -
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   2 +
 drivers/crypto/dpaa_sec/version.map           |   8 -
 drivers/crypto/octeontx/otx_cryptodev_ops.c   |   2 +
 drivers/crypto/octeontx/version.map           |  12 -
 .../scheduler/rte_cryptodev_scheduler.c       |  10 +
 drivers/crypto/scheduler/version.map          |  16 -
 drivers/dma/cnxk/cnxk_dmadev_fp.c             |   4 +
 drivers/dma/cnxk/version.map                  |  10 -
 drivers/event/cnxk/cnxk_worker.c              |   2 +
 drivers/event/cnxk/version.map                |  11 -
 drivers/event/dlb2/rte_pmd_dlb2.c             |   1 +
 drivers/event/dlb2/version.map                |  10 -
 drivers/mempool/cnxk/cn10k_hwpool_ops.c       |   3 +
 drivers/mempool/cnxk/version.map              |  12 -
 drivers/mempool/dpaa/dpaa_mempool.c           |   2 +
 drivers/mempool/dpaa/version.map              |   8 -
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c      |   5 +
 drivers/mempool/dpaa2/version.map             |  16 -
 drivers/meson.build                           |  72 +--
 drivers/net/atlantic/rte_pmd_atlantic.c       |   6 +
 drivers/net/atlantic/version.map              |  15 -
 drivers/net/bnxt/rte_pmd_bnxt.c               |  16 +
 drivers/net/bnxt/version.map                  |  22 -
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  12 +
 drivers/net/bonding/rte_eth_bond_api.c        |  15 +
 drivers/net/bonding/version.map               |  33 -
 drivers/net/cnxk/cnxk_ethdev.c                |   3 +
 drivers/net/cnxk/cnxk_ethdev_sec.c            |   9 +
 drivers/net/cnxk/version.map                  |  27 -
 drivers/net/dpaa/dpaa_ethdev.c                |   3 +
 drivers/net/dpaa/version.map                  |  14 -
 drivers/net/dpaa2/dpaa2_ethdev.c              |  11 +
 drivers/net/dpaa2/dpaa2_mux.c                 |   3 +
 drivers/net/dpaa2/dpaa2_rxtx.c                |   1 +
 drivers/net/dpaa2/version.map                 |  35 --
 drivers/net/intel/i40e/rte_pmd_i40e.c         |  39 ++
 drivers/net/intel/i40e/version.map            |  55 --
 drivers/net/intel/iavf/iavf_ethdev.c          |   9 +
 drivers/net/intel/iavf/iavf_rxtx.c            |   8 +
 drivers/net/intel/iavf/version.map            |  33 -
 drivers/net/intel/ice/ice_diagnose.c          |   3 +
 drivers/net/intel/ice/version.map             |  16 -
 drivers/net/intel/idpf/idpf_common_device.c   |  10 +
 drivers/net/intel/idpf/idpf_common_rxtx.c     |  33 +
 drivers/net/intel/idpf/idpf_common_virtchnl.c |  29 +
 drivers/net/intel/idpf/version.map            |  80 ---
 drivers/net/intel/ipn3ke/ipn3ke_ethdev.c      |   1 +
 drivers/net/intel/ipn3ke/version.map          |   9 -
 drivers/net/intel/ixgbe/rte_pmd_ixgbe.c       |  37 ++
 drivers/net/intel/ixgbe/version.map           |  49 --
 drivers/net/mlx5/mlx5.c                       |   1 +
 drivers/net/mlx5/mlx5_flow.c                  |   4 +
 drivers/net/mlx5/mlx5_rx.c                    |   2 +
 drivers/net/mlx5/mlx5_rxq.c                   |   2 +
 drivers/net/mlx5/mlx5_tx.c                    |   1 +
 drivers/net/mlx5/mlx5_txq.c                   |   3 +
 drivers/net/mlx5/version.map                  |  28 -
 drivers/net/octeontx/octeontx_ethdev.c        |   1 +
 drivers/net/octeontx/version.map              |   7 -
 drivers/net/ring/rte_eth_ring.c               |   2 +
 drivers/net/ring/version.map                  |   8 -
 drivers/net/softnic/rte_eth_softnic.c         |   1 +
 drivers/net/softnic/rte_eth_softnic_thread.c  |   1 +
 drivers/net/softnic/version.map               |   8 -
 drivers/net/vhost/rte_eth_vhost.c             |   2 +
 drivers/net/vhost/version.map                 |   8 -
 drivers/power/kvm_vm/guest_channel.c          |   2 +
 drivers/power/kvm_vm/version.map              |   8 -
 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c         |  10 +
 drivers/raw/cnxk_rvu_lf/version.map           |  16 -
 drivers/raw/ifpga/rte_pmd_ifpga.c             |  11 +
 drivers/raw/ifpga/version.map                 |  17 -
 drivers/version.map                           |   3 -
 lib/acl/acl_bld.c                             |   1 +
 lib/acl/acl_run_scalar.c                      |   1 +
 lib/acl/rte_acl.c                             |  11 +
 lib/acl/version.map                           |  19 -
 lib/argparse/rte_argparse.c                   |   2 +
 lib/argparse/version.map                      |   9 -
 lib/bbdev/bbdev_trace_points.c                |   2 +
 lib/bbdev/rte_bbdev.c                         |  31 +
 lib/bbdev/version.map                         |  47 --
 lib/bitratestats/rte_bitrate.c                |   4 +
 lib/bitratestats/version.map                  |  10 -
 lib/bpf/bpf.c                                 |   2 +
 lib/bpf/bpf_convert.c                         |   1 +
 lib/bpf/bpf_dump.c                            |   1 +
 lib/bpf/bpf_exec.c                            |   2 +
 lib/bpf/bpf_load.c                            |   1 +
 lib/bpf/bpf_load_elf.c                        |   1 +
 lib/bpf/bpf_pkt.c                             |   4 +
 lib/bpf/bpf_stub.c                            |   2 +
 lib/bpf/version.map                           |  18 -
 lib/cfgfile/rte_cfgfile.c                     |  17 +
 lib/cfgfile/version.map                       |  23 -
 lib/cmdline/cmdline.c                         |   9 +
 lib/cmdline/cmdline_cirbuf.c                  |  19 +
 lib/cmdline/cmdline_parse.c                   |   4 +
 lib/cmdline/cmdline_parse_bool.c              |   1 +
 lib/cmdline/cmdline_parse_etheraddr.c         |   3 +
 lib/cmdline/cmdline_parse_ipaddr.c            |   3 +
 lib/cmdline/cmdline_parse_num.c               |   3 +
 lib/cmdline/cmdline_parse_portlist.c          |   3 +
 lib/cmdline/cmdline_parse_string.c            |   5 +
 lib/cmdline/cmdline_rdline.c                  |  15 +
 lib/cmdline/cmdline_socket.c                  |   3 +
 lib/cmdline/cmdline_vt100.c                   |   2 +
 lib/cmdline/version.map                       |  82 ---
 lib/compressdev/rte_comp.c                    |   6 +
 lib/compressdev/rte_compressdev.c             |  25 +
 lib/compressdev/rte_compressdev_pmd.c         |   3 +
 lib/compressdev/version.map                   |  40 --
 lib/cryptodev/cryptodev_pmd.c                 |   7 +
 lib/cryptodev/cryptodev_trace_points.c        |   3 +
 lib/cryptodev/rte_cryptodev.c                 |  83 +++
 lib/cryptodev/version.map                     | 114 ----
 lib/dispatcher/rte_dispatcher.c               |  13 +
 lib/dispatcher/version.map                    |  20 -
 lib/distributor/rte_distributor.c             |   9 +
 lib/distributor/version.map                   |  15 -
 lib/dmadev/rte_dmadev.c                       |  19 +
 lib/dmadev/rte_dmadev_trace_points.c          |   7 +
 lib/dmadev/version.map                        |  47 --
 lib/eal/arm/rte_cpuflags.c                    |   3 +
 lib/eal/arm/rte_hypervisor.c                  |   1 +
 lib/eal/arm/rte_power_intrinsics.c            |   4 +
 lib/eal/common/eal_common_bus.c               |  10 +
 lib/eal/common/eal_common_class.c             |   4 +
 lib/eal/common/eal_common_config.c            |   7 +
 lib/eal/common/eal_common_cpuflags.c          |   1 +
 lib/eal/common/eal_common_debug.c             |   2 +
 lib/eal/common/eal_common_dev.c               |  19 +
 lib/eal/common/eal_common_devargs.c           |   9 +
 lib/eal/common/eal_common_errno.c             |   2 +
 lib/eal/common/eal_common_fbarray.c           |  26 +
 lib/eal/common/eal_common_hexdump.c           |   2 +
 lib/eal/common/eal_common_hypervisor.c        |   1 +
 lib/eal/common/eal_common_interrupts.c        |  27 +
 lib/eal/common/eal_common_launch.c            |   5 +
 lib/eal/common/eal_common_lcore.c             |  17 +
 lib/eal/common/eal_common_lcore_var.c         |   1 +
 lib/eal/common/eal_common_mcfg.c              |  20 +
 lib/eal/common/eal_common_memory.c            |  29 +
 lib/eal/common/eal_common_memzone.c           |   9 +
 lib/eal/common/eal_common_options.c           |   4 +
 lib/eal/common/eal_common_proc.c              |   8 +
 lib/eal/common/eal_common_string_fns.c        |   3 +
 lib/eal/common/eal_common_tailqs.c            |   3 +
 lib/eal/common/eal_common_thread.c            |  14 +
 lib/eal/common/eal_common_timer.c             |   4 +
 lib/eal/common/eal_common_trace.c             |  15 +
 lib/eal/common/eal_common_trace_ctf.c         |   1 +
 lib/eal/common/eal_common_trace_points.c      |  18 +
 lib/eal/common/eal_common_trace_utils.c       |   1 +
 lib/eal/common/eal_common_uuid.c              |   4 +
 lib/eal/common/rte_bitset.c                   |   1 +
 lib/eal/common/rte_keepalive.c                |   6 +
 lib/eal/common/rte_malloc.c                   |  22 +
 lib/eal/common/rte_random.c                   |   4 +
 lib/eal/common/rte_reciprocal.c               |   2 +
 lib/eal/common/rte_service.c                  |  31 +
 lib/eal/common/rte_version.c                  |   7 +
 lib/eal/freebsd/eal.c                         |  22 +
 lib/eal/freebsd/eal_alarm.c                   |   2 +
 lib/eal/freebsd/eal_dev.c                     |   4 +
 lib/eal/freebsd/eal_interrupts.c              |  19 +
 lib/eal/freebsd/eal_memory.c                  |   3 +
 lib/eal/freebsd/eal_thread.c                  |   2 +
 lib/eal/freebsd/eal_timer.c                   |   1 +
 lib/eal/include/rte_function_versioning.h     |  96 ++-
 lib/eal/linux/eal.c                           |   7 +
 lib/eal/linux/eal_alarm.c                     |   2 +
 lib/eal/linux/eal_dev.c                       |   4 +
 lib/eal/linux/eal_interrupts.c                |  19 +
 lib/eal/linux/eal_memory.c                    |   3 +
 lib/eal/linux/eal_thread.c                    |   2 +
 lib/eal/linux/eal_timer.c                     |   4 +
 lib/eal/linux/eal_vfio.c                      |  16 +
 lib/eal/loongarch/rte_cpuflags.c              |   3 +
 lib/eal/loongarch/rte_hypervisor.c            |   1 +
 lib/eal/loongarch/rte_power_intrinsics.c      |   4 +
 lib/eal/ppc/rte_cpuflags.c                    |   3 +
 lib/eal/ppc/rte_hypervisor.c                  |   1 +
 lib/eal/ppc/rte_power_intrinsics.c            |   4 +
 lib/eal/riscv/rte_cpuflags.c                  |   3 +
 lib/eal/riscv/rte_hypervisor.c                |   1 +
 lib/eal/riscv/rte_power_intrinsics.c          |   4 +
 lib/eal/unix/eal_debug.c                      |   2 +
 lib/eal/unix/eal_filesystem.c                 |   1 +
 lib/eal/unix/eal_firmware.c                   |   1 +
 lib/eal/unix/eal_unix_memory.c                |   4 +
 lib/eal/unix/eal_unix_timer.c                 |   1 +
 lib/eal/unix/rte_thread.c                     |  13 +
 lib/eal/version.map                           | 451 --------------
 lib/eal/windows/eal.c                         |  11 +
 lib/eal/windows/eal_alarm.c                   |   2 +
 lib/eal/windows/eal_debug.c                   |   1 +
 lib/eal/windows/eal_dev.c                     |   4 +
 lib/eal/windows/eal_interrupts.c              |  19 +
 lib/eal/windows/eal_memory.c                  |   7 +
 lib/eal/windows/eal_mp.c                      |   6 +
 lib/eal/windows/eal_thread.c                  |   1 +
 lib/eal/windows/eal_timer.c                   |   1 +
 lib/eal/windows/rte_thread.c                  |  14 +
 lib/eal/x86/rte_cpuflags.c                    |   3 +
 lib/eal/x86/rte_hypervisor.c                  |   1 +
 lib/eal/x86/rte_power_intrinsics.c            |   4 +
 lib/eal/x86/rte_spinlock.c                    |   1 +
 lib/efd/rte_efd.c                             |   7 +
 lib/efd/version.map                           |  13 -
 lib/ethdev/ethdev_driver.c                    |  24 +
 lib/ethdev/ethdev_linux_ethtool.c             |   3 +
 lib/ethdev/ethdev_private.c                   |   2 +
 lib/ethdev/ethdev_trace_points.c              |   6 +
 lib/ethdev/rte_ethdev.c                       | 168 +++++
 lib/ethdev/rte_ethdev_cman.c                  |   4 +
 lib/ethdev/rte_flow.c                         |  64 ++
 lib/ethdev/rte_mtr.c                          |  21 +
 lib/ethdev/rte_tm.c                           |  31 +
 lib/ethdev/version.map                        | 378 ------------
 lib/eventdev/eventdev_private.c               |   2 +
 lib/eventdev/eventdev_trace_points.c          |  11 +
 lib/eventdev/rte_event_crypto_adapter.c       |  15 +
 lib/eventdev/rte_event_dma_adapter.c          |  15 +
 lib/eventdev/rte_event_eth_rx_adapter.c       |  23 +
 lib/eventdev/rte_event_eth_tx_adapter.c       |  17 +
 lib/eventdev/rte_event_ring.c                 |   4 +
 lib/eventdev/rte_event_timer_adapter.c        |  11 +
 lib/eventdev/rte_eventdev.c                   |  46 ++
 lib/eventdev/version.map                      | 179 ------
 lib/fib/rte_fib.c                             |  10 +
 lib/fib/rte_fib6.c                            |   9 +
 lib/fib/version.map                           |  31 -
 lib/gpudev/gpudev.c                           |  32 +
 lib/gpudev/version.map                        |  44 --
 lib/graph/graph.c                             |  16 +
 lib/graph/graph_debug.c                       |   1 +
 lib/graph/graph_stats.c                       |   4 +
 lib/graph/node.c                              |  11 +
 lib/graph/rte_graph_model_mcore_dispatch.c    |   3 +
 lib/graph/rte_graph_worker.c                  |   3 +
 lib/graph/version.map                         |  61 --
 lib/gro/rte_gro.c                             |   6 +
 lib/gro/version.map                           |  12 -
 lib/gso/rte_gso.c                             |   1 +
 lib/gso/version.map                           |   7 -
 lib/hash/rte_cuckoo_hash.c                    |  27 +
 lib/hash/rte_fbk_hash.c                       |   3 +
 lib/hash/rte_hash_crc.c                       |   2 +
 lib/hash/rte_thash.c                          |  12 +
 lib/hash/rte_thash_gf2_poly_math.c            |   1 +
 lib/hash/rte_thash_gfni.c                     |   2 +
 lib/hash/version.map                          |  66 --
 lib/ip_frag/rte_ip_frag_common.c              |   5 +
 lib/ip_frag/rte_ipv4_fragmentation.c          |   2 +
 lib/ip_frag/rte_ipv4_reassembly.c             |   1 +
 lib/ip_frag/rte_ipv6_fragmentation.c          |   1 +
 lib/ip_frag/rte_ipv6_reassembly.c             |   1 +
 lib/ip_frag/version.map                       |  16 -
 lib/ipsec/ipsec_sad.c                         |   6 +
 lib/ipsec/ipsec_telemetry.c                   |   2 +
 lib/ipsec/sa.c                                |   4 +
 lib/ipsec/ses.c                               |   1 +
 lib/ipsec/version.map                         |  23 -
 lib/jobstats/rte_jobstats.c                   |  14 +
 lib/jobstats/version.map                      |  20 -
 lib/kvargs/rte_kvargs.c                       |   8 +
 lib/kvargs/version.map                        |  14 -
 lib/latencystats/rte_latencystats.c           |   5 +
 lib/latencystats/version.map                  |  11 -
 lib/log/log.c                                 |  22 +
 lib/log/log_color.c                           |   1 +
 lib/log/log_internal.h                        |   3 -
 lib/log/log_syslog.c                          |   1 +
 lib/log/log_timestamp.c                       |   1 +
 lib/log/version.map                           |  37 --
 lib/lpm/rte_lpm.c                             |   8 +
 lib/lpm/rte_lpm6.c                            |  10 +
 lib/lpm/version.map                           |  24 -
 lib/mbuf/rte_mbuf.c                           |  17 +
 lib/mbuf/rte_mbuf_dyn.c                       |   9 +
 lib/mbuf/rte_mbuf_pool_ops.c                  |   5 +
 lib/mbuf/rte_mbuf_ptype.c                     |   8 +
 lib/mbuf/version.map                          |  45 --
 lib/member/rte_member.c                       |  13 +
 lib/member/version.map                        |  19 -
 lib/mempool/mempool_trace_points.c            |  10 +
 lib/mempool/rte_mempool.c                     |  27 +
 lib/mempool/rte_mempool_ops.c                 |   4 +
 lib/mempool/rte_mempool_ops_default.c         |   4 +
 lib/mempool/version.map                       |  65 --
 lib/meson.build                               |  56 +-
 lib/meter/rte_meter.c                         |   6 +
 lib/meter/version.map                         |  12 -
 lib/metrics/rte_metrics.c                     |   8 +
 lib/metrics/rte_metrics_telemetry.c           |  11 +
 lib/metrics/version.map                       |  26 -
 lib/mldev/mldev_utils.c                       |   2 +
 lib/mldev/mldev_utils_neon.c                  |  18 +
 lib/mldev/mldev_utils_neon_bfloat16.c         |   2 +
 lib/mldev/mldev_utils_scalar.c                |  18 +
 lib/mldev/mldev_utils_scalar_bfloat16.c       |   2 +
 lib/mldev/rte_mldev.c                         |  37 ++
 lib/mldev/rte_mldev_pmd.c                     |   2 +
 lib/mldev/version.map                         |  74 ---
 lib/net/net_crc.h                             |  15 -
 lib/net/rte_arp.c                             |   1 +
 lib/net/rte_ether.c                           |   3 +
 lib/net/rte_net.c                             |   2 +
 lib/net/rte_net_crc.c                         |  29 +-
 lib/net/version.map                           |  23 -
 lib/node/ethdev_ctrl.c                        |   2 +
 lib/node/ip4_lookup.c                         |   1 +
 lib/node/ip4_reassembly.c                     |   1 +
 lib/node/ip4_rewrite.c                        |   1 +
 lib/node/ip6_lookup.c                         |   1 +
 lib/node/ip6_rewrite.c                        |   1 +
 lib/node/udp4_input.c                         |   2 +
 lib/node/version.map                          |  25 -
 lib/pcapng/rte_pcapng.c                       |   7 +
 lib/pcapng/version.map                        |  13 -
 lib/pci/rte_pci.c                             |   3 +
 lib/pci/version.map                           |   9 -
 lib/pdcp/rte_pdcp.c                           |   5 +
 lib/pdcp/version.map                          |  16 -
 lib/pdump/rte_pdump.c                         |   9 +
 lib/pdump/version.map                         |  15 -
 lib/pipeline/rte_pipeline.c                   |  23 +
 lib/pipeline/rte_port_in_action.c             |   8 +
 lib/pipeline/rte_swx_ctl.c                    |  17 +
 lib/pipeline/rte_swx_ipsec.c                  |   7 +
 lib/pipeline/rte_swx_pipeline.c               |  73 +++
 lib/pipeline/rte_table_action.c               |  16 +
 lib/pipeline/version.map                      | 172 ------
 lib/port/rte_port_ethdev.c                    |   3 +
 lib/port/rte_port_eventdev.c                  |   3 +
 lib/port/rte_port_fd.c                        |   3 +
 lib/port/rte_port_frag.c                      |   2 +
 lib/port/rte_port_ras.c                       |   2 +
 lib/port/rte_port_ring.c                      |   6 +
 lib/port/rte_port_sched.c                     |   2 +
 lib/port/rte_port_source_sink.c               |   2 +
 lib/port/rte_port_sym_crypto.c                |   3 +
 lib/port/rte_swx_port_ethdev.c                |   2 +
 lib/port/rte_swx_port_fd.c                    |   2 +
 lib/port/rte_swx_port_ring.c                  |   2 +
 lib/port/rte_swx_port_source_sink.c           |   3 +
 lib/port/version.map                          |  50 --
 lib/power/power_common.c                      |   8 +
 lib/power/rte_power_cpufreq.c                 |  18 +
 lib/power/rte_power_pmd_mgmt.c                |  10 +
 lib/power/rte_power_qos.c                     |   2 +
 lib/power/rte_power_uncore.c                  |  14 +
 lib/power/version.map                         |  71 ---
 lib/rawdev/rte_rawdev.c                       |  30 +
 lib/rawdev/version.map                        |  36 --
 lib/rcu/rte_rcu_qsbr.c                        |  11 +
 lib/rcu/version.map                           |  17 -
 lib/regexdev/rte_regexdev.c                   |  26 +
 lib/regexdev/version.map                      |  40 --
 lib/reorder/rte_reorder.c                     |  11 +
 lib/reorder/version.map                       |  27 -
 lib/rib/rte_rib.c                             |  14 +
 lib/rib/rte_rib6.c                            |  14 +
 lib/rib/version.map                           |  34 --
 lib/ring/rte_ring.c                           |  11 +
 lib/ring/rte_soring.c                         |   3 +
 lib/ring/soring.c                             |  16 +
 lib/ring/version.map                          |  42 --
 lib/sched/rte_approx.c                        |   1 +
 lib/sched/rte_pie.c                           |   2 +
 lib/sched/rte_red.c                           |   6 +
 lib/sched/rte_sched.c                         |  15 +
 lib/sched/version.map                         |  30 -
 lib/security/rte_security.c                   |  20 +
 lib/security/version.map                      |  37 --
 lib/stack/rte_stack.c                         |   3 +
 lib/stack/version.map                         |   9 -
 lib/table/rte_swx_table_em.c                  |   2 +
 lib/table/rte_swx_table_learner.c             |  10 +
 lib/table/rte_swx_table_selector.c            |   6 +
 lib/table/rte_swx_table_wm.c                  |   1 +
 lib/table/rte_table_acl.c                     |   1 +
 lib/table/rte_table_array.c                   |   1 +
 lib/table/rte_table_hash_cuckoo.c             |   1 +
 lib/table/rte_table_hash_ext.c                |   1 +
 lib/table/rte_table_hash_key16.c              |   2 +
 lib/table/rte_table_hash_key32.c              |   2 +
 lib/table/rte_table_hash_key8.c               |   2 +
 lib/table/rte_table_hash_lru.c                |   1 +
 lib/table/rte_table_lpm.c                     |   1 +
 lib/table/rte_table_lpm_ipv6.c                |   1 +
 lib/table/rte_table_stub.c                    |   1 +
 lib/table/version.map                         |  53 --
 lib/telemetry/telemetry.c                     |   3 +
 lib/telemetry/telemetry_data.c                |  17 +
 lib/telemetry/telemetry_legacy.c              |   1 +
 lib/telemetry/version.map                     |  40 --
 lib/timer/rte_timer.c                         |  18 +
 lib/timer/version.map                         |  24 -
 lib/vhost/socket.c                            |  16 +
 lib/vhost/vdpa.c                              |  11 +
 lib/vhost/version.map                         | 111 ----
 lib/vhost/vhost.c                             |  41 ++
 lib/vhost/vhost_crypto.c                      |   6 +
 lib/vhost/vhost_user.c                        |   2 +
 lib/vhost/virtio_net.c                        |   7 +
 523 files changed, 4654 insertions(+), 6507 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 delete mode 100644 buildtools/map_to_win.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100755 devtools/check-symbol-change.sh
 delete mode 100755 devtools/check-symbol-maps.sh
 delete mode 100755 devtools/update-abi.sh
 delete mode 100755 devtools/update_version_map_abi.py
 delete mode 100644 drivers/baseband/acc/version.map
 delete mode 100644 drivers/baseband/fpga_5gnr_fec/version.map
 delete mode 100644 drivers/baseband/fpga_lte_fec/version.map
 delete mode 100644 drivers/bus/auxiliary/version.map
 delete mode 100644 drivers/bus/cdx/version.map
 delete mode 100644 drivers/bus/dpaa/version.map
 delete mode 100644 drivers/bus/fslmc/version.map
 delete mode 100644 drivers/bus/ifpga/version.map
 delete mode 100644 drivers/bus/pci/version.map
 delete mode 100644 drivers/bus/platform/version.map
 delete mode 100644 drivers/bus/uacce/version.map
 delete mode 100644 drivers/bus/vdev/version.map
 delete mode 100644 drivers/bus/vmbus/version.map
 delete mode 100644 drivers/common/cnxk/version.map
 delete mode 100644 drivers/common/cpt/version.map
 delete mode 100644 drivers/common/dpaax/version.map
 delete mode 100644 drivers/common/ionic/version.map
 delete mode 100644 drivers/common/mlx5/version.map
 delete mode 100644 drivers/common/mvep/version.map
 delete mode 100644 drivers/common/nfp/version.map
 delete mode 100644 drivers/common/nitrox/version.map
 delete mode 100644 drivers/common/octeontx/version.map
 delete mode 100644 drivers/common/sfc_efx/version.map
 delete mode 100644 drivers/crypto/cnxk/version.map
 delete mode 100644 drivers/crypto/dpaa2_sec/version.map
 delete mode 100644 drivers/crypto/dpaa_sec/version.map
 delete mode 100644 drivers/crypto/octeontx/version.map
 delete mode 100644 drivers/crypto/scheduler/version.map
 delete mode 100644 drivers/dma/cnxk/version.map
 delete mode 100644 drivers/event/cnxk/version.map
 delete mode 100644 drivers/event/dlb2/version.map
 delete mode 100644 drivers/mempool/cnxk/version.map
 delete mode 100644 drivers/mempool/dpaa/version.map
 delete mode 100644 drivers/mempool/dpaa2/version.map
 delete mode 100644 drivers/net/atlantic/version.map
 delete mode 100644 drivers/net/bnxt/version.map
 delete mode 100644 drivers/net/bonding/version.map
 delete mode 100644 drivers/net/cnxk/version.map
 delete mode 100644 drivers/net/dpaa/version.map
 delete mode 100644 drivers/net/dpaa2/version.map
 delete mode 100644 drivers/net/intel/i40e/version.map
 delete mode 100644 drivers/net/intel/iavf/version.map
 delete mode 100644 drivers/net/intel/ice/version.map
 delete mode 100644 drivers/net/intel/idpf/version.map
 delete mode 100644 drivers/net/intel/ipn3ke/version.map
 delete mode 100644 drivers/net/intel/ixgbe/version.map
 delete mode 100644 drivers/net/mlx5/version.map
 delete mode 100644 drivers/net/octeontx/version.map
 delete mode 100644 drivers/net/ring/version.map
 delete mode 100644 drivers/net/softnic/version.map
 delete mode 100644 drivers/net/vhost/version.map
 delete mode 100644 drivers/power/kvm_vm/version.map
 delete mode 100644 drivers/raw/cnxk_rvu_lf/version.map
 delete mode 100644 drivers/raw/ifpga/version.map
 delete mode 100644 drivers/version.map
 delete mode 100644 lib/acl/version.map
 delete mode 100644 lib/argparse/version.map
 delete mode 100644 lib/bbdev/version.map
 delete mode 100644 lib/bitratestats/version.map
 delete mode 100644 lib/bpf/version.map
 delete mode 100644 lib/cfgfile/version.map
 delete mode 100644 lib/cmdline/version.map
 delete mode 100644 lib/compressdev/version.map
 delete mode 100644 lib/cryptodev/version.map
 delete mode 100644 lib/dispatcher/version.map
 delete mode 100644 lib/distributor/version.map
 delete mode 100644 lib/dmadev/version.map
 delete mode 100644 lib/eal/version.map
 delete mode 100644 lib/efd/version.map
 delete mode 100644 lib/ethdev/version.map
 delete mode 100644 lib/eventdev/version.map
 delete mode 100644 lib/fib/version.map
 delete mode 100644 lib/gpudev/version.map
 delete mode 100644 lib/graph/version.map
 delete mode 100644 lib/gro/version.map
 delete mode 100644 lib/gso/version.map
 delete mode 100644 lib/hash/version.map
 delete mode 100644 lib/ip_frag/version.map
 delete mode 100644 lib/ipsec/version.map
 delete mode 100644 lib/jobstats/version.map
 delete mode 100644 lib/kvargs/version.map
 delete mode 100644 lib/latencystats/version.map
 delete mode 100644 lib/log/version.map
 delete mode 100644 lib/lpm/version.map
 delete mode 100644 lib/mbuf/version.map
 delete mode 100644 lib/member/version.map
 delete mode 100644 lib/mempool/version.map
 delete mode 100644 lib/meter/version.map
 delete mode 100644 lib/metrics/version.map
 delete mode 100644 lib/mldev/version.map
 delete mode 100644 lib/net/version.map
 delete mode 100644 lib/node/version.map
 delete mode 100644 lib/pcapng/version.map
 delete mode 100644 lib/pci/version.map
 delete mode 100644 lib/pdcp/version.map
 delete mode 100644 lib/pdump/version.map
 delete mode 100644 lib/pipeline/version.map
 delete mode 100644 lib/port/version.map
 delete mode 100644 lib/power/version.map
 delete mode 100644 lib/rawdev/version.map
 delete mode 100644 lib/rcu/version.map
 delete mode 100644 lib/regexdev/version.map
 delete mode 100644 lib/reorder/version.map
 delete mode 100644 lib/rib/version.map
 delete mode 100644 lib/ring/version.map
 delete mode 100644 lib/sched/version.map
 delete mode 100644 lib/security/version.map
 delete mode 100644 lib/stack/version.map
 delete mode 100644 lib/table/version.map
 delete mode 100644 lib/telemetry/version.map
 delete mode 100644 lib/timer/version.map
 delete mode 100644 lib/vhost/version.map

-- 
2.48.1
#7 lore raw

RFC v3 1/8 lib: remove incorrect exported symbols

Declaring inline helpers in version.map is unnecessary. There is no exported symbol and this will probably be treated as an error by MSVC linker.

eal_log_journal has no implementation and can be removed.

---
 lib/eventdev/version.map | 12 ------------
 lib/graph/version.map    | 17 -----------------
 lib/ipsec/version.map    |  4 ----
 lib/log/log_internal.h   |  3 ---
 lib/log/version.map      |  1 -
 lib/pdcp/version.map     |  4 ----
 lib/regexdev/version.map |  2 --
 lib/vhost/version.map    |  1 -
 8 files changed, 44 deletions(-)
lib/eventdev/version.map +0 -12
index 44687255cb..bff08d6a62 100644
@@ -102,9 +102,6 @@ DPDK_25 {
 	rte_event_timer_adapter_stats_get;
 	rte_event_timer_adapter_stats_reset;
 	rte_event_timer_adapter_stop;
-	rte_event_timer_arm_burst;
-	rte_event_timer_arm_tmo_tick_burst;
-	rte_event_timer_cancel_burst;
 	rte_event_vector_pool_create;
 
 	local: *;
@@ -149,9 +146,7 @@ EXPERIMENTAL {
 	__rte_eventdev_trace_port_profile_switch;
 
 	# added in 24.11
-	rte_event_port_preschedule_modify;
 	__rte_eventdev_trace_port_preschedule_modify;
-	rte_event_port_preschedule;
 	__rte_eventdev_trace_port_preschedule;
 
 	# added in 25.03
@@ -166,14 +161,7 @@ INTERNAL {
 	event_dev_probing_finish;
 	rte_event_logtype;
 	rte_event_pmd_allocate;
-	rte_event_pmd_get_named_dev;
-	rte_event_pmd_is_valid_dev;
-	rte_event_pmd_pci_probe;
-	rte_event_pmd_pci_probe_named;
-	rte_event_pmd_pci_remove;
 	rte_event_pmd_release;
 	rte_event_pmd_selftest_seqn_dynfield_offset;
-	rte_event_pmd_vdev_init;
-	rte_event_pmd_vdev_uninit;
 	rte_eventdevs;
 };
lib/graph/version.map +0 -17
index 44fadc00fd..d03d44434d 100644
@@ -27,9 +27,7 @@ DPDK_25 {
 	rte_graph_node_get;
 	rte_graph_node_get_by_name;
 	rte_graph_obj_dump;
-	rte_graph_walk;
 	rte_graph_worker_model_get;
-	rte_graph_worker_model_no_check_get;
 	rte_graph_worker_model_set;
 	rte_node_clone;
 	rte_node_dump;
@@ -37,25 +35,10 @@ DPDK_25 {
 	rte_node_edge_get;
 	rte_node_edge_shrink;
 	rte_node_edge_update;
-	rte_node_enqueue;
-	rte_node_enqueue_next;
-	rte_node_enqueue_x1;
-	rte_node_enqueue_x2;
-	rte_node_enqueue_x4;
 	rte_node_from_name;
 	rte_node_id_to_name;
 	rte_node_list_dump;
 	rte_node_max_count;
-	rte_node_next_stream_get;
-	rte_node_next_stream_move;
-	rte_node_next_stream_put;
 
 	local: *;
 };
-
-EXPERIMENTAL {
-	global:
-
-	# added in 24.11
-	rte_node_xstat_increment;
-};
lib/ipsec/version.map +0 -4
index 308f9d2e0d..47e3df5bb6 100644
@@ -1,9 +1,6 @@
 DPDK_25 {
 	global:
 
-	rte_ipsec_pkt_crypto_group;
-	rte_ipsec_pkt_crypto_prepare;
-	rte_ipsec_pkt_process;
 	rte_ipsec_sa_fini;
 	rte_ipsec_sa_init;
 	rte_ipsec_sa_size;
@@ -14,7 +11,6 @@ DPDK_25 {
 	rte_ipsec_sad_destroy;
 	rte_ipsec_sad_find_existing;
 	rte_ipsec_sad_lookup;
-	rte_ipsec_ses_from_crypto;
 	rte_ipsec_session_prepare;
 	rte_ipsec_telemetry_sa_add;
 	rte_ipsec_telemetry_sa_del;
lib/log/log_internal.h +0 -3
index bba7041ea3..525e1397fd 100644
@@ -29,9 +29,6 @@ int eal_log_save_pattern(const char *pattern, uint32_t level);
 __rte_internal
 int eal_log_syslog(const char *name);
 
-__rte_internal
-int eal_log_journal(const char *opt);
-
 /*
  * Convert log level to string.
  */
lib/log/version.map +0 -1
index 09d8a4289b..603be493b3 100644
@@ -27,7 +27,6 @@ INTERNAL {
 
 	eal_log_color;
 	eal_log_init;
-	eal_log_journal; # WINDOWS_NO_EXPORT
 	eal_log_level2str;
 	eal_log_save_pattern;
 	eal_log_save_regexp;
lib/pdcp/version.map +0 -4
index 9c02303c45..72b2d4729b 100644
@@ -3,13 +3,9 @@ EXPERIMENTAL {
 
 	# added in 23.07
 	rte_pdcp_control_pdu_create;
-	rte_pdcp_en_from_cop;
 	rte_pdcp_entity_establish;
 	rte_pdcp_entity_release;
 	rte_pdcp_entity_suspend;
-	rte_pdcp_pkt_post_process;
-	rte_pdcp_pkt_pre_process;
-	rte_pdcp_pkt_crypto_group;
 	rte_pdcp_t_reordering_expiry_handle;
 
 	local: *;
lib/regexdev/version.map +0 -2
index 4c0435180c..713a800ca4 100644
@@ -7,9 +7,7 @@ EXPERIMENTAL {
 	rte_regexdev_close;
 	rte_regexdev_configure;
 	rte_regexdev_count;
-	rte_regexdev_dequeue_burst;
 	rte_regexdev_dump;
-	rte_regexdev_enqueue_burst;
 	rte_regexdev_get_dev_id;
 	rte_regexdev_info_get;
 	rte_regexdev_queue_pair_setup;
lib/vhost/version.map +0 -1
index 8333e100ed..c044bb714e 100644
@@ -61,7 +61,6 @@ DPDK_25 {
 	rte_vhost_set_last_inflight_io_packed;
 	rte_vhost_set_last_inflight_io_split;
 	rte_vhost_set_vring_base;
-	rte_vhost_va_from_guest_pa;
 	rte_vhost_vring_call;
 	rte_vhost_vring_call_nonblock;
 	rte_vhost_vring_stats_get;
Signature · 1 line
2.48.1
#8 lore raw

RFC v3 2/8 drivers: remove incorrect exported symbols

In reply to David Marchand

Declaring inline helpers in version.map is unnecessary. There is no exported symbol and this will probably be treated as an error by MSVC linker.

rte_dpaa2_dev_type is an enum token.
roc_se_ctx_swap has no implementation (leftover from a previous rework) and can be removed.

---
 drivers/bus/dpaa/version.map    | 1 -
 drivers/bus/fslmc/version.map   | 2 --
 drivers/common/cnxk/roc_se.h    | 1 -
 drivers/common/cnxk/version.map | 2 --
 4 files changed, 6 deletions(-)
drivers/bus/dpaa/version.map +0 -1
index a17d57632e..8f09b72757 100644
@@ -18,7 +18,6 @@ INTERNAL {
 	dpaa_update_link_speed;
 	dpaa_intr_disable;
 	dpaa_intr_enable;
-	dpaa_seqn;
 	dpaa_svr_family;
 	dpaa_update_link_status;
 	fman_dealloc_bufs_mask_hi;
drivers/bus/fslmc/version.map +0 -2
index 2c36895285..ba3c7f36e3 100644
@@ -22,7 +22,6 @@ INTERNAL {
 	dpaa2_get_mcp_ptr;
 	dpaa2_io_portal;
 	dpaa2_seqn_dynfield_offset;
-	dpaa2_seqn;
 	dpaa2_svr_family;
 	dpbp_disable;
 	dpbp_enable;
@@ -108,7 +107,6 @@ INTERNAL {
 	qbman_swp_push_set;
 	qbman_swp_release;
 	rte_dpaa2_alloc_dpci_dev;
-	rte_dpaa2_dev_type;
 	rte_dpaa2_free_dpci_dev;
 	rte_dpaa2_intr_disable;
 	rte_dpaa2_intr_enable;
drivers/common/cnxk/roc_se.h +0 -1
index ede8d69c0e..f2c4056169 100644
@@ -405,7 +405,6 @@ int __roc_api roc_se_auth_key_set(struct roc_se_ctx *se_ctx, roc_se_auth_type ty
 int __roc_api roc_se_ciph_key_set(struct roc_se_ctx *se_ctx, roc_se_cipher_type type,
 				  const uint8_t *key, uint16_t key_len);
 
-void __roc_api roc_se_ctx_swap(struct roc_se_ctx *se_ctx);
 void __roc_api roc_se_ctx_init(struct roc_se_ctx *se_ctx);
 
 void __roc_api roc_se_hmac_opad_ipad_gen(roc_se_auth_type auth_type, const uint8_t *key,
drivers/common/cnxk/version.map +0 -2
index cdbfc1d39a..7f40dcced2 100644
@@ -164,7 +164,6 @@ INTERNAL {
 	roc_mcs_custom_tag_cfg_get;
 	roc_mcs_dev_init;
 	roc_mcs_dev_fini;
-	roc_mcs_dev_get;
 	roc_mcs_event_cb_register;
 	roc_mcs_event_cb_unregister;
 	roc_mcs_flowid_entry_enable;
@@ -546,7 +545,6 @@ INTERNAL {
 	roc_tim_lf_enable;
 	roc_tim_lf_free;
 	roc_tim_lf_interval;
-	roc_se_ctx_swap;
 	roc_ree_af_reg_read;
 	roc_ree_af_reg_write;
 	roc_ree_config_lf;
Signature · 1 line
2.48.1
#9 lore raw

RFC v3 3/8 eal: rework function versioning macros

In reply to David Marchand

For versioning symbols:
- MSVC uses pragmas on the symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a symbol is just a call to a single macro:
- RTE_VERSION_SYMBOL (resp. RTE_VERSION_EXPERIMENTAL_SYMBOL), for keeping an old implementation code under a versioned function (resp. experimental function),
- RTE_DEFAULT_SYMBOL, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Update lib/net accordingly.

---
Changes since RFC v2:

Changes since RFC v1:
- renamed and prefixed macros,
- reindented in prevision of second patch,

---
 doc/guides/contributing/abi_versioning.rst | 165 +++++----------------
 lib/eal/include/rte_function_versioning.h  |  96 +++++-------
 lib/net/net_crc.h                          |  15 --
 lib/net/rte_net_crc.c                      |  28 +---
 4 files changed, 77 insertions(+), 227 deletions(-)
doc/guides/contributing/abi_versioning.rst +36 -129
index 7afd1c1886..88dd776b4c 100644
@@ -138,27 +138,20 @@ macros are used in conjunction with the ``version.map`` file for
 a given library to allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
-The macros exported are:
+The macros are:
 
-* ``VERSION_SYMBOL(b, e, n)``: Creates a symbol version table entry binding
-  versioned symbol ``b@DPDK_n`` to the internal function ``be``.
+* ``RTE_VERSION_SYMBOL(ver, type, name, args``: Creates a symbol version table
+  entry binding symbol ``<name>@DPDK_<ver>`` to the internal function name
+  ``<name>_v<ver>``.
 
-* ``BIND_DEFAULT_SYMBOL(b, e, n)``: Creates a symbol version entry instructing
-  the linker to bind references to symbol ``b`` to the internal symbol
-  ``be``.
+* ``RTE_DEFAULT_SYMBO(ver, type, name, args)``: Creates a symbol version entry
+  instructing the linker to bind references to symbol ``<name>`` to the internal
+  symbol ``<name>_v<ver>``.
 
-* ``MAP_STATIC_SYMBOL(f, p)``: Declare the prototype ``f``, and map it to the
-  fully qualified function ``p``, so that if a symbol becomes versioned, it
-  can still be mapped back to the public symbol name.
-
-* ``__vsym``:  Annotation to be used in a declaration of the internal symbol
-  ``be`` to signal that it is being used as an implementation of a particular
-  version of symbol ``b``.
-
-* ``VERSION_SYMBOL_EXPERIMENTAL(b, e)``: Creates a symbol version table entry
-  binding versioned symbol ``b@EXPERIMENTAL`` to the internal function ``be``.
-  The macro is used when a symbol matures to become part of the stable ABI, to
-  provide an alias to experimental until the next major ABI version.
+* ``RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args)``:  Similar to RTE_VERSION_SYMBOL
+  but for experimental API symbols. The macro is used when a symbol matures
+  to become part of the stable ABI, to provide an alias to experimental
+  until the next major ABI version.
 
 .. _example_abi_macro_usage:
 
@@ -277,49 +270,36 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
+the function return type, and the function name and its arguments.
 
 .. code-block:: c
 
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
         ...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ }
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new
-function name, with the ``v22`` suffix, and implement it appropriately.
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
 .. code-block:: c
 
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))
    {
         struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
 
@@ -328,35 +308,9 @@ function name, with the ``v22`` suffix, and implement it appropriately.
         return ctx;
    }
 
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
-
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +319,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -519,26 +440,17 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
    ...
    }
 
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
-
-   struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   RTE_VERSION_EXPERIMENTAL_SYMBOL(struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
       return rte_acl_create(param);
    }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +476,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
@@ -616,10 +521,10 @@ Next remove the corresponding versioned export.
 
 .. code-block:: c
 
- -VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
 
 
-Note that the internal function definition could also be removed, but its used
+Note that the internal function definition must also be removed, but its used
 in our example by the newer version ``v22``, so we leave it in place and declare
 it as static. This is a coding style choice.
 
@@ -663,16 +568,18 @@ In the case of our map above, it would transform to look as follows
         local: *;
  };
 
-Then any uses of BIND_DEFAULT_SYMBOL that pointed to the old node should be
+Then any uses of RTE_DEFAULT_SYMBOL that pointed to the old node should be
 updated to point to the new version node in any header files for all affected
 symbols.
 
 .. code-block:: c
 
- -BIND_DEFAULT_SYMBOL(rte_acl_create, _v21, 21);
- +BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+ -RTE_DEFAULT_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))
+ -RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))
 
-Lastly, any VERSION_SYMBOL macros that point to the old version nodes
+Lastly, any RTE_VERSION_SYMBOL macros that point to the old version nodes
 should be removed, taking care to preserve any code that is shared
 with the new version node.
 
lib/eal/include/rte_function_versioning.h +34 -62

122 lines not on this page · raw message

lib/net/net_crc.h +0 -15
index 4930e2f0b3..320b0edca8 100644
@@ -7,21 +7,6 @@
 
 #include "rte_net_crc.h"
 
-void
-rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg);
-
-struct rte_net_crc *
-rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
-	enum rte_net_crc_type type);
-
-uint32_t
-rte_net_crc_calc_v25(const void *data,
-	uint32_t data_len, enum rte_net_crc_type type);
-
-uint32_t
-rte_net_crc_calc_v26(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len);
-
 /*
  * Different implementations of CRC
  */
lib/net/rte_net_crc.c +7 -21
index 2fb3eec231..1943d46295 100644
@@ -345,8 +345,7 @@ handlers_init(enum rte_net_crc_alg alg)
 
 /* Public API */
 
-void
-rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
+RTE_VERSION_SYMBOL(25, void, rte_net_crc_set_alg, (enum rte_net_crc_alg alg))
 {
 	handlers = NULL;
 	if (max_simd_bitwidth == 0)
@@ -373,10 +372,9 @@ rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
 	if (handlers == NULL)
 		handlers = handlers_scalar;
 }
-VERSION_SYMBOL(rte_net_crc_set_alg, _v25, 25);
 
-struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
-	enum rte_net_crc_type type)
+RTE_DEFAULT_SYMBOL(26, struct rte_net_crc *, rte_net_crc_set_alg, (enum rte_net_crc_alg alg,
+	enum rte_net_crc_type type))
 {
 	uint16_t max_simd_bitwidth;
 	struct rte_net_crc *crc;
@@ -414,20 +412,14 @@ struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
 	}
 	return crc;
 }
-BIND_DEFAULT_SYMBOL(rte_net_crc_set_alg, _v26, 26);
-MAP_STATIC_SYMBOL(struct rte_net_crc *rte_net_crc_set_alg(
-	enum rte_net_crc_alg alg, enum rte_net_crc_type type),
-	rte_net_crc_set_alg_v26);
 
 void rte_net_crc_free(struct rte_net_crc *crc)
 {
 	rte_free(crc);
 }
 
-uint32_t
-rte_net_crc_calc_v25(const void *data,
-	uint32_t data_len,
-	enum rte_net_crc_type type)
+RTE_VERSION_SYMBOL(25, uint32_t, rte_net_crc_calc, (const void *data, uint32_t data_len,
+	enum rte_net_crc_type type))
 {
 	uint32_t ret;
 	rte_net_crc_handler f_handle;
@@ -437,18 +429,12 @@ rte_net_crc_calc_v25(const void *data,
 
 	return ret;
 }
-VERSION_SYMBOL(rte_net_crc_calc, _v25, 25);
 
-uint32_t
-rte_net_crc_calc_v26(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len)
+RTE_DEFAULT_SYMBOL(26, uint32_t, rte_net_crc_calc, (const struct rte_net_crc *ctx,
+	const void *data, const uint32_t data_len))
 {
 	return handlers_dpdk26[ctx->alg].f[ctx->type](data, data_len);
 }
-BIND_DEFAULT_SYMBOL(rte_net_crc_calc, _v26, 26);
-MAP_STATIC_SYMBOL(uint32_t rte_net_crc_calc(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len),
-	rte_net_crc_calc_v26);
 
 /* Call initialisation helpers for all crc algorithm handlers */
 RTE_INIT(rte_net_crc_init)
Signature · 1 line
2.48.1
#10 lore raw

Re: [RFC v3 3/8] eal: rework function versioning macros

Quoted 16 lines · David Marchand

For versioning symbols:
- MSVC uses pragmas on the symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a symbol is just a call to a single macro:
- RTE_VERSION_SYMBOL (resp. RTE_VERSION_EXPERIMENTAL_SYMBOL), for keeping an old implementation code under a versioned function (resp. experimental function),
- RTE_DEFAULT_SYMBOL, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Quoted 4 lines

Update lib/net accordingly.

---

A few review comments on the docs inline below. See nothing wrong from initial review of code changes.

/Bruce

Quoted 18 lines

Changes since RFC v2:

Changes since RFC v1:
- renamed and prefixed macros,
- reindented in prevision of second patch,

---
 doc/guides/contributing/abi_versioning.rst | 165 +++++----------------
 lib/eal/include/rte_function_versioning.h  |  96 +++++-------
 lib/net/net_crc.h                          |  15 --
 lib/net/rte_net_crc.c                      |  28 +---
 4 files changed, 77 insertions(+), 227 deletions(-)
doc/guides/contributing/abi_versioning.rst +0 -0
index 7afd1c1886..88dd776b4c 100644

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 143

Quoted 9 lines
doc/guides/contributing/abi_versioning.rst +2 -3
@@ -138,27 +138,20 @@ macros are used in conjunction with the ``version.map`` file for
 a given library to allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
-The macros exported are:
+The macros are:
 
-* ``VERSION_SYMBOL(b, e, n)``: Creates a symbol version table entry binding
-  versioned symbol ``b@DPDK_n`` to the internal function ``be``.
+* ``RTE_VERSION_SYMBOL(ver, type, name, args``: Creates a symbol version table

Missing closing brace .........................^ here

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 147

Quoted 7 lines
doc/guides/contributing/abi_versioning.rst +3 -3
+  entry binding symbol ``<name>@DPDK_<ver>`` to the internal function name
+  ``<name>_v<ver>``.
 
-* ``BIND_DEFAULT_SYMBOL(b, e, n)``: Creates a symbol version entry instructing
-  the linker to bind references to symbol ``b`` to the internal symbol
-  ``be``.
+* ``RTE_DEFAULT_SYMBO(ver, type, name, args)``: Creates a symbol version entry

s/SYMBO/SYMBOL/

Quoted 9 lines
doc/guides/contributing/abi_versioning.rst +2 -6
+  instructing the linker to bind references to symbol ``<name>`` to the internal
+  symbol ``<name>_v<ver>``.
 
-* ``MAP_STATIC_SYMBOL(f, p)``: Declare the prototype ``f``, and map it to the
-  fully qualified function ``p``, so that if a symbol becomes versioned, it
-  can still be mapped back to the public symbol name.
-
-* ``__vsym``:  Annotation to be used in a declaration of the internal symbol
-  ``be`` to signal that it is being used as an implementation of a particular

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 154

Quoted 10 lines
doc/guides/contributing/abi_versioning.rst +4 -6
-  version of symbol ``b``.
-
-* ``VERSION_SYMBOL_EXPERIMENTAL(b, e)``: Creates a symbol version table entry
-  binding versioned symbol ``b@EXPERIMENTAL`` to the internal function ``be``.
-  The macro is used when a symbol matures to become part of the stable ABI, to
-  provide an alias to experimental until the next major ABI version.
+* ``RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args)``:  Similar to RTE_VERSION_SYMBOL
+  but for experimental API symbols. The macro is used when a symbol matures
+  to become part of the stable ABI, to provide an alias to experimental
+  until the next major ABI version.

Just to clarify - this is where we create two names/aliases for the one function, so it can be found either as an experimental version or a stable one, right? In that way it's actually quite different from RTE_VERSION_SYMBOL which is used to define a *NEW" version of an existing function, i.e. two functions rather than one function with two names.

Quoted 51 lines
doc/guides/contributing/abi_versioning.rst +7 -21
 .. _example_abi_macro_usage:
 
@@ -277,49 +270,36 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
+the function return type, and the function name and its arguments.
 
 .. code-block:: c
 
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ }
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new

doc/guides/contributing/abi_versioning.rst list of exported symbols when DPDK is compiled as a shared library. · line 302

Quoted 10 lines
doc/guides/contributing/abi_versioning.rst +4 -3
-function name, with the ``v22`` suffix, and implement it appropriately.
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
 .. code-block:: c
 
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))

Not directly relevant to the changes in this patch, but since this is documentation which doesn't actually need to be based on a real-life example, we should maybe come up with example functions which are short and don't need line wrapping. This example would be just as effective/instructive with a return value of "int" and parameter type without a "const" qualifier. :-)

Quoted 131 lines
    {
         struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
doc/guides/contributing/abi_versioning.rst +6 -81
@@ -328,35 +308,9 @@ function name, with the ``v22`` suffix, and implement it appropriately.
         return ctx;
    }
 
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
-
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +319,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -519,26 +440,17 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
...
    }
 
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
-
-   struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   RTE_VERSION_EXPERIMENTAL_SYMBOL(struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
       return rte_acl_create(param);
    }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +476,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API

doc/guides/contributing/abi_versioning.rst Next remove the corresponding versioned export. · line 527

Quoted 9 lines
doc/guides/contributing/abi_versioning.rst +2 -2
@@ -616,10 +521,10 @@ Next remove the corresponding versioned export.
 
 .. code-block:: c
 
- -VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
 
 
-Note that the internal function definition could also be removed, but its used
+Note that the internal function definition must also be removed, but its used

its -> it's (or "it is" if you want the longer version).

Quoted 144 lines
doc/guides/contributing/abi_versioning.rst +6 -4
 in our example by the newer version ``v22``, so we leave it in place and declare
 it as static. This is a coding style choice.
 
@@ -663,16 +568,18 @@ In the case of our map above, it would transform to look as follows
         local: *;
  };
 
-Then any uses of BIND_DEFAULT_SYMBOL that pointed to the old node should be
+Then any uses of RTE_DEFAULT_SYMBOL that pointed to the old node should be
 updated to point to the new version node in any header files for all affected
 symbols.
 
 .. code-block:: c
 
- -BIND_DEFAULT_SYMBOL(rte_acl_create, _v21, 21);
- +BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+ -RTE_DEFAULT_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))
+ -RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))
 
-Lastly, any VERSION_SYMBOL macros that point to the old version nodes
+Lastly, any RTE_VERSION_SYMBOL macros that point to the old version nodes
 should be removed, taking care to preserve any code that is shared
 with the new version node.
 
lib/eal/include/rte_function_versioning.h +26 -62
index eb6dd2bc17..0020ce4885 100644
@@ -11,8 +11,6 @@
 #error Use of function versioning disabled, is "use_function_versioning=true" in meson.build?
 #endif
 
-#ifdef RTE_BUILD_SHARED_LIB
-
 /*
  * Provides backwards compatibility when updating exported functions.
  * When a symbol is exported from a library to provide an API, it also provides a
@@ -20,80 +18,54 @@
  * arguments, etc.  On occasion that function may need to change to accommodate
  * new functionality, behavior, etc.  When that occurs, it is desirable to
  * allow for backwards compatibility for a time with older binaries that are
- * dynamically linked to the dpdk.  To support that, the __vsym and
- * VERSION_SYMBOL macros are created.  They, in conjunction with the
- * version.map file for a given library allow for multiple versions of
- * a symbol to exist in a shared library so that older binaries need not be
- * immediately recompiled.
- *
- * Refer to the guidelines document in the docs subdirectory for details on the
- * use of these macros
+ * dynamically linked to the dpdk.
  */
 
-/*
- * Macro Parameters:
- * b - function base name
- * e - function version extension, to be concatenated with base name
- * n - function symbol version string to be applied
- * f - function prototype
- * p - full function symbol name
- */
+#ifdef RTE_BUILD_SHARED_LIB
 
 /*
- * VERSION_SYMBOL
- * Creates a symbol version table entry binding symbol <b>@DPDK_<n> to the internal
- * function name <b><e>
+ * RTE_VERSION_SYMBOL
+ * Creates a symbol version table entry binding symbol <name>@DPDK_<ver> to the internal
+ * function name <name>_v<ver>.
  */
-#define VERSION_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@DPDK_" RTE_STR(n))
+#define RTE_VERSION_SYMBOL(ver, type, name, args) \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args
 
 /*
- * VERSION_SYMBOL_EXPERIMENTAL
- * Creates a symbol version table entry binding the symbol <b>@EXPERIMENTAL to the internal
- * function name <b><e>. The macro is used when a symbol matures to become part of the stable ABI,
- * to provide an alias to experimental for some time.
+ * RTE_VERSION_EXPERIMENTAL_SYMBOL
+ * Similar to RTE_VERSION_SYMBOL but for experimental API symbols.
+ * This is mainly used for keeping compatibility for symbols that get promoted to stable ABI.
  */
-#define VERSION_SYMBOL_EXPERIMENTAL(b, e) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@EXPERIMENTAL")
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) \
+__asm__(".symver " RTE_STR(name) "_exp, " RTE_STR(name) "@EXPERIMENTAL") \
+__rte_used type name ## _exp args; \
+type name ## _exp args
 
 /*
- * BIND_DEFAULT_SYMBOL
+ * RTE_DEFAULT_SYMBOL
  * Creates a symbol version entry instructing the linker to bind references to
- * symbol <b> to the internal symbol <b><e>
+ * symbol <name> to the internal symbol <name>_v<ver>.
  */
-#define BIND_DEFAULT_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@@DPDK_" RTE_STR(n))
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args
 
-/*
- * __vsym
- * Annotation to be used in declaration of the internal symbol <b><e> to signal
- * that it is being used as an implementation of a particular version of symbol
- * <b>.
- */
-#define __vsym __rte_used
+#else /* !RTE_BUILD_SHARED_LIB */
 
-/*
- * MAP_STATIC_SYMBOL
- * If a function has been bifurcated into multiple versions, none of which
- * are defined as the exported symbol name in the map file, this macro can be
- * used to alias a specific version of the symbol to its exported name.  For
- * example, if you have 2 versions of a function foo_v1 and foo_v2, where the
- * former is mapped to foo@DPDK_1 and the latter is mapped to foo@DPDK_2 when
- * building a shared library, this macro can be used to map either foo_v1 or
- * foo_v2 to the symbol foo when building a static library, e.g.:
- * MAP_STATIC_SYMBOL(void foo(), foo_v2);
- */
-#define MAP_STATIC_SYMBOL(f, p)
+#define RTE_VERSION_SYMBOL(ver, type, name, args) \
+type name ## _v ## ver args; \
+type name ## _v ## ver args
 
-#else
-/*
- * No symbol versioning in use
- */
-#define VERSION_SYMBOL(b, e, n)
-#define VERSION_SYMBOL_EXPERIMENTAL(b, e)
-#define __vsym
-#define BIND_DEFAULT_SYMBOL(b, e, n)
-#define MAP_STATIC_SYMBOL(f, p) f __attribute__((alias(RTE_STR(p))))
-/*
- * RTE_BUILD_SHARED_LIB=n
- */
-#endif

lib/eal/include/rte_function_versioning.h line 71

Quoted 10 lines
lib/eal/include/rte_function_versioning.h +8 -0
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) \
+type name ## _exp args; \
+type name ## _exp args
+
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) \
+type name args
+
+#endif /* RTE_BUILD_SHARED_LIB */
 
 #endif /* _RTE_FUNCTION_VERSIONING_H_ */

Changes to this file look ok to me.

<snip>

#11 lore raw

Re: [RFC v3 3/8] eal: rework function versioning macros

Quoted 20 lines · Bruce Richardson
Quoted 5 lines
doc/guides/contributing/abi_versioning.rst +0 -0
index 7afd1c1886..88dd776b4c 100644

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 143

Quoted 9 lines
doc/guides/contributing/abi_versioning.rst +2 -3
@@ -138,27 +138,20 @@ macros are used in conjunction with the ``version.map`` file for
 a given library to allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
-The macros exported are:
+The macros are:
 
-* ``VERSION_SYMBOL(b, e, n)``: Creates a symbol version table entry binding
-  versioned symbol ``b@DPDK_n`` to the internal function ``be``.
+* ``RTE_VERSION_SYMBOL(ver, type, name, args``: Creates a symbol version table

Missing closing brace .........................^ here

Quoted 3 lines
doc/guides/contributing/abi_versioning.rst +2 -0
+  entry binding symbol ``<name>@DPDK_<ver>`` to the internal function name
+  ``<name>_v<ver>``.
 
Quoted 6 lines

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 147

Quoted 4 lines
doc/guides/contributing/abi_versioning.rst +1 -3
-* ``BIND_DEFAULT_SYMBOL(b, e, n)``: Creates a symbol version entry instructing
-  the linker to bind references to symbol ``b`` to the internal symbol
-  ``be``.
+* ``RTE_DEFAULT_SYMBO(ver, type, name, args)``: Creates a symbol version entry

s/SYMBO/SYMBOL/

Good catch thanks...

Quoted 18 lines
Quoted 18 lines
doc/guides/contributing/abi_versioning.rst +4 -12
+  instructing the linker to bind references to symbol ``<name>`` to the internal
+  symbol ``<name>_v<ver>``.
 
-* ``MAP_STATIC_SYMBOL(f, p)``: Declare the prototype ``f``, and map it to the
-  fully qualified function ``p``, so that if a symbol becomes versioned, it
-  can still be mapped back to the public symbol name.
-
-* ``__vsym``:  Annotation to be used in a declaration of the internal symbol
-  ``be`` to signal that it is being used as an implementation of a particular
-  version of symbol ``b``.
-
-* ``VERSION_SYMBOL_EXPERIMENTAL(b, e)``: Creates a symbol version table entry
-  binding versioned symbol ``b@EXPERIMENTAL`` to the internal function ``be``.
-  The macro is used when a symbol matures to become part of the stable ABI, to
-  provide an alias to experimental until the next major ABI version.
+* ``RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args)``:  Similar to RTE_VERSION_SYMBOL
+  but for experimental API symbols. The macro is used when a symbol matures
Quoted 8 lines

doc/guides/contributing/abi_versioning.rst macros are used in conjunction with the ``version.map`` file for · line 154

Quoted 2 lines
doc/guides/contributing/abi_versioning.rst +2 -0
+  to become part of the stable ABI, to provide an alias to experimental
+  until the next major ABI version.

Just to clarify - this is where we create two names/aliases for the one function, so it can be found either as an experimental version or a stable one, right? In that way it's actually quite different from RTE_VERSION_SYMBOL which is used to define a *NEW" version of an existing function, i.e. two functions rather than one function with two names.

I did not change the behavior, it is still mapping a symbol to an actual implementation (there is an example later in this doc). The previous description about an alias was probably inaccurate.

Quoted 58 lines
Quoted 58 lines
doc/guides/contributing/abi_versioning.rst +9 -22
 .. _example_abi_macro_usage:
 
@@ -277,49 +270,36 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
+the function return type, and the function name and its arguments.
 
 .. code-block:: c
 
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ }
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new
-function name, with the ``v22`` suffix, and implement it appropriately.
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
 .. code-block:: c
Quoted 11 lines

doc/guides/contributing/abi_versioning.rst list of exported symbols when DPDK is compiled as a shared library. · line 302

Quoted 4 lines
doc/guides/contributing/abi_versioning.rst +2 -2
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param,
+        int debug))

Not directly relevant to the changes in this patch, but since this is documentation which doesn't actually need to be based on a real-life example, we should maybe come up with example functions which are short and don't need line wrapping. This example would be just as effective/instructive with a return value of "int" and parameter type without a "const" qualifier. :-)

Yep, I'll simplify the example.

Quoted 135 lines
Quoted 135 lines
    {
         struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
doc/guides/contributing/abi_versioning.rst +6 -81
@@ -328,35 +308,9 @@ function name, with the ``v22`` suffix, and implement it appropriately.
         return ctx;
    }
 
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
-
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +319,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -519,26 +440,17 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   RTE_DEFAULT_SYMBOL(22, struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
...
    }
 
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
-
-   struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   RTE_VERSION_EXPERIMENTAL_SYMBOL(struct rte_acl_ctx *, rte_acl_create,
+        (const struct rte_acl_param *param))
    {
       return rte_acl_create(param);
    }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +476,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
@@ -616,10 +521,10 @@ Next remove the corresponding versioned export.
 
 .. code-block:: c
 
Quoted 8 lines

doc/guides/contributing/abi_versioning.rst Next remove the corresponding versioned export. · line 527

Quoted 6 lines
doc/guides/contributing/abi_versioning.rst +2 -2
- -VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
 
 
-Note that the internal function definition could also be removed, but its used
+Note that the internal function definition must also be removed, but its used

its -> it's (or "it is" if you want the longer version).

Ok, I'll fix this too.

Quoted 4 lines
Quoted 4 lines
doc/guides/contributing/abi_versioning.rst +0 -0
 in our example by the newer version ``v22``, so we leave it in place and declare
 it as static. This is a coding style choice.
 

[snip]

Quoted 127 lines
Quoted 127 lines
lib/eal/include/rte_function_versioning.h +34 -62
index eb6dd2bc17..0020ce4885 100644
@@ -11,8 +11,6 @@
 #error Use of function versioning disabled, is "use_function_versioning=true" in meson.build?
 #endif
 
-#ifdef RTE_BUILD_SHARED_LIB
-
 /*
  * Provides backwards compatibility when updating exported functions.
  * When a symbol is exported from a library to provide an API, it also provides a
@@ -20,80 +18,54 @@
  * arguments, etc.  On occasion that function may need to change to accommodate
  * new functionality, behavior, etc.  When that occurs, it is desirable to
  * allow for backwards compatibility for a time with older binaries that are
- * dynamically linked to the dpdk.  To support that, the __vsym and
- * VERSION_SYMBOL macros are created.  They, in conjunction with the
- * version.map file for a given library allow for multiple versions of
- * a symbol to exist in a shared library so that older binaries need not be
- * immediately recompiled.
- *
- * Refer to the guidelines document in the docs subdirectory for details on the
- * use of these macros
+ * dynamically linked to the dpdk.
  */
 
-/*
- * Macro Parameters:
- * b - function base name
- * e - function version extension, to be concatenated with base name
- * n - function symbol version string to be applied
- * f - function prototype
- * p - full function symbol name
- */
+#ifdef RTE_BUILD_SHARED_LIB
 
 /*
- * VERSION_SYMBOL
- * Creates a symbol version table entry binding symbol <b>@DPDK_<n> to the internal
- * function name <b><e>
+ * RTE_VERSION_SYMBOL
+ * Creates a symbol version table entry binding symbol <name>@DPDK_<ver> to the internal
+ * function name <name>_v<ver>.
  */
-#define VERSION_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@DPDK_" RTE_STR(n))
+#define RTE_VERSION_SYMBOL(ver, type, name, args) \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args
 
 /*
- * VERSION_SYMBOL_EXPERIMENTAL
- * Creates a symbol version table entry binding the symbol <b>@EXPERIMENTAL to the internal
- * function name <b><e>. The macro is used when a symbol matures to become part of the stable ABI,
- * to provide an alias to experimental for some time.
+ * RTE_VERSION_EXPERIMENTAL_SYMBOL
+ * Similar to RTE_VERSION_SYMBOL but for experimental API symbols.
+ * This is mainly used for keeping compatibility for symbols that get promoted to stable ABI.
  */
-#define VERSION_SYMBOL_EXPERIMENTAL(b, e) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@EXPERIMENTAL")
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) \
+__asm__(".symver " RTE_STR(name) "_exp, " RTE_STR(name) "@EXPERIMENTAL") \
+__rte_used type name ## _exp args; \
+type name ## _exp args
 
 /*
- * BIND_DEFAULT_SYMBOL
+ * RTE_DEFAULT_SYMBOL
  * Creates a symbol version entry instructing the linker to bind references to
- * symbol <b> to the internal symbol <b><e>
+ * symbol <name> to the internal symbol <name>_v<ver>.
  */
-#define BIND_DEFAULT_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@@DPDK_" RTE_STR(n))
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) \
+__asm__(".symver " RTE_STR(name) "_v" RTE_STR(ver) ", " RTE_STR(name) "@@DPDK_" RTE_STR(ver)); \
+__rte_used type name ## _v ## ver args; \
+type name ## _v ## ver args
 
-/*
- * __vsym
- * Annotation to be used in declaration of the internal symbol <b><e> to signal
- * that it is being used as an implementation of a particular version of symbol
- * <b>.
- */
-#define __vsym __rte_used
+#else /* !RTE_BUILD_SHARED_LIB */
 
-/*
- * MAP_STATIC_SYMBOL
- * If a function has been bifurcated into multiple versions, none of which
- * are defined as the exported symbol name in the map file, this macro can be
- * used to alias a specific version of the symbol to its exported name.  For
- * example, if you have 2 versions of a function foo_v1 and foo_v2, where the
- * former is mapped to foo@DPDK_1 and the latter is mapped to foo@DPDK_2 when
- * building a shared library, this macro can be used to map either foo_v1 or
- * foo_v2 to the symbol foo when building a static library, e.g.:
- * MAP_STATIC_SYMBOL(void foo(), foo_v2);
- */
-#define MAP_STATIC_SYMBOL(f, p)
+#define RTE_VERSION_SYMBOL(ver, type, name, args) \
+type name ## _v ## ver args; \
+type name ## _v ## ver args
 
-#else
-/*
- * No symbol versioning in use
- */
-#define VERSION_SYMBOL(b, e, n)
-#define VERSION_SYMBOL_EXPERIMENTAL(b, e)
-#define __vsym
-#define BIND_DEFAULT_SYMBOL(b, e, n)
-#define MAP_STATIC_SYMBOL(f, p) f __attribute__((alias(RTE_STR(p))))
-/*
- * RTE_BUILD_SHARED_LIB=n
- */
-#endif
+#define RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args) \
+type name ## _exp args; \
+type name ## _exp args
+
+#define RTE_DEFAULT_SYMBOL(ver, type, name, args) \
+type name args
+
+#endif /* RTE_BUILD_SHARED_LIB */
 
Quoted 3 lines

lib/eal/include/rte_function_versioning.h line 71

Quoted 1 line
lib/eal/include/rte_function_versioning.h +0 -0
 #endif /* _RTE_FUNCTION_VERSIONING_H_ */

Changes to this file look ok to me.

Thank you Bruce.

Signature · 1 line
David Marchand
#12 lore raw

RFC v3 4/8 buildtools: display version when listing symbols

In reply to David Marchand

Display the version when a symbol was introduced.
This is needed for scripting the conversion from static to dynamically generated version maps.
It is also useful when listing experimental symbols.

---
 buildtools/map-list-symbol.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
buildtools/map-list-symbol.sh +1 -1
index 43f276c05f..eb98451d8e 100755
@@ -73,7 +73,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1;
+				print "'$file' "current_section" "$1" "current_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
Signature · 1 line
2.48.1
#13 lore raw

RFC v3 5/8 build: generate symbol maps

In reply to David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 111 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   2 +
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 224 ++-------------------
 drivers/meson.build                        |  94 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  91 ++++++---
 13 files changed, 371 insertions(+), 289 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 312e6fcee5..04772951d3 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +111 -0

111 lines not on this page · raw message

buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
 		if (current_section == "") {
 			next;
 		}
+		symbol_version = current_version
+		if (/^[^}].*[^:*]; # added in /) {
+			symbol_version = $5
+		}
 		if ("'$version'" != "") {
-			if ("'$version'" == "unset" && current_version != "") {
+			if ("'$version'" == "unset" && symbol_version != "") {
 				next;
-			} else if ("'$version'" != "unset" && "'$version'" != current_version) {
+			} else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
 				next;
 			}
 		}
@@ -73,7 +77,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1" "current_version;
+				print "'$file' "current_section" "$1" "symbol_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +2 -0
index f31fef216c..54657055fb 100644
@@ -303,8 +303,10 @@ endif
 # add -include rte_config to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +90 -0

90 lines not on this page · raw message

devtools/check-symbol-maps.sh +0 -14
index 6121f78ec6..fcd3931e5d 100755
@@ -60,20 +60,6 @@ if [ -n "$local_miss_maps" ] ; then
     ret=1
 fi
 
-find_empty_maps ()
-{
-    for map in $@ ; do
-        [ $(buildtools/map-list-symbol.sh $map | wc -l) != '0' ] || echo $map
-    done
-}
-
-empty_maps=$(find_empty_maps $@)
-if [ -n "$empty_maps" ] ; then
-    echo "Found empty maps:"
-    echo "$empty_maps"
-    ret=1
-fi
-
 find_bad_format_maps ()
 {
     abi_version=$(cut -d'.' -f 1 ABI_VERSION)
devtools/checkpatches.sh +1 -1
index 003bb49e04..7dcac7c8c9 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
doc/guides/contributing/abi_versioning.rst +22 -202

341 lines not on this page · raw message

drivers/meson.build +59 -35

121 lines not on this page · raw message

drivers/version.map deleted +0 -3
deleted file mode 100644
index 17cc97bda6..0000000000
@@ -1,3 +0,0 @@
-DPDK_25 {
-	local: *;
-};
lib/meson.build +60 -31

119 lines not on this page · raw message

Signature · 1 line
2.48.1
#14 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

Quoted 7 lines · David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

Quoted 8 lines

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

Some comments inline below.
/Bruce

Quoted 52 lines

---
Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 111 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   2 +
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 224 ++-------------------
 drivers/meson.build                        |  94 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  91 ++++++---
 13 files changed, 371 insertions(+), 289 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 312e6fcee5..04772951d3 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +0 -0
new file mode 100755
index 0000000000..b160aa828b

buildtools/gen-version-map.py line 6

Quoted 6 lines
buildtools/gen-version-map.py new file +6 -0
@@ -0,0 +1,111 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2024 Red Hat, Inc.
+
+"""Generate a version map file used by GNU or MSVC linker."""
+

While it's an internal build script not to be run by users directly, I believe a short one-line usage here might be useful, since the code below is directly referencing sys.argv[N] values. That makes it easier for the user to know what they are.

Alternatively, assign them to proper names at the top of the script e.g.:
scriptname, link_mode, abi_version_file, output, *input = sys.argv

Final alternative (which may be a bit overkill) is to use argparse.

Quoted 66 lines
buildtools/gen-version-map.py new file +66 -0
+import re
+import sys
+
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+), ([0-9]+.[0-9]+)\)")
+export_int_sym_regexp = re.compile(r"^RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# From rte_function_versioning.h
+ver_sym_regexp = re.compile(r"^RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+ver_exp_sym_regexp = re.compile(r"^RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+default_sym_regexp = re.compile(r"^RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+with open(sys.argv[2]) as f:
+    abi = 'DPDK_{}'.format(re.match("([0-9]+).[0-9]", f.readline()).group(1))
+
+symbols = {}
+
+for file in sys.argv[4:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            node = None
+            symbol = None
+            comment = None
+            if export_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                comment = ' # added in {}'.format(export_exp_sym_regexp.match(ln).group(2))
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                node = abi
+                symbol = export_sym_regexp.match(ln).group(1)
+            elif ver_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(ver_sym_regexp.match(ln).group(1))
+                symbol = ver_sym_regexp.match(ln).group(2)
+            elif ver_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = ver_exp_sym_regexp.match(ln).group(1)
+            elif default_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(default_sym_regexp.match(ln).group(1))
+                symbol = default_sym_regexp.match(ln).group(2)
+
+            if not symbol:
+                continue
+
+            if node not in symbols:
+                symbols[node] = {}
+            symbols[node][symbol] = comment
+
+if sys.argv[1] == 'msvc':
+    with open(sys.argv[3], "w") as outfile:
+        outfile.writelines(f"EXPORTS\n")
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            for symbol in sorted(symbols[key].keys()):
+                outfile.writelines(f"\t{symbol}\n")
+            del symbols[key]
+else:
+    with open(sys.argv[3], "w") as outfile:
+        local_token = False
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")

buildtools/gen-version-map.py line 82

Quoted 10 lines
buildtools/gen-version-map.py new file +10 -0
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")

How about using "" rather than None for the default comment so you can always just do a print of "{prefix}{symbol};{comment}\n". The fact that writelines doesn't output a "\n" is a little confusing here, so maybe use "print" instead.

	print("f\t{prefix}{symbol};{comment}", file=outfile)
Quoted 247 lines
buildtools/gen-version-map.py new file +29 -0
+            outfile.writelines("\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            outfile.writelines("};\n")
+            del symbols[key]
+        for key in sorted(symbols.keys()):
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines(f"}} {abi};\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            del symbols[key]
+        # No exported symbol, add a catch all
+        if not local_token:
+            outfile.writelines(f"{abi} {{\n")
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+            outfile.writelines("};\n")
buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
 		if (current_section == "") {
 			next;
 		}
+		symbol_version = current_version
+		if (/^[^}].*[^:*]; # added in /) {
+			symbol_version = $5
+		}
 		if ("'$version'" != "") {
-			if ("'$version'" == "unset" && current_version != "") {
+			if ("'$version'" == "unset" && symbol_version != "") {
 				next;
-			} else if ("'$version'" != "unset" && "'$version'" != current_version) {
+			} else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
 				next;
 			}
 		}
@@ -73,7 +77,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1" "current_version;
+				print "'$file' "current_section" "$1" "symbol_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +2 -0
index f31fef216c..54657055fb 100644
@@ -303,8 +303,10 @@ endif
 # add -include rte_config to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +90 -0
new file mode 100755
index 0000000000..09709e4f06
@@ -0,0 +1,90 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2025 Red Hat, Inc.
+
+"""Check exported symbols change in a patch."""
+
+import re
+import sys
+
+file_header_regexp = re.compile(r"^(\-\-\-|\+\+\+) [ab]/(lib|drivers)/([^/]+)/([^/]+)")
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^.RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+),")
+export_int_sym_regexp = re.compile(r"^.RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^.RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# TODO, handle versioned symbols from rte_function_versioning.h
+# ver_sym_regexp = re.compile(r"^.RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+# ver_exp_sym_regexp = re.compile(r"^.RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+# default_sym_regexp = re.compile(r"^.RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+symbols = {}
+
+for file in sys.argv[1:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            if file_header_regexp.match(ln):
+                if file_header_regexp.match(ln).group(2) == "lib":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+                elif file_header_regexp.match(ln).group(3) == "intel":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3, 4))
+                else:
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+
+                if lib not in symbols:
+                    symbols[lib] = {}
+                continue
+
+            if export_exp_sym_regexp.match(ln):
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                node = 'EXPERIMENTAL'
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                symbol = export_sym_regexp.match(ln).group(1)
+                node = 'stable'
+            else:
+                continue
+
+            if symbol not in symbols[lib]:
+                symbols[lib][symbol] = {}
+            added = ln[0] == '+'
+            if added and 'added' in symbols[lib][symbol] and node != symbols[lib][symbol]['added']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if not added and 'removed' in symbols[lib][symbol] and node != symbols[lib][symbol]['removed']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if added:
+                symbols[lib][symbol]['added'] = node
+            else:
+                symbols[lib][symbol]['removed'] = node
+
+    for lib in sorted(symbols.keys()):
+        error = False
+        for symbol in sorted(symbols[lib].keys()):
+            if 'removed' not in symbols[lib][symbol]:
+                # Symbol addition
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"ERROR: {symbol} in {lib} has been added directly to stable ABI.")
+                    error = True
+                else:
+                    print(f"INFO: {symbol} in {lib} has been added to {node} ABI.")
+                continue
+
+            if 'added' not in symbols[lib][symbol]:
+                # Symbol removal
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"INFO: {symbol} in {lib} has been removed from stable ABI.")
+                    print(f"Please check it has gone though the deprecation process.")
+                continue
+
+            if symbols[lib][symbol]['added'] == symbols[lib][symbol]['removed']:
+                # Symbol was moved around
+                continue
+
+            # Symbol modifications
+            added = symbols[lib][symbol]['added']
+            removed = symbols[lib][symbol]['removed']
+            print(f"INFO: {symbol} in {lib} is moving from {removed} to {added}")
+            print(f"Please check it has gone though the deprecation process.")
devtools/check-symbol-maps.sh +0 -14
index 6121f78ec6..fcd3931e5d 100755
@@ -60,20 +60,6 @@ if [ -n "$local_miss_maps" ] ; then
     ret=1
 fi
 
-find_empty_maps ()
-{
-    for map in $@ ; do
-        [ $(buildtools/map-list-symbol.sh $map | wc -l) != '0' ] || echo $map
-    done
-}
-
-empty_maps=$(find_empty_maps $@)
-if [ -n "$empty_maps" ] ; then
-    echo "Found empty maps:"
-    echo "$empty_maps"
-    ret=1
-fi
-
 find_bad_format_maps ()
 {
     abi_version=$(cut -d'.' -f 1 ABI_VERSION)
devtools/checkpatches.sh +1 -1
index 003bb49e04..7dcac7c8c9 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
doc/guides/contributing/abi_versioning.rst +0 -0
index 88dd776b4c..addbb24b9e 100644

doc/guides/contributing/abi_versioning.rst persists over multiple releases. · line 61

Quoted 5 lines
doc/guides/contributing/abi_versioning.rst +1 -1
@@ -58,12 +58,12 @@ persists over multiple releases.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map

I must admit I'm not a fan of these long filenames. How about just "acl_exports.map"?

Quoted 134 lines
doc/guides/contributing/abi_versioning.rst +9 -67
  DPDK_21 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -77,7 +77,7 @@ that library.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_21 {
         global:
...
@@ -88,7 +88,7 @@ that library.
  } DPDK_21;
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -100,12 +100,12 @@ how this may be done.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_22 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_22 {
         global:
...
@@ -134,8 +134,7 @@ linked to the DPDK.
 
 To support backward compatibility the ``rte_function_versioning.h``
 header file provides macros to use when updating exported functions. These
-macros are used in conjunction with the ``version.map`` file for
-a given library to allow multiple versions of a symbol to exist in a shared
+macros allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
 The macros are:
@@ -169,6 +168,7 @@ Assume we have a function as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param)
  {
@@ -187,6 +187,7 @@ private, is safe), but it also requires modifying the code as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param, int debug)
  {
@@ -203,78 +204,16 @@ The addition of a parameter to the function is ABI breaking as the function is
 public, and existing application may use it in its current form. However, the
 compatibility macros in DPDK allow a developer to use symbol versioning so that
 multiple functions can be mapped to the same public symbol based on when an
-application was linked to it. To see how this is done, we start with the
-requisite libraries version map file. Initially the version map file for the acl
-library looks like this
+application was linked to it.
 
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-This file needs to be modified as follows
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-        rte_acl_create;
-
-   } DPDK_21;
-
-The addition of the new block tells the linker that a new version node

doc/guides/contributing/abi_versioning.rst The addition of a parameter to the function is ABI breaking as the function is · line 212

Quoted 10 lines
doc/guides/contributing/abi_versioning.rst +2 -6
-``DPDK_22`` is available, which contains the symbol rte_acl_create, and inherits
-the symbols from the DPDK_21 node. This list is directly translated into a
-list of exported symbols when DPDK is compiled as a shared library.
-
-Next, we need to specify in the code which function maps to the rte_acl_create
+We need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
 we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
-the function return type, and the function name and its arguments.
+the function return type, the function name and its arguments.

Good fix, though technically not relevant to this patch.

doc/guides/contributing/abi_versioning.rst We have now mapped the original rte_acl_create symbol to the original function · line 235

Quoted 12 lines
doc/guides/contributing/abi_versioning.rst +2 -0
 .. code-block:: c
 
+ -RTE_EXPORT_SYMBOL(rte_acl_create)
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
  +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
@@ -293,6 +232,7 @@ We have now mapped the original rte_acl_create symbol to the original function
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
+

Ditto.

doc/guides/contributing/abi_versioning.rst The macro instructs the linker to create the new default symbol · line 257

Quoted 13 lines
doc/guides/contributing/abi_versioning.rst +3 -3
 Next, we need to create the new version of the symbol. We create a new
 function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
@@ -312,9 +252,9 @@ The macro instructs the linker to create the new default symbol
 ``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
 (declared by the macro).
 
-And that's it, on the next shared library rebuild, there will be two versions of
-rte_acl_create, an old DPDK_21 version, used by previously built applications,
-and a new DPDK_22 version, used by future built applications.
+And that's it. On the next shared library rebuild, there will be two versions of rte_acl_create,
+an old DPDK_21 version, used by previously built applications, and a new DPDK_22 version,
+used by future built applications.

nit: not sure what others think but "future built" sounds strange to me? How about "later built" or "newly built"?

Quoted 7 lines
doc/guides/contributing/abi_versioning.rst +0 -0
 .. note::
 
@@ -364,6 +304,7 @@ Assume we have an experimental function ``rte_acl_create`` as follows:
     * Create an acl context object for apps to
     * manipulate
     */

<snip>

#15 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

Quoted 85 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

Quoted 8 lines

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

Some comments inline below.
/Bruce

Quoted 52 lines

---
Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 111 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   2 +
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 224 ++-------------------
 drivers/meson.build                        |  94 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  91 ++++++---
 13 files changed, 371 insertions(+), 289 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 312e6fcee5..04772951d3 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +0 -0
new file mode 100755
index 0000000000..b160aa828b

buildtools/gen-version-map.py line 6

Quoted 6 lines
buildtools/gen-version-map.py new file +6 -0
@@ -0,0 +1,111 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2024 Red Hat, Inc.
+
+"""Generate a version map file used by GNU or MSVC linker."""
+

While it's an internal build script not to be run by users directly, I believe a short one-line usage here might be useful, since the code below is directly referencing sys.argv[N] values. That makes it easier for the user to know what they are.

Quoted 2 lines

Alternatively, assign them to proper names at the top of the script e.g.:
scriptname, link_mode, abi_version_file, output, *input = sys.argv

I like this simple form.

Quoted 85 lines

Final alternative (which may be a bit overkill) is to use argparse.

Quoted 66 lines
buildtools/gen-version-map.py new file +66 -0
+import re
+import sys
+
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+), ([0-9]+.[0-9]+)\)")
+export_int_sym_regexp = re.compile(r"^RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# From rte_function_versioning.h
+ver_sym_regexp = re.compile(r"^RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+ver_exp_sym_regexp = re.compile(r"^RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+default_sym_regexp = re.compile(r"^RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+with open(sys.argv[2]) as f:
+    abi = 'DPDK_{}'.format(re.match("([0-9]+).[0-9]", f.readline()).group(1))
+
+symbols = {}
+
+for file in sys.argv[4:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            node = None
+            symbol = None
+            comment = None
+            if export_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                comment = ' # added in {}'.format(export_exp_sym_regexp.match(ln).group(2))
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                node = abi
+                symbol = export_sym_regexp.match(ln).group(1)
+            elif ver_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(ver_sym_regexp.match(ln).group(1))
+                symbol = ver_sym_regexp.match(ln).group(2)
+            elif ver_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = ver_exp_sym_regexp.match(ln).group(1)
+            elif default_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(default_sym_regexp.match(ln).group(1))
+                symbol = default_sym_regexp.match(ln).group(2)
+
+            if not symbol:
+                continue
+
+            if node not in symbols:
+                symbols[node] = {}
+            symbols[node][symbol] = comment
+
+if sys.argv[1] == 'msvc':
+    with open(sys.argv[3], "w") as outfile:
+        outfile.writelines(f"EXPORTS\n")
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            for symbol in sorted(symbols[key].keys()):
+                outfile.writelines(f"\t{symbol}\n")
+            del symbols[key]
+else:
+    with open(sys.argv[3], "w") as outfile:
+        local_token = False
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")

buildtools/gen-version-map.py line 82

Quoted 10 lines
buildtools/gen-version-map.py new file +10 -0
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")

How about using "" rather than None for the default comment so you can always just do a print of "{prefix}{symbol};{comment}\n". The fact that writelines doesn't output a "\n" is a little confusing here, so maybe use "print" instead.

Quoted 1 line
        print("f\t{prefix}{symbol};{comment}", file=outfile)

Yes, better.

Quoted 249 lines
Quoted 249 lines
buildtools/gen-version-map.py new file +29 -0
+            outfile.writelines("\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            outfile.writelines("};\n")
+            del symbols[key]
+        for key in sorted(symbols.keys()):
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines(f"}} {abi};\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            del symbols[key]
+        # No exported symbol, add a catch all
+        if not local_token:
+            outfile.writelines(f"{abi} {{\n")
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+            outfile.writelines("};\n")
buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
              if (current_section == "") {
                      next;
              }
+             symbol_version = current_version
+             if (/^[^}].*[^:*]; # added in /) {
+                     symbol_version = $5
+             }
              if ("'$version'" != "") {
-                     if ("'$version'" == "unset" && current_version != "") {
+                     if ("'$version'" == "unset" && symbol_version != "") {
                              next;
-                     } else if ("'$version'" != "unset" && "'$version'" != current_version) {
+                     } else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
                              next;
                      }
              }
@@ -73,7 +77,7 @@ for file in $@; do
              if ("'$symbol'" == "all" || $1 == "'$symbol'") {
                      ret = 0;
                      if ("'$quiet'" == "") {
-                             print "'$file' "current_section" "$1" "current_version;
+                             print "'$file' "current_section" "$1" "symbol_version;
                      }
                      if ("'$symbol'" != "all") {
                              exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +2 -0
index f31fef216c..54657055fb 100644
@@ -303,8 +303,10 @@ endif
 # add -include rte_config to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +90 -0
new file mode 100755
index 0000000000..09709e4f06
@@ -0,0 +1,90 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2025 Red Hat, Inc.
+
+"""Check exported symbols change in a patch."""
+
+import re
+import sys
+
+file_header_regexp = re.compile(r"^(\-\-\-|\+\+\+) [ab]/(lib|drivers)/([^/]+)/([^/]+)")
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^.RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+),")
+export_int_sym_regexp = re.compile(r"^.RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^.RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# TODO, handle versioned symbols from rte_function_versioning.h
+# ver_sym_regexp = re.compile(r"^.RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+# ver_exp_sym_regexp = re.compile(r"^.RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+# default_sym_regexp = re.compile(r"^.RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+symbols = {}
+
+for file in sys.argv[1:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            if file_header_regexp.match(ln):
+                if file_header_regexp.match(ln).group(2) == "lib":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+                elif file_header_regexp.match(ln).group(3) == "intel":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3, 4))
+                else:
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+
+                if lib not in symbols:
+                    symbols[lib] = {}
+                continue
+
+            if export_exp_sym_regexp.match(ln):
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                node = 'EXPERIMENTAL'
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                symbol = export_sym_regexp.match(ln).group(1)
+                node = 'stable'
+            else:
+                continue
+
+            if symbol not in symbols[lib]:
+                symbols[lib][symbol] = {}
+            added = ln[0] == '+'
+            if added and 'added' in symbols[lib][symbol] and node != symbols[lib][symbol]['added']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if not added and 'removed' in symbols[lib][symbol] and node != symbols[lib][symbol]['removed']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if added:
+                symbols[lib][symbol]['added'] = node
+            else:
+                symbols[lib][symbol]['removed'] = node
+
+    for lib in sorted(symbols.keys()):
+        error = False
+        for symbol in sorted(symbols[lib].keys()):
+            if 'removed' not in symbols[lib][symbol]:
+                # Symbol addition
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"ERROR: {symbol} in {lib} has been added directly to stable ABI.")
+                    error = True
+                else:
+                    print(f"INFO: {symbol} in {lib} has been added to {node} ABI.")
+                continue
+
+            if 'added' not in symbols[lib][symbol]:
+                # Symbol removal
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"INFO: {symbol} in {lib} has been removed from stable ABI.")
+                    print(f"Please check it has gone though the deprecation process.")
+                continue
+
+            if symbols[lib][symbol]['added'] == symbols[lib][symbol]['removed']:
+                # Symbol was moved around
+                continue
+
+            # Symbol modifications
+            added = symbols[lib][symbol]['added']
+            removed = symbols[lib][symbol]['removed']
+            print(f"INFO: {symbol} in {lib} is moving from {removed} to {added}")
+            print(f"Please check it has gone though the deprecation process.")
devtools/check-symbol-maps.sh +0 -14
index 6121f78ec6..fcd3931e5d 100755
@@ -60,20 +60,6 @@ if [ -n "$local_miss_maps" ] ; then
     ret=1
 fi
 
-find_empty_maps ()
-{
-    for map in $@ ; do
-        [ $(buildtools/map-list-symbol.sh $map | wc -l) != '0' ] || echo $map
-    done
-}
-
-empty_maps=$(find_empty_maps $@)
-if [ -n "$empty_maps" ] ; then
-    echo "Found empty maps:"
-    echo "$empty_maps"
-    ret=1
-fi
-
 find_bad_format_maps ()
 {
     abi_version=$(cut -d'.' -f 1 ABI_VERSION)
devtools/checkpatches.sh +1 -1
index 003bb49e04..7dcac7c8c9 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
doc/guides/contributing/abi_versioning.rst +0 -0
index 88dd776b4c..addbb24b9e 100644
@@ -58,12 +58,12 @@ persists over multiple releases.
 
Quoted 7 lines

doc/guides/contributing/abi_versioning.rst persists over multiple releases. · line 61

Quoted 4 lines
doc/guides/contributing/abi_versioning.rst +1 -1
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map

I must admit I'm not a fan of these long filenames. How about just "acl_exports.map"?

I used the same prefix as other targets in ninja, I usually rely on auto-completion.
But other than that, I don't mind.

Quoted 139 lines
Quoted 139 lines
doc/guides/contributing/abi_versioning.rst +9 -71
  DPDK_21 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -77,7 +77,7 @@ that library.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_21 {
         global:
...
@@ -88,7 +88,7 @@ that library.
  } DPDK_21;
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -100,12 +100,12 @@ how this may be done.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_22 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_22 {
         global:
...
@@ -134,8 +134,7 @@ linked to the DPDK.
 
 To support backward compatibility the ``rte_function_versioning.h``
 header file provides macros to use when updating exported functions. These
-macros are used in conjunction with the ``version.map`` file for
-a given library to allow multiple versions of a symbol to exist in a shared
+macros allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
 The macros are:
@@ -169,6 +168,7 @@ Assume we have a function as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param)
  {
@@ -187,6 +187,7 @@ private, is safe), but it also requires modifying the code as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param, int debug)
  {
@@ -203,78 +204,16 @@ The addition of a parameter to the function is ABI breaking as the function is
 public, and existing application may use it in its current form. However, the
 compatibility macros in DPDK allow a developer to use symbol versioning so that
 multiple functions can be mapped to the same public symbol based on when an
-application was linked to it. To see how this is done, we start with the
-requisite libraries version map file. Initially the version map file for the acl
-library looks like this
+application was linked to it.
 
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-This file needs to be modified as follows
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-        rte_acl_create;
-
-   } DPDK_21;
-
-The addition of the new block tells the linker that a new version node
-``DPDK_22`` is available, which contains the symbol rte_acl_create, and inherits
-the symbols from the DPDK_21 node. This list is directly translated into a
-list of exported symbols when DPDK is compiled as a shared library.
-
Quoted 8 lines

doc/guides/contributing/abi_versioning.rst The addition of a parameter to the function is ABI breaking as the function is · line 212

Quoted 6 lines
doc/guides/contributing/abi_versioning.rst +2 -2
-Next, we need to specify in the code which function maps to the rte_acl_create
+We need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
 we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
-the function return type, and the function name and its arguments.
+the function return type, the function name and its arguments.

Good fix, though technically not relevant to this patch.

Indeed..

Quoted 23 lines

doc/guides/contributing/abi_versioning.rst We have now mapped the original rte_acl_create symbol to the original function · line 235

Quoted 13 lines
doc/guides/contributing/abi_versioning.rst +2 -0
 .. code-block:: c
 
+ -RTE_EXPORT_SYMBOL(rte_acl_create)
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
  +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
@@ -293,6 +232,7 @@ We have now mapped the original rte_acl_create symbol to the original function
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
+

Ditto.

Quoted 7 lines
doc/guides/contributing/abi_versioning.rst +0 -0
 Next, we need to create the new version of the symbol. We create a new
 function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
@@ -312,9 +252,9 @@ The macro instructs the linker to create the new default symbol
 ``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
 (declared by the macro).
 
Quoted 9 lines

doc/guides/contributing/abi_versioning.rst The macro instructs the linker to create the new default symbol · line 257

Quoted 6 lines
doc/guides/contributing/abi_versioning.rst +3 -3
-And that's it, on the next shared library rebuild, there will be two versions of
-rte_acl_create, an old DPDK_21 version, used by previously built applications,
-and a new DPDK_22 version, used by future built applications.
+And that's it. On the next shared library rebuild, there will be two versions of rte_acl_create,
+an old DPDK_21 version, used by previously built applications, and a new DPDK_22 version,
+used by future built applications.

nit: not sure what others think but "future built" sounds strange to me? How about "later built" or "newly built"?

newly sounds better to me.

Quoted 10 lines
Quoted 8 lines
doc/guides/contributing/abi_versioning.rst +0 -0
 .. note::
 
@@ -364,6 +304,7 @@ Assume we have an experimental function ``rte_acl_create`` as follows:
     * Create an acl context object for apps to
     * manipulate
     */

<snip>

Signature · 1 line
David Marchand
#16 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

In reply to David Marchand

11/03/2025 10:56, David Marchand:

Review

Quoted 2 lines
(quoted diff) +2 -0
+        if is_ms_linker
+            link_mode = 'msvc'

It can be MSVC or clang.
mslinker may be a better naming.

Quoted 5 lines
drivers/meson.build +5 -0
+        elif is_windows
+            link_mode = 'mingw'
+        else
+            link_mode = 'gnu'
+        endif
#17 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

Quoted 13 lines · Thomas Monjalon

11/03/2025 10:56, David Marchand:

Review

Quoted 2 lines
(quoted diff) +2 -0
+        if is_ms_linker
+            link_mode = 'msvc'

It can be MSVC or clang.
mslinker may be a better naming.

Quoted 5 lines
drivers/meson.build +5 -0
+        elif is_windows
+            link_mode = 'mingw'
+        else
+            link_mode = 'gnu'
+        endif

+1.

Signature · 1 line
David Marchand
#18 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

In reply to David Marchand
Quoted 67 lines · David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

Quoted 1 line

From those marks, the build framework generates map files only for

symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 111 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   2 +
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 224 ++-------------------
 drivers/meson.build                        |  94 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  91 ++++++---
 13 files changed, 371 insertions(+), 289 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 312e6fcee5..04772951d3 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +0 -0
new file mode 100755
index 0000000000..b160aa828b

buildtools/gen-version-map.py line 3

Quoted 3 lines
buildtools/gen-version-map.py new file +3 -0
@@ -0,0 +1,111 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2024 Red Hat, Inc.

2025?
I appreciate that Python was chosen instead of sh/bash.

Quoted 54 lines
buildtools/gen-version-map.py new file +54 -0
+
+"""Generate a version map file used by GNU or MSVC linker."""
+
+import re
+import sys
+
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+), ([0-9]+.[0-9]+)\)")
+export_int_sym_regexp = re.compile(r"^RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# From rte_function_versioning.h
+ver_sym_regexp = re.compile(r"^RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+ver_exp_sym_regexp = re.compile(r"^RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+default_sym_regexp = re.compile(r"^RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+with open(sys.argv[2]) as f:
+    abi = 'DPDK_{}'.format(re.match("([0-9]+).[0-9]", f.readline()).group(1))
+
+symbols = {}
+
+for file in sys.argv[4:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            node = None
+            symbol = None
+            comment = None
+            if export_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                comment = ' # added in {}'.format(export_exp_sym_regexp.match(ln).group(2))
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                node = abi
+                symbol = export_sym_regexp.match(ln).group(1)
+            elif ver_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(ver_sym_regexp.match(ln).group(1))
+                symbol = ver_sym_regexp.match(ln).group(2)
+            elif ver_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = ver_exp_sym_regexp.match(ln).group(1)
+            elif default_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(default_sym_regexp.match(ln).group(1))
+                symbol = default_sym_regexp.match(ln).group(2)
+
+            if not symbol:
+                continue
+
+            if node not in symbols:
+                symbols[node] = {}
+            symbols[node][symbol] = comment
+
+if sys.argv[1] == 'msvc':

buildtools/gen-version-map.py line 67

Quoted 10 lines
buildtools/gen-version-map.py new file +10 -0
+    with open(sys.argv[3], "w") as outfile:
+        outfile.writelines(f"EXPORTS\n")
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            for symbol in sorted(symbols[key].keys()):
+                outfile.writelines(f"\t{symbol}\n")
+            del symbols[key]
+else:
+    with open(sys.argv[3], "w") as outfile:

Consider having output file samples documented, perhaps in this script itself, to make it easier to understand what this script it doing and highlight the differences between the formats supported (msvc, etc).

Quoted 197 lines
buildtools/gen-version-map.py new file +44 -0
+        local_token = False
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines("\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            outfile.writelines("};\n")
+            del symbols[key]
+        for key in sorted(symbols.keys()):
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines(f"}} {abi};\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            del symbols[key]
+        # No exported symbol, add a catch all
+        if not local_token:
+            outfile.writelines(f"{abi} {{\n")
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+            outfile.writelines("};\n")
buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
 		if (current_section == "") {
 			next;
 		}
+		symbol_version = current_version
+		if (/^[^}].*[^:*]; # added in /) {
+			symbol_version = $5
+		}
 		if ("'$version'" != "") {
-			if ("'$version'" == "unset" && current_version != "") {
+			if ("'$version'" == "unset" && symbol_version != "") {
 				next;
-			} else if ("'$version'" != "unset" && "'$version'" != current_version) {
+			} else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
 				next;
 			}
 		}
@@ -73,7 +77,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1" "current_version;
+				print "'$file' "current_section" "$1" "symbol_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +2 -0
index f31fef216c..54657055fb 100644
@@ -303,8 +303,10 @@ endif
 # add -include rte_config to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +68 -0
new file mode 100755
index 0000000000..09709e4f06
@@ -0,0 +1,90 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2025 Red Hat, Inc.
+
+"""Check exported symbols change in a patch."""
+
+import re
+import sys
+
+file_header_regexp = re.compile(r"^(\-\-\-|\+\+\+) [ab]/(lib|drivers)/([^/]+)/([^/]+)")
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^.RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+),")
+export_int_sym_regexp = re.compile(r"^.RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^.RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# TODO, handle versioned symbols from rte_function_versioning.h
+# ver_sym_regexp = re.compile(r"^.RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+# ver_exp_sym_regexp = re.compile(r"^.RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+# default_sym_regexp = re.compile(r"^.RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+symbols = {}
+
+for file in sys.argv[1:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            if file_header_regexp.match(ln):
+                if file_header_regexp.match(ln).group(2) == "lib":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+                elif file_header_regexp.match(ln).group(3) == "intel":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3, 4))
+                else:
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+
+                if lib not in symbols:
+                    symbols[lib] = {}
+                continue
+
+            if export_exp_sym_regexp.match(ln):
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                node = 'EXPERIMENTAL'
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                symbol = export_sym_regexp.match(ln).group(1)
+                node = 'stable'
+            else:
+                continue
+
+            if symbol not in symbols[lib]:
+                symbols[lib][symbol] = {}
+            added = ln[0] == '+'
+            if added and 'added' in symbols[lib][symbol] and node != symbols[lib][symbol]['added']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if not added and 'removed' in symbols[lib][symbol] and node != symbols[lib][symbol]['removed']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if added:
+                symbols[lib][symbol]['added'] = node
+            else:
+                symbols[lib][symbol]['removed'] = node
+
+    for lib in sorted(symbols.keys()):
+        error = False
+        for symbol in sorted(symbols[lib].keys()):
+            if 'removed' not in symbols[lib][symbol]:
+                # Symbol addition
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"ERROR: {symbol} in {lib} has been added directly to stable ABI.")

devtools/check-symbol-change.py line 78

Quoted 10 lines
devtools/check-symbol-change.py new file +10 -0
+                    error = True
+                else:
+                    print(f"INFO: {symbol} in {lib} has been added to {node} ABI.")
+                continue
+
+            if 'added' not in symbols[lib][symbol]:
+                # Symbol removal
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"INFO: {symbol} in {lib} has been removed from stable ABI.")

Some people would argue that WARN instead of INFO is more appropriate because some attention is needed from the user. INFO many times is just ignored.

devtools/check-symbol-change.py line 89

Quoted 11 lines
devtools/check-symbol-change.py new file +11 -0
+                    print(f"Please check it has gone though the deprecation process.")
+                continue
+
+            if symbols[lib][symbol]['added'] == symbols[lib][symbol]['removed']:
+                # Symbol was moved around
+                continue
+
+            # Symbol modifications
+            added = symbols[lib][symbol]['added']
+            removed = symbols[lib][symbol]['removed']
+            print(f"INFO: {symbol} in {lib} is moving from {removed} to {added}")

Perhaps use WARN instead of INFO.

Quoted 44 lines
devtools/check-symbol-change.py new file +1 -0
+            print(f"Please check it has gone though the deprecation process.")
devtools/check-symbol-maps.sh +0 -14
index 6121f78ec6..fcd3931e5d 100755
@@ -60,20 +60,6 @@ if [ -n "$local_miss_maps" ] ; then
     ret=1
 fi
 
-find_empty_maps ()
-{
-    for map in $@ ; do
-        [ $(buildtools/map-list-symbol.sh $map | wc -l) != '0' ] || echo $map
-    done
-}
-
-empty_maps=$(find_empty_maps $@)
-if [ -n "$empty_maps" ] ; then
-    echo "Found empty maps:"
-    echo "$empty_maps"
-    ret=1
-fi
-
 find_bad_format_maps ()
 {
     abi_version=$(cut -d'.' -f 1 ABI_VERSION)
devtools/checkpatches.sh +1 -1
index 003bb49e04..7dcac7c8c9 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
doc/guides/contributing/abi_versioning.rst +0 -0
index 88dd776b4c..addbb24b9e 100644

doc/guides/contributing/abi_versioning.rst persists over multiple releases. · line 61

Quoted 5 lines
doc/guides/contributing/abi_versioning.rst +1 -1
@@ -58,12 +58,12 @@ persists over multiple releases.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map

I like the new file names, they are much better.

Quoted 615 lines
doc/guides/contributing/abi_versioning.rst +21 -201
  DPDK_21 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -77,7 +77,7 @@ that library.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_21 {
         global:
...
@@ -88,7 +88,7 @@ that library.
  } DPDK_21;
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_21 {
         global:
...
@@ -100,12 +100,12 @@ how this may be done.
 
 .. code-block:: none
 
- $ head ./lib/acl/version.map
+ $ head ./build/lib/librte_acl_exports.map
  DPDK_22 {
         global:
...
 
- $ head ./lib/eal/version.map
+ $ head ./build/lib/librte_eal_exports.map
  DPDK_22 {
         global:
...
@@ -134,8 +134,7 @@ linked to the DPDK.
 
 To support backward compatibility the ``rte_function_versioning.h``
 header file provides macros to use when updating exported functions. These
-macros are used in conjunction with the ``version.map`` file for
-a given library to allow multiple versions of a symbol to exist in a shared
+macros allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
 The macros are:
@@ -169,6 +168,7 @@ Assume we have a function as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param)
  {
@@ -187,6 +187,7 @@ private, is safe), but it also requires modifying the code as follows
   * Create an acl context object for apps to
   * manipulate
   */
+ RTE_EXPORT_SYMBOL(rte_acl_create)
  struct rte_acl_ctx *
  rte_acl_create(const struct rte_acl_param *param, int debug)
  {
@@ -203,78 +204,16 @@ The addition of a parameter to the function is ABI breaking as the function is
 public, and existing application may use it in its current form. However, the
 compatibility macros in DPDK allow a developer to use symbol versioning so that
 multiple functions can be mapped to the same public symbol based on when an
-application was linked to it. To see how this is done, we start with the
-requisite libraries version map file. Initially the version map file for the acl
-library looks like this
+application was linked to it.
 
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-This file needs to be modified as follows
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_create;
-        rte_acl_dump;
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-        rte_acl_create;
-
-   } DPDK_21;
-
-The addition of the new block tells the linker that a new version node
-``DPDK_22`` is available, which contains the symbol rte_acl_create, and inherits
-the symbols from the DPDK_21 node. This list is directly translated into a
-list of exported symbols when DPDK is compiled as a shared library.
-
-Next, we need to specify in the code which function maps to the rte_acl_create
+We need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
 we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
-the function return type, and the function name and its arguments.
+the function return type, the function name and its arguments.
 
 .. code-block:: c
 
+ -RTE_EXPORT_SYMBOL(rte_acl_create)
  -struct rte_acl_ctx *
  -rte_acl_create(const struct rte_acl_param *param)
  +RTE_VERSION_SYMBOL(21, struct rte_acl_ctx *, rte_acl_create, (const struct rte_acl_param *param))
@@ -293,6 +232,7 @@ We have now mapped the original rte_acl_create symbol to the original function
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
+
 Next, we need to create the new version of the symbol. We create a new
 function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
@@ -312,9 +252,9 @@ The macro instructs the linker to create the new default symbol
 ``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
 (declared by the macro).
 
-And that's it, on the next shared library rebuild, there will be two versions of
-rte_acl_create, an old DPDK_21 version, used by previously built applications,
-and a new DPDK_22 version, used by future built applications.
+And that's it. On the next shared library rebuild, there will be two versions of rte_acl_create,
+an old DPDK_21 version, used by previously built applications, and a new DPDK_22 version,
+used by future built applications.
 
 .. note::
 
@@ -364,6 +304,7 @@ Assume we have an experimental function ``rte_acl_create`` as follows:
     * Create an acl context object for apps to
     * manipulate
     */
+   RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_acl_create)
    __rte_experimental
    struct rte_acl_ctx *
    rte_acl_create(const struct rte_acl_param *param)
@@ -371,27 +312,8 @@ Assume we have an experimental function ``rte_acl_create`` as follows:
...
    }
 
-In the map file, experimental symbols are listed as part of the ``EXPERIMENTAL``
-version node.
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-        ...
-
-        local: *;
-   };
-
-   EXPERIMENTAL {
-        global:
-
-        rte_acl_create;
-   };
-
 When we promote the symbol to the stable ABI, we simply strip the
-``__rte_experimental`` annotation from the function and move the symbol from the
-``EXPERIMENTAL`` node, to the node of the next major ABI version as follow.
+``__rte_experimental`` annotation from the function.
 
 .. code-block:: c
@@ -399,31 +321,13 @@ When we promote the symbol to the stable ABI, we simply strip the
     * Create an acl context object for apps to
     * manipulate
     */
+   RTE_EXPORT_SYMBOL(rte_acl_create)
    struct rte_acl_ctx *
    rte_acl_create(const struct rte_acl_param *param)
    {
...
    }
 
-We then update the map file, adding the symbol ``rte_acl_create``
-to the ``DPDK_22`` version node.
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-        ...
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-
-        rte_acl_create;
-   } DPDK_21;
-
-
 Although there are strictly no guarantees or commitments associated with
 :ref:`experimental symbols <experimental_apis>`, a maintainer may wish to offer
 an alias to experimental. The process to add an alias to experimental,
@@ -452,30 +356,6 @@ and ``DPDK_22`` version nodes.
       return rte_acl_create(param);
    }
 
-In the map file, we map the symbol to both the ``EXPERIMENTAL``
-and ``DPDK_22`` version nodes.
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-        ...
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-
-        rte_acl_create;
-   } DPDK_21;
-
-   EXPERIMENTAL {
-        global:
-
-        rte_acl_create;
-   };
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
@@ -484,38 +364,7 @@ ________________________________
 Lets assume that you've done the above updates, and in preparation for the next
 major ABI version you decide you would like to retire the old version of the
 function. After having gone through the ABI deprecation announcement process,
-removal is easy. Start by removing the symbol from the requisite version map
-file:
-
-.. code-block:: none
-
-   DPDK_21 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_dump;
- -      rte_acl_create
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
-   };
-
-   DPDK_22 {
-        global:
-        rte_acl_create;
-   } DPDK_21;
-
+removal is easy.
 
 Next remove the corresponding versioned export.
 
@@ -539,36 +388,7 @@ of a major ABI version. If a version node completely specifies an API, then
 removing part of it, typically makes it incomplete. In those cases it is better
 to remove the entire node.
 
-To do this, start by modifying the version map file, such that all symbols from
-the node to be removed are merged into the next node in the map.
-
-In the case of our map above, it would transform to look as follows
-
-.. code-block:: none
-
-   DPDK_22 {
-        global:
-
-        rte_acl_add_rules;
-        rte_acl_build;
-        rte_acl_classify;
-        rte_acl_classify_alg;
-        rte_acl_classify_scalar;
-        rte_acl_dump;
-        rte_acl_create
-        rte_acl_find_existing;
-        rte_acl_free;
-        rte_acl_ipv4vlan_add_rules;
-        rte_acl_ipv4vlan_build;
-        rte_acl_list_dump;
-        rte_acl_reset;
-        rte_acl_reset_rules;
-        rte_acl_set_ctx_classify;
-
-        local: *;
- };
-
-Then any uses of RTE_DEFAULT_SYMBOL that pointed to the old node should be
+Any uses of RTE_DEFAULT_SYMBOL that pointed to the old node should be
 updated to point to the new version node in any header files for all affected
 symbols.
 
drivers/meson.build +59 -35
index 05391a575d..c8bc556f1a 100644
@@ -245,14 +245,14 @@ foreach subpath:subdirs
                 dependencies: static_deps,
                 c_args: cflags)
         objs += tmp_lib.extract_all_objects(recursive: true)
-        sources = custom_target(out_filename,
+        sources_pmd_info = custom_target(out_filename,
                 command: [pmdinfo, tmp_lib.full_path(), '@OUTPUT@', pmdinfogen],
                 output: out_filename,
                 depends: [tmp_lib])
 
         # now build the static driver
         static_lib = static_library(lib_name,
-                sources,
+                sources_pmd_info,
                 objects: objs,
                 include_directories: includes,
                 dependencies: static_deps,
@@ -262,48 +262,72 @@ foreach subpath:subdirs
         # now build the shared driver
         version_map = '@0@/@1@/version.map'.format(meson.current_source_dir(), drv_path)
 
-        lk_deps = []
-        lk_args = []
         if not fs.is_file(version_map)
-            version_map = '@0@/version.map'.format(meson.current_source_dir())
-            lk_deps += [version_map]
-        else
-            lk_deps += [version_map]
-            if not is_windows and developer_mode
-                # on unix systems check the output of the
-                # check-symbols.sh script, using it as a
-                # dependency of the .so build
-                lk_deps += custom_target(lib_name + '.sym_chk',
-                        command: [check_symbols, version_map, '@INPUT@'],
-                        capture: true,
-                        input: static_lib,
-                        output: lib_name + '.sym_chk')
+            if is_ms_linker
+                link_mode = 'msvc'
+            elif is_windows
+                link_mode = 'mingw'
+            else
+                link_mode = 'gnu'
             endif
-        endif
+            version_map = custom_target(lib_name + '_map',
+                    command: [gen_version_map, link_mode, abi_version_file, '@OUTPUT@', '@INPUT@'],
+                    input: sources,
+                    output: 'lib@0@_exports.map'.format(lib_name))
+            version_map_path = version_map.full_path()
+            version_map_dep = [version_map]
+            lk_deps = [version_map]
 
-        if is_windows
             if is_ms_linker
-                def_file = custom_target(lib_name + '_def',
-                        command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
-                        input: version_map,
-                        output: '@0@_exports.def'.format(lib_name))
-                lk_deps += [def_file]
-
-                lk_args = ['-Wl,/def:' + def_file.full_path()]
+                if is_ms_compiler
+                    lk_args = ['/def:' + version_map.full_path()]
+                else
+                    lk_args = ['-Wl,/def:' + version_map.full_path()]
+                endif
             else
-                mingw_map = custom_target(lib_name + '_mingw',
-                        command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
-                        input: version_map,
-                        output: '@0@_mingw.map'.format(lib_name))
-                lk_deps += [mingw_map]
-
-                lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]
+                lk_args = ['-Wl,--version-script=' + version_map.full_path()]
             endif
         else
-            lk_args = ['-Wl,--version-script=' + version_map]
+            version_map_path = version_map
+            version_map_dep = []
+            lk_deps = [version_map]
+
+            if is_windows
+                if is_ms_linker
+                    def_file = custom_target(lib_name + '_def',
+                            command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
+                            input: version_map,
+                            output: '@0@_exports.def'.format(lib_name))
+                    lk_deps += [def_file]
+
+                    lk_args = ['-Wl,/def:' + def_file.full_path()]
+                else
+                    mingw_map = custom_target(lib_name + '_mingw',
+                            command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
+                            input: version_map,
+                            output: '@0@_mingw.map'.format(lib_name))
+                    lk_deps += [mingw_map]
+
+                    lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]
+                endif
+            else
+                lk_args = ['-Wl,--version-script=' + version_map]
+            endif
+        endif
+
+        if not is_windows and developer_mode
+            # on unix systems check the output of the
+            # check-symbols.sh script, using it as a
+            # dependency of the .so build
+            lk_deps += custom_target(lib_name + '.sym_chk',
+                    command: [check_symbols, version_map_path, '@INPUT@'],
+                    capture: true,
+                    input: static_lib,
+                    output: lib_name + '.sym_chk',
+                    depends: version_map_dep)
         endif
 
-        shared_lib = shared_library(lib_name, sources,
+        shared_lib = shared_library(lib_name, sources_pmd_info,
                 objects: objs,
                 include_directories: includes,
                 dependencies: shared_deps,
drivers/version.map deleted +0 -3
deleted file mode 100644
index 17cc97bda6..0000000000
@@ -1,3 +0,0 @@
-DPDK_25 {
-	local: *;
-};
lib/meson.build +60 -31
index ce92cb5537..b6bac02b48 100644
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017-2019 Intel Corporation
 
+fs = import('fs')
 
 # process all libraries equally, as far as possible
 # "core" libs first, then others alphabetically as far as possible
@@ -254,42 +255,60 @@ foreach l:libraries
             include_directories: includes,
             dependencies: static_deps)
 
-    if not use_function_versioning or is_windows
-        # use pre-build objects to build shared lib
-        sources = []
-        objs += static_lib.extract_all_objects(recursive: false)
-    else
-        # for compat we need to rebuild with
-        # RTE_BUILD_SHARED_LIB defined
-        cflags += '-DRTE_BUILD_SHARED_LIB'
-    endif
-
-    version_map = '@0@/@1@/version.map'.format(meson.current_source_dir(), l)
-    lk_deps = [version_map]
-
-    if is_ms_linker
-        def_file = custom_target(libname + '_def',
-                command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
-                input: version_map,
-                output: '@0@_exports.def'.format(libname))
-        lk_deps += [def_file]
+    if not fs.is_file('@0@/@1@/version.map'.format(meson.current_source_dir(), l))
+        if is_ms_linker
+            link_mode = 'msvc'
+        elif is_windows
+            link_mode = 'mingw'
+        else
+            link_mode = 'gnu'
+        endif
+        version_map = custom_target(libname + '_map',
+                command: [gen_version_map, link_mode, abi_version_file, '@OUTPUT@', '@INPUT@'],
+                input: sources,
+                output: 'lib@0@_exports.map'.format(libname))
+        version_map_path = version_map.full_path()
+        version_map_dep = [version_map]
+        lk_deps = [version_map]
 
-        if is_ms_compiler
-            lk_args = ['/def:' + def_file.full_path()]
+        if is_ms_linker
+            if is_ms_compiler
+                lk_args = ['/def:' + version_map.full_path()]
+            else
+                lk_args = ['-Wl,/def:' + version_map.full_path()]
+            endif
         else
-            lk_args = ['-Wl,/def:' + def_file.full_path()]
+            lk_args = ['-Wl,--version-script=' + version_map.full_path()]
         endif
     else
-        if is_windows
-            mingw_map = custom_target(libname + '_mingw',
+        version_map = '@0@/@1@/version.map'.format(meson.current_source_dir(), l)
+        version_map_path = version_map
+        version_map_dep = []
+        lk_deps = [version_map]
+        if is_ms_linker
+            def_file = custom_target(libname + '_def',
                     command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
                     input: version_map,
-                    output: '@0@_mingw.map'.format(libname))
-            lk_deps += [mingw_map]
+                    output: '@0@_exports.def'.format(libname))
+            lk_deps += [def_file]
 
-            lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]
+            if is_ms_compiler
+                lk_args = ['/def:' + def_file.full_path()]
+            else
+                lk_args = ['-Wl,/def:' + def_file.full_path()]
+            endif
         else
-            lk_args = ['-Wl,--version-script=' + version_map]
+            if is_windows
+                mingw_map = custom_target(libname + '_mingw',
+                        command: [map_to_win_cmd, '@INPUT@', '@OUTPUT@'],
+                        input: version_map,
+                        output: '@0@_mingw.map'.format(libname))
+                lk_deps += [mingw_map]
+
+                lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]
+            else
+                lk_args = ['-Wl,--version-script=' + version_map]
+            endif
         endif
     endif
 
@@ -298,11 +317,21 @@ foreach l:libraries
         # check-symbols.sh script, using it as a
         # dependency of the .so build
         lk_deps += custom_target(name + '.sym_chk',
-                command: [check_symbols,
-                    version_map, '@INPUT@'],
+                command: [check_symbols, version_map_path, '@INPUT@'],
                 capture: true,
                 input: static_lib,
-                output: name + '.sym_chk')
+                output: name + '.sym_chk',
+                depends: version_map_dep)
+    endif
+
+    if not use_function_versioning or is_windows
+        # use pre-build objects to build shared lib
+        sources = []
+        objs += static_lib.extract_all_objects(recursive: false)
+    else
+        # for compat we need to rebuild with
+        # RTE_BUILD_SHARED_LIB defined
+        cflags += '-DRTE_BUILD_SHARED_LIB'
     endif
 
     shared_lib = shared_library(libname,
Signature · 1 line
2.48.1
#19 lore raw

Re: [RFC v3 5/8] build: generate symbol maps

Quoted 66 lines · Andre Muezerie
Quoted 64 lines · David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

Quoted 1 line

From those marks, the build framework generates map files only for

symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 111 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   2 +
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 224 ++-------------------
 drivers/meson.build                        |  94 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  91 ++++++---
 13 files changed, 371 insertions(+), 289 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 312e6fcee5..04772951d3 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +0 -0
new file mode 100755
index 0000000000..b160aa828b
Quoted 8 lines

buildtools/gen-version-map.py line 3

Quoted 6 lines
buildtools/gen-version-map.py new file +3 -0
@@ -0,0 +1,111 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2024 Red Hat, Inc.

2025?

Well, technically, I had written the first version of this script in 2024 :-). But I'll align to the rest of the patch.

Quoted 62 lines

I appreciate that Python was chosen instead of sh/bash.

Quoted 60 lines
buildtools/gen-version-map.py new file +60 -0
+
+"""Generate a version map file used by GNU or MSVC linker."""
+
+import re
+import sys
+
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+), ([0-9]+.[0-9]+)\)")
+export_int_sym_regexp = re.compile(r"^RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# From rte_function_versioning.h
+ver_sym_regexp = re.compile(r"^RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+ver_exp_sym_regexp = re.compile(r"^RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+default_sym_regexp = re.compile(r"^RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+with open(sys.argv[2]) as f:
+    abi = 'DPDK_{}'.format(re.match("([0-9]+).[0-9]", f.readline()).group(1))
+
+symbols = {}
+
+for file in sys.argv[4:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            node = None
+            symbol = None
+            comment = None
+            if export_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                comment = ' # added in {}'.format(export_exp_sym_regexp.match(ln).group(2))
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                node = abi
+                symbol = export_sym_regexp.match(ln).group(1)
+            elif ver_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(ver_sym_regexp.match(ln).group(1))
+                symbol = ver_sym_regexp.match(ln).group(2)
+            elif ver_exp_sym_regexp.match(ln):
+                node = 'EXPERIMENTAL'
+                symbol = ver_exp_sym_regexp.match(ln).group(1)
+            elif default_sym_regexp.match(ln):
+                node = 'DPDK_{}'.format(default_sym_regexp.match(ln).group(1))
+                symbol = default_sym_regexp.match(ln).group(2)
+
+            if not symbol:
+                continue
+
+            if node not in symbols:
+                symbols[node] = {}
+            symbols[node][symbol] = comment
+
+if sys.argv[1] == 'msvc':
+    with open(sys.argv[3], "w") as outfile:
+        outfile.writelines(f"EXPORTS\n")
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            for symbol in sorted(symbols[key].keys()):
Quoted 8 lines

buildtools/gen-version-map.py line 67

Quoted 4 lines
buildtools/gen-version-map.py new file +4 -0
+                outfile.writelines(f"\t{symbol}\n")
+            del symbols[key]
+else:
+    with open(sys.argv[3], "w") as outfile:

Consider having output file samples documented, perhaps in this script itself, to make it easier to understand what this script it doing and highlight the differences between the formats supported (msvc, etc).

I am not sure I follow.

The differences between the format is not something "normal" DPDK contributors/developers should care about.
DPDK documentation was giving (too much) details on the version.map gnu linker stuff, and I would prefer we stop documenting this. Instead, the focus should be on the new sets of export macros, which serve as an abstraction.

Quoted 203 lines
Quoted 203 lines
buildtools/gen-version-map.py new file +44 -0
+        local_token = False
+        for key in (abi, 'EXPERIMENTAL', 'INTERNAL'):
+            if key not in symbols:
+                continue
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines("\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            outfile.writelines("};\n")
+            del symbols[key]
+        for key in sorted(symbols.keys()):
+            outfile.writelines(f"{key} {{\n\tglobal:\n\n")
+            for symbol in sorted(symbols[key].keys()):
+                if sys.argv[1] == 'mingw' and symbol.startswith('per_lcore'):
+                    prefix = '__emutls_v.'
+                else:
+                    prefix = ''
+                outfile.writelines(f"\t{prefix}{symbol};")
+                comment = symbols[key][symbol]
+                if comment:
+                    outfile.writelines(f"{comment}")
+                outfile.writelines("\n")
+            outfile.writelines(f"}} {abi};\n")
+            if not local_token:
+                outfile.writelines("\tlocal: *;\n")
+                local_token = True
+            del symbols[key]
+        # No exported symbol, add a catch all
+        if not local_token:
+            outfile.writelines(f"{abi} {{\n")
+            outfile.writelines("\tlocal: *;\n")
+            local_token = True
+            outfile.writelines("};\n")
buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
              if (current_section == "") {
                      next;
              }
+             symbol_version = current_version
+             if (/^[^}].*[^:*]; # added in /) {
+                     symbol_version = $5
+             }
              if ("'$version'" != "") {
-                     if ("'$version'" == "unset" && current_version != "") {
+                     if ("'$version'" == "unset" && symbol_version != "") {
                              next;
-                     } else if ("'$version'" != "unset" && "'$version'" != current_version) {
+                     } else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
                              next;
                      }
              }
@@ -73,7 +77,7 @@ for file in $@; do
              if ("'$symbol'" == "all" || $1 == "'$symbol'") {
                      ret = 0;
                      if ("'$quiet'" == "") {
-                             print "'$file' "current_section" "$1" "current_version;
+                             print "'$file' "current_section" "$1" "symbol_version;
                      }
                      if ("'$symbol'" != "all") {
                              exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +2 -0
index f31fef216c..54657055fb 100644
@@ -303,8 +303,10 @@ endif
 # add -include rte_config to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +73 -0
new file mode 100755
index 0000000000..09709e4f06
@@ -0,0 +1,90 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) 2025 Red Hat, Inc.
+
+"""Check exported symbols change in a patch."""
+
+import re
+import sys
+
+file_header_regexp = re.compile(r"^(\-\-\-|\+\+\+) [ab]/(lib|drivers)/([^/]+)/([^/]+)")
+# From rte_export.h
+export_exp_sym_regexp = re.compile(r"^.RTE_EXPORT_EXPERIMENTAL_SYMBOL\(([^,]+),")
+export_int_sym_regexp = re.compile(r"^.RTE_EXPORT_INTERNAL_SYMBOL\(([^)]+)\)")
+export_sym_regexp = re.compile(r"^.RTE_EXPORT_SYMBOL\(([^)]+)\)")
+# TODO, handle versioned symbols from rte_function_versioning.h
+# ver_sym_regexp = re.compile(r"^.RTE_VERSION_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+# ver_exp_sym_regexp = re.compile(r"^.RTE_VERSION_EXPERIMENTAL_SYMBOL\([^,]+, ([^,]+),")
+# default_sym_regexp = re.compile(r"^.RTE_DEFAULT_SYMBOL\(([^,]+), [^,]+, ([^,]+),")
+
+symbols = {}
+
+for file in sys.argv[1:]:
+    with open(file, encoding="utf-8") as f:
+        for ln in f.readlines():
+            if file_header_regexp.match(ln):
+                if file_header_regexp.match(ln).group(2) == "lib":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+                elif file_header_regexp.match(ln).group(3) == "intel":
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3, 4))
+                else:
+                    lib = '/'.join(file_header_regexp.match(ln).group(2, 3))
+
+                if lib not in symbols:
+                    symbols[lib] = {}
+                continue
+
+            if export_exp_sym_regexp.match(ln):
+                symbol = export_exp_sym_regexp.match(ln).group(1)
+                node = 'EXPERIMENTAL'
+            elif export_int_sym_regexp.match(ln):
+                node = 'INTERNAL'
+                symbol = export_int_sym_regexp.match(ln).group(1)
+            elif export_sym_regexp.match(ln):
+                symbol = export_sym_regexp.match(ln).group(1)
+                node = 'stable'
+            else:
+                continue
+
+            if symbol not in symbols[lib]:
+                symbols[lib][symbol] = {}
+            added = ln[0] == '+'
+            if added and 'added' in symbols[lib][symbol] and node != symbols[lib][symbol]['added']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if not added and 'removed' in symbols[lib][symbol] and node != symbols[lib][symbol]['removed']:
+                print(f"{symbol} in {lib} was found in multiple ABI, please check.")
+            if added:
+                symbols[lib][symbol]['added'] = node
+            else:
+                symbols[lib][symbol]['removed'] = node
+
+    for lib in sorted(symbols.keys()):
+        error = False
+        for symbol in sorted(symbols[lib].keys()):
+            if 'removed' not in symbols[lib][symbol]:
+                # Symbol addition
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"ERROR: {symbol} in {lib} has been added directly to stable ABI.")
+                    error = True
+                else:
+                    print(f"INFO: {symbol} in {lib} has been added to {node} ABI.")
+                continue
+
Quoted 8 lines

devtools/check-symbol-change.py line 78

Quoted 5 lines
devtools/check-symbol-change.py new file +5 -0
+            if 'added' not in symbols[lib][symbol]:
+                # Symbol removal
+                node = symbols[lib][symbol]['added']
+                if node == 'stable':
+                    print(f"INFO: {symbol} in {lib} has been removed from stable ABI.")

Some people would argue that WARN instead of INFO is more appropriate because some attention is needed from the user. INFO many times is just ignored.

True, though the ABI check is supposed to fail with a big ERROR :-).

I would have to remember why we put INFO initially (I am just reimplementing the .sh check that existed on static maps). I think Thomas was the one who wanted it as INFO...

Quoted 14 lines

devtools/check-symbol-change.py line 89

Quoted 12 lines
devtools/check-symbol-change.py new file +11 -0
+                    print(f"Please check it has gone though the deprecation process.")
+                continue
+
+            if symbols[lib][symbol]['added'] == symbols[lib][symbol]['removed']:
+                # Symbol was moved around
+                continue
+
+            # Symbol modifications
+            added = symbols[lib][symbol]['added']
+            removed = symbols[lib][symbol]['removed']
+            print(f"INFO: {symbol} in {lib} is moving from {removed} to {added}")

Perhaps use WARN instead of INFO.

On this part, I disagree.
Moving from a non stable (like experimental) ABI to stable or other non stable ABI (like internal) is not an issue.

Quoted 2 lines
Quoted 2 lines
devtools/check-symbol-change.py new file +1 -0
+            print(f"Please check it has gone though the deprecation process.")

[snip]

Signature · 1 line
David Marchand
#20 lore raw

RFC v3 6/8 build: mark exported symbols

In reply to David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

---
 drivers/baseband/acc/rte_acc100_pmd.c         |   1 +
 .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c         |   1 +
 drivers/baseband/fpga_lte_fec/fpga_lte_fec.c  |   1 +
 drivers/bus/auxiliary/auxiliary_common.c      |   2 +
 drivers/bus/cdx/cdx.c                         |   4 +
 drivers/bus/cdx/cdx_vfio.c                    |   4 +
 drivers/bus/dpaa/dpaa_bus.c                   | 104 ++++
 drivers/bus/fslmc/fslmc_bus.c                 |   4 +
 drivers/bus/fslmc/fslmc_vfio.c                |  12 +
 drivers/bus/fslmc/mc/dpbp.c                   |   6 +
 drivers/bus/fslmc/mc/dpci.c                   |   3 +
 drivers/bus/fslmc/mc/dpcon.c                  |   6 +
 drivers/bus/fslmc/mc/dpdmai.c                 |   8 +
 drivers/bus/fslmc/mc/dpio.c                   |  13 +
 drivers/bus/fslmc/mc/dpmng.c                  |   2 +
 drivers/bus/fslmc/mc/mc_sys.c                 |   1 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c      |   3 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpci.c      |   2 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c      |  11 +
 drivers/bus/fslmc/qbman/qbman_debug.c         |   2 +
 drivers/bus/fslmc/qbman/qbman_portal.c        |  41 ++
 drivers/bus/ifpga/ifpga_bus.c                 |   3 +
 drivers/bus/pci/bsd/pci.c                     |  10 +
 drivers/bus/pci/linux/pci.c                   |  10 +
 drivers/bus/pci/pci_common.c                  |  10 +
 drivers/bus/pci/windows/pci.c                 |  10 +
 drivers/bus/platform/platform.c               |   2 +
 drivers/bus/uacce/uacce.c                     |   9 +
 drivers/bus/vdev/vdev.c                       |   6 +
 drivers/bus/vmbus/linux/vmbus_bus.c           |   6 +
 drivers/bus/vmbus/vmbus_channel.c             |  13 +
 drivers/bus/vmbus/vmbus_common.c              |   3 +
 drivers/common/cnxk/cnxk_security.c           |  12 +
 drivers/common/cnxk/cnxk_utils.c              |   1 +
 drivers/common/cnxk/roc_platform.c            | 559 ++++++++++++++++++
 drivers/common/cpt/cpt_fpm_tables.c           |   2 +
 drivers/common/cpt/cpt_pmd_ops_helper.c       |   3 +
 drivers/common/dpaax/caamflib.c               |   1 +
 drivers/common/dpaax/dpaa_of.c                |  12 +
 drivers/common/dpaax/dpaax_iova_table.c       |   6 +
 drivers/common/ionic/ionic_common_uio.c       |   4 +
 .../common/mlx5/linux/mlx5_common_auxiliary.c |   1 +
 drivers/common/mlx5/linux/mlx5_common_os.c    |   9 +
 drivers/common/mlx5/linux/mlx5_common_verbs.c |   3 +
 drivers/common/mlx5/linux/mlx5_glue.c         |   1 +
 drivers/common/mlx5/linux/mlx5_nl.c           |  21 +
 drivers/common/mlx5/mlx5_common.c             |   9 +
 drivers/common/mlx5/mlx5_common_devx.c        |   9 +
 drivers/common/mlx5/mlx5_common_mp.c          |   8 +
 drivers/common/mlx5/mlx5_common_mr.c          |  11 +
 drivers/common/mlx5/mlx5_common_pci.c         |   2 +
 drivers/common/mlx5/mlx5_common_utils.c       |  11 +
 drivers/common/mlx5/mlx5_devx_cmds.c          |  51 ++
 drivers/common/mlx5/mlx5_malloc.c             |   4 +
 drivers/common/mlx5/windows/mlx5_common_os.c  |   5 +
 drivers/common/mlx5/windows/mlx5_glue.c       |   3 +-
 drivers/common/mvep/mvep_common.c             |   2 +
 drivers/common/nfp/nfp_common.c               |   7 +
 drivers/common/nfp/nfp_common_pci.c           |   1 +
 drivers/common/nfp/nfp_dev.c                  |   1 +
 drivers/common/nitrox/nitrox_device.c         |   1 +
 drivers/common/nitrox/nitrox_logs.c           |   1 +
 drivers/common/nitrox/nitrox_qp.c             |   2 +
 drivers/common/octeontx/octeontx_mbox.c       |   6 +
 drivers/common/sfc_efx/sfc_efx.c              | 273 +++++++++
 drivers/common/sfc_efx/sfc_efx_mcdi.c         |   2 +
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c     |   7 +
 drivers/crypto/cnxk/cn9k_cryptodev_ops.c      |   2 +
 drivers/crypto/cnxk/cnxk_cryptodev_ops.c      |   7 +
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   2 +
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   2 +
 drivers/crypto/octeontx/otx_cryptodev_ops.c   |   2 +
 .../scheduler/rte_cryptodev_scheduler.c       |  10 +
 drivers/dma/cnxk/cnxk_dmadev_fp.c             |   4 +
 drivers/event/cnxk/cnxk_worker.c              |   2 +
 drivers/event/dlb2/rte_pmd_dlb2.c             |   1 +
 drivers/mempool/cnxk/cn10k_hwpool_ops.c       |   3 +
 drivers/mempool/dpaa/dpaa_mempool.c           |   2 +
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c      |   5 +
 drivers/net/atlantic/rte_pmd_atlantic.c       |   6 +
 drivers/net/bnxt/rte_pmd_bnxt.c               |  16 +
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  12 +
 drivers/net/bonding/rte_eth_bond_api.c        |  15 +
 drivers/net/cnxk/cnxk_ethdev.c                |   3 +
 drivers/net/cnxk/cnxk_ethdev_sec.c            |   9 +
 drivers/net/dpaa/dpaa_ethdev.c                |   3 +
 drivers/net/dpaa2/dpaa2_ethdev.c              |  11 +
 drivers/net/dpaa2/dpaa2_mux.c                 |   3 +
 drivers/net/dpaa2/dpaa2_rxtx.c                |   1 +
 drivers/net/intel/i40e/rte_pmd_i40e.c         |  39 ++
 drivers/net/intel/iavf/iavf_ethdev.c          |   9 +
 drivers/net/intel/iavf/iavf_rxtx.c            |   8 +
 drivers/net/intel/ice/ice_diagnose.c          |   3 +
 drivers/net/intel/idpf/idpf_common_device.c   |  10 +
 drivers/net/intel/idpf/idpf_common_rxtx.c     |  33 ++
 drivers/net/intel/idpf/idpf_common_virtchnl.c |  29 +
 drivers/net/intel/ipn3ke/ipn3ke_ethdev.c      |   1 +
 drivers/net/intel/ixgbe/rte_pmd_ixgbe.c       |  37 ++
 drivers/net/mlx5/mlx5.c                       |   1 +
 drivers/net/mlx5/mlx5_flow.c                  |   4 +
 drivers/net/mlx5/mlx5_rx.c                    |   2 +
 drivers/net/mlx5/mlx5_rxq.c                   |   2 +
 drivers/net/mlx5/mlx5_tx.c                    |   1 +
 drivers/net/mlx5/mlx5_txq.c                   |   3 +
 drivers/net/octeontx/octeontx_ethdev.c        |   1 +
 drivers/net/ring/rte_eth_ring.c               |   2 +
 drivers/net/softnic/rte_eth_softnic.c         |   1 +
 drivers/net/softnic/rte_eth_softnic_thread.c  |   1 +
 drivers/net/vhost/rte_eth_vhost.c             |   2 +
 drivers/power/kvm_vm/guest_channel.c          |   2 +
 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c         |  10 +
 drivers/raw/ifpga/rte_pmd_ifpga.c             |  11 +
 lib/acl/acl_bld.c                             |   1 +
 lib/acl/acl_run_scalar.c                      |   1 +
 lib/acl/rte_acl.c                             |  11 +
 lib/argparse/rte_argparse.c                   |   2 +
 lib/bbdev/bbdev_trace_points.c                |   2 +
 lib/bbdev/rte_bbdev.c                         |  31 +
 lib/bitratestats/rte_bitrate.c                |   4 +
 lib/bpf/bpf.c                                 |   2 +
 lib/bpf/bpf_convert.c                         |   1 +
 lib/bpf/bpf_dump.c                            |   1 +
 lib/bpf/bpf_exec.c                            |   2 +
 lib/bpf/bpf_load.c                            |   1 +
 lib/bpf/bpf_load_elf.c                        |   1 +
 lib/bpf/bpf_pkt.c                             |   4 +
 lib/bpf/bpf_stub.c                            |   2 +
 lib/cfgfile/rte_cfgfile.c                     |  17 +
 lib/cmdline/cmdline.c                         |   9 +
 lib/cmdline/cmdline_cirbuf.c                  |  19 +
 lib/cmdline/cmdline_parse.c                   |   4 +
 lib/cmdline/cmdline_parse_bool.c              |   1 +
 lib/cmdline/cmdline_parse_etheraddr.c         |   3 +
 lib/cmdline/cmdline_parse_ipaddr.c            |   3 +
 lib/cmdline/cmdline_parse_num.c               |   3 +
 lib/cmdline/cmdline_parse_portlist.c          |   3 +
 lib/cmdline/cmdline_parse_string.c            |   5 +
 lib/cmdline/cmdline_rdline.c                  |  15 +
 lib/cmdline/cmdline_socket.c                  |   3 +
 lib/cmdline/cmdline_vt100.c                   |   2 +
 lib/compressdev/rte_comp.c                    |   6 +
 lib/compressdev/rte_compressdev.c             |  25 +
 lib/compressdev/rte_compressdev_pmd.c         |   3 +
 lib/cryptodev/cryptodev_pmd.c                 |   7 +
 lib/cryptodev/cryptodev_trace_points.c        |   3 +
 lib/cryptodev/rte_cryptodev.c                 |  83 +++
 lib/dispatcher/rte_dispatcher.c               |  13 +
 lib/distributor/rte_distributor.c             |   9 +
 lib/dmadev/rte_dmadev.c                       |  19 +
 lib/dmadev/rte_dmadev_trace_points.c          |   7 +
 lib/eal/arm/rte_cpuflags.c                    |   3 +
 lib/eal/arm/rte_hypervisor.c                  |   1 +
 lib/eal/arm/rte_power_intrinsics.c            |   4 +
 lib/eal/common/eal_common_bus.c               |  10 +
 lib/eal/common/eal_common_class.c             |   4 +
 lib/eal/common/eal_common_config.c            |   7 +
 lib/eal/common/eal_common_cpuflags.c          |   1 +
 lib/eal/common/eal_common_debug.c             |   2 +
 lib/eal/common/eal_common_dev.c               |  19 +
 lib/eal/common/eal_common_devargs.c           |   9 +
 lib/eal/common/eal_common_errno.c             |   2 +
 lib/eal/common/eal_common_fbarray.c           |  26 +
 lib/eal/common/eal_common_hexdump.c           |   2 +
 lib/eal/common/eal_common_hypervisor.c        |   1 +
 lib/eal/common/eal_common_interrupts.c        |  27 +
 lib/eal/common/eal_common_launch.c            |   5 +
 lib/eal/common/eal_common_lcore.c             |  17 +
 lib/eal/common/eal_common_lcore_var.c         |   1 +
 lib/eal/common/eal_common_mcfg.c              |  20 +
 lib/eal/common/eal_common_memory.c            |  29 +
 lib/eal/common/eal_common_memzone.c           |   9 +
 lib/eal/common/eal_common_options.c           |   4 +
 lib/eal/common/eal_common_proc.c              |   8 +
 lib/eal/common/eal_common_string_fns.c        |   3 +
 lib/eal/common/eal_common_tailqs.c            |   3 +
 lib/eal/common/eal_common_thread.c            |  14 +
 lib/eal/common/eal_common_timer.c             |   4 +
 lib/eal/common/eal_common_trace.c             |  15 +
 lib/eal/common/eal_common_trace_ctf.c         |   1 +
 lib/eal/common/eal_common_trace_points.c      |  18 +
 lib/eal/common/eal_common_trace_utils.c       |   1 +
 lib/eal/common/eal_common_uuid.c              |   4 +
 lib/eal/common/rte_bitset.c                   |   1 +
 lib/eal/common/rte_keepalive.c                |   6 +
 lib/eal/common/rte_malloc.c                   |  22 +
 lib/eal/common/rte_random.c                   |   4 +
 lib/eal/common/rte_reciprocal.c               |   2 +
 lib/eal/common/rte_service.c                  |  31 +
 lib/eal/common/rte_version.c                  |   7 +
 lib/eal/freebsd/eal.c                         |  22 +
 lib/eal/freebsd/eal_alarm.c                   |   2 +
 lib/eal/freebsd/eal_dev.c                     |   4 +
 lib/eal/freebsd/eal_interrupts.c              |  19 +
 lib/eal/freebsd/eal_memory.c                  |   3 +
 lib/eal/freebsd/eal_thread.c                  |   2 +
 lib/eal/freebsd/eal_timer.c                   |   1 +
 lib/eal/linux/eal.c                           |   7 +
 lib/eal/linux/eal_alarm.c                     |   2 +
 lib/eal/linux/eal_dev.c                       |   4 +
 lib/eal/linux/eal_interrupts.c                |  19 +
 lib/eal/linux/eal_memory.c                    |   3 +
 lib/eal/linux/eal_thread.c                    |   2 +
 lib/eal/linux/eal_timer.c                     |   4 +
 lib/eal/linux/eal_vfio.c                      |  16 +
 lib/eal/loongarch/rte_cpuflags.c              |   3 +
 lib/eal/loongarch/rte_hypervisor.c            |   1 +
 lib/eal/loongarch/rte_power_intrinsics.c      |   4 +
 lib/eal/ppc/rte_cpuflags.c                    |   3 +
 lib/eal/ppc/rte_hypervisor.c                  |   1 +
 lib/eal/ppc/rte_power_intrinsics.c            |   4 +
 lib/eal/riscv/rte_cpuflags.c                  |   3 +
 lib/eal/riscv/rte_hypervisor.c                |   1 +
 lib/eal/riscv/rte_power_intrinsics.c          |   4 +
 lib/eal/unix/eal_debug.c                      |   2 +
 lib/eal/unix/eal_filesystem.c                 |   1 +
 lib/eal/unix/eal_firmware.c                   |   1 +
 lib/eal/unix/eal_unix_memory.c                |   4 +
 lib/eal/unix/eal_unix_timer.c                 |   1 +
 lib/eal/unix/rte_thread.c                     |  13 +
 lib/eal/windows/eal.c                         |  11 +
 lib/eal/windows/eal_alarm.c                   |   2 +
 lib/eal/windows/eal_debug.c                   |   1 +
 lib/eal/windows/eal_dev.c                     |   4 +
 lib/eal/windows/eal_interrupts.c              |  19 +
 lib/eal/windows/eal_memory.c                  |   7 +
 lib/eal/windows/eal_mp.c                      |   6 +
 lib/eal/windows/eal_thread.c                  |   1 +
 lib/eal/windows/eal_timer.c                   |   1 +
 lib/eal/windows/rte_thread.c                  |  14 +
 lib/eal/x86/rte_cpuflags.c                    |   3 +
 lib/eal/x86/rte_hypervisor.c                  |   1 +
 lib/eal/x86/rte_power_intrinsics.c            |   4 +
 lib/eal/x86/rte_spinlock.c                    |   1 +
 lib/efd/rte_efd.c                             |   7 +
 lib/ethdev/ethdev_driver.c                    |  24 +
 lib/ethdev/ethdev_linux_ethtool.c             |   3 +
 lib/ethdev/ethdev_private.c                   |   2 +
 lib/ethdev/ethdev_trace_points.c              |   6 +
 lib/ethdev/rte_ethdev.c                       | 168 ++++++
 lib/ethdev/rte_ethdev_cman.c                  |   4 +
 lib/ethdev/rte_flow.c                         |  64 ++
 lib/ethdev/rte_mtr.c                          |  21 +
 lib/ethdev/rte_tm.c                           |  31 +
 lib/eventdev/eventdev_private.c               |   2 +
 lib/eventdev/eventdev_trace_points.c          |  11 +
 lib/eventdev/rte_event_crypto_adapter.c       |  15 +
 lib/eventdev/rte_event_dma_adapter.c          |  15 +
 lib/eventdev/rte_event_eth_rx_adapter.c       |  23 +
 lib/eventdev/rte_event_eth_tx_adapter.c       |  17 +
 lib/eventdev/rte_event_ring.c                 |   4 +
 lib/eventdev/rte_event_timer_adapter.c        |  11 +
 lib/eventdev/rte_eventdev.c                   |  46 ++
 lib/fib/rte_fib.c                             |  10 +
 lib/fib/rte_fib6.c                            |   9 +
 lib/gpudev/gpudev.c                           |  32 +
 lib/graph/graph.c                             |  16 +
 lib/graph/graph_debug.c                       |   1 +
 lib/graph/graph_stats.c                       |   4 +
 lib/graph/node.c                              |  11 +
 lib/graph/rte_graph_model_mcore_dispatch.c    |   3 +
 lib/graph/rte_graph_worker.c                  |   3 +
 lib/gro/rte_gro.c                             |   6 +
 lib/gso/rte_gso.c                             |   1 +
 lib/hash/rte_cuckoo_hash.c                    |  27 +
 lib/hash/rte_fbk_hash.c                       |   3 +
 lib/hash/rte_hash_crc.c                       |   2 +
 lib/hash/rte_thash.c                          |  12 +
 lib/hash/rte_thash_gf2_poly_math.c            |   1 +
 lib/hash/rte_thash_gfni.c                     |   2 +
 lib/ip_frag/rte_ip_frag_common.c              |   5 +
 lib/ip_frag/rte_ipv4_fragmentation.c          |   2 +
 lib/ip_frag/rte_ipv4_reassembly.c             |   1 +
 lib/ip_frag/rte_ipv6_fragmentation.c          |   1 +
 lib/ip_frag/rte_ipv6_reassembly.c             |   1 +
 lib/ipsec/ipsec_sad.c                         |   6 +
 lib/ipsec/ipsec_telemetry.c                   |   2 +
 lib/ipsec/sa.c                                |   4 +
 lib/ipsec/ses.c                               |   1 +
 lib/jobstats/rte_jobstats.c                   |  14 +
 lib/kvargs/rte_kvargs.c                       |   8 +
 lib/latencystats/rte_latencystats.c           |   5 +
 lib/log/log.c                                 |  22 +
 lib/log/log_color.c                           |   1 +
 lib/log/log_syslog.c                          |   1 +
 lib/log/log_timestamp.c                       |   1 +
 lib/lpm/rte_lpm.c                             |   8 +
 lib/lpm/rte_lpm6.c                            |  10 +
 lib/mbuf/rte_mbuf.c                           |  17 +
 lib/mbuf/rte_mbuf_dyn.c                       |   9 +
 lib/mbuf/rte_mbuf_pool_ops.c                  |   5 +
 lib/mbuf/rte_mbuf_ptype.c                     |   8 +
 lib/member/rte_member.c                       |  13 +
 lib/mempool/mempool_trace_points.c            |  10 +
 lib/mempool/rte_mempool.c                     |  27 +
 lib/mempool/rte_mempool_ops.c                 |   4 +
 lib/mempool/rte_mempool_ops_default.c         |   4 +
 lib/meter/rte_meter.c                         |   6 +
 lib/metrics/rte_metrics.c                     |   8 +
 lib/metrics/rte_metrics_telemetry.c           |  11 +
 lib/mldev/mldev_utils.c                       |   2 +
 lib/mldev/mldev_utils_neon.c                  |  18 +
 lib/mldev/mldev_utils_neon_bfloat16.c         |   2 +
 lib/mldev/mldev_utils_scalar.c                |  18 +
 lib/mldev/mldev_utils_scalar_bfloat16.c       |   2 +
 lib/mldev/rte_mldev.c                         |  37 ++
 lib/mldev/rte_mldev_pmd.c                     |   2 +
 lib/net/rte_arp.c                             |   1 +
 lib/net/rte_ether.c                           |   3 +
 lib/net/rte_net.c                             |   2 +
 lib/net/rte_net_crc.c                         |   1 +
 lib/node/ethdev_ctrl.c                        |   2 +
 lib/node/ip4_lookup.c                         |   1 +
 lib/node/ip4_reassembly.c                     |   1 +
 lib/node/ip4_rewrite.c                        |   1 +
 lib/node/ip6_lookup.c                         |   1 +
 lib/node/ip6_rewrite.c                        |   1 +
 lib/node/udp4_input.c                         |   2 +
 lib/pcapng/rte_pcapng.c                       |   7 +
 lib/pci/rte_pci.c                             |   3 +
 lib/pdcp/rte_pdcp.c                           |   5 +
 lib/pdump/rte_pdump.c                         |   9 +
 lib/pipeline/rte_pipeline.c                   |  23 +
 lib/pipeline/rte_port_in_action.c             |   8 +
 lib/pipeline/rte_swx_ctl.c                    |  17 +
 lib/pipeline/rte_swx_ipsec.c                  |   7 +
 lib/pipeline/rte_swx_pipeline.c               |  73 +++
 lib/pipeline/rte_table_action.c               |  16 +
 lib/port/rte_port_ethdev.c                    |   3 +
 lib/port/rte_port_eventdev.c                  |   3 +
 lib/port/rte_port_fd.c                        |   3 +
 lib/port/rte_port_frag.c                      |   2 +
 lib/port/rte_port_ras.c                       |   2 +
 lib/port/rte_port_ring.c                      |   6 +
 lib/port/rte_port_sched.c                     |   2 +
 lib/port/rte_port_source_sink.c               |   2 +
 lib/port/rte_port_sym_crypto.c                |   3 +
 lib/port/rte_swx_port_ethdev.c                |   2 +
 lib/port/rte_swx_port_fd.c                    |   2 +
 lib/port/rte_swx_port_ring.c                  |   2 +
 lib/port/rte_swx_port_source_sink.c           |   3 +
 lib/power/power_common.c                      |   8 +
 lib/power/rte_power_cpufreq.c                 |  18 +
 lib/power/rte_power_pmd_mgmt.c                |  10 +
 lib/power/rte_power_qos.c                     |   2 +
 lib/power/rte_power_uncore.c                  |  14 +
 lib/rawdev/rte_rawdev.c                       |  30 +
 lib/rcu/rte_rcu_qsbr.c                        |  11 +
 lib/regexdev/rte_regexdev.c                   |  26 +
 lib/reorder/rte_reorder.c                     |  11 +
 lib/rib/rte_rib.c                             |  14 +
 lib/rib/rte_rib6.c                            |  14 +
 lib/ring/rte_ring.c                           |  11 +
 lib/ring/rte_soring.c                         |   3 +
 lib/ring/soring.c                             |  16 +
 lib/sched/rte_approx.c                        |   1 +
 lib/sched/rte_pie.c                           |   2 +
 lib/sched/rte_red.c                           |   6 +
 lib/sched/rte_sched.c                         |  15 +
 lib/security/rte_security.c                   |  20 +
 lib/stack/rte_stack.c                         |   3 +
 lib/table/rte_swx_table_em.c                  |   2 +
 lib/table/rte_swx_table_learner.c             |  10 +
 lib/table/rte_swx_table_selector.c            |   6 +
 lib/table/rte_swx_table_wm.c                  |   1 +
 lib/table/rte_table_acl.c                     |   1 +
 lib/table/rte_table_array.c                   |   1 +
 lib/table/rte_table_hash_cuckoo.c             |   1 +
 lib/table/rte_table_hash_ext.c                |   1 +
 lib/table/rte_table_hash_key16.c              |   2 +
 lib/table/rte_table_hash_key32.c              |   2 +
 lib/table/rte_table_hash_key8.c               |   2 +
 lib/table/rte_table_hash_lru.c                |   1 +
 lib/table/rte_table_lpm.c                     |   1 +
 lib/table/rte_table_lpm_ipv6.c                |   1 +
 lib/table/rte_table_stub.c                    |   1 +
 lib/telemetry/telemetry.c                     |   3 +
 lib/telemetry/telemetry_data.c                |  17 +
 lib/telemetry/telemetry_legacy.c              |   1 +
 lib/timer/rte_timer.c                         |  18 +
 lib/vhost/socket.c                            |  16 +
 lib/vhost/vdpa.c                              |  11 +
 lib/vhost/vhost.c                             |  41 ++
 lib/vhost/vhost_crypto.c                      |   6 +
 lib/vhost/vhost_user.c                        |   2 +
 lib/vhost/virtio_net.c                        |   7 +
 385 files changed, 4123 insertions(+), 2 deletions(-)
drivers/baseband/acc/rte_acc100_pmd.c +1 -0
index d33e42c807..3351c337b7 100644
@@ -4635,6 +4635,7 @@ acc100_configure(const char *dev_name, struct rte_acc_conf *conf)
 	return 0;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_acc_configure, 22.11)
 int
 rte_acc_configure(const char *dev_name, struct rte_acc_conf *conf)
 {
drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c +1 -0
index 65b7e118cd..f3dae35666 100644
@@ -3366,6 +3366,7 @@ static int agx100_configure(const char *dev_name, const struct rte_fpga_5gnr_fec
 	return 0;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_fpga_5gnr_fec_configure, 20.11)
 int rte_fpga_5gnr_fec_configure(const char *dev_name, const struct rte_fpga_5gnr_fec_conf *conf)
 {
 	struct rte_bbdev *bbdev = rte_bbdev_get_named_dev(dev_name);
drivers/baseband/fpga_lte_fec/fpga_lte_fec.c +1 -0
index 04c1f95180..1c614da354 100644
@@ -2452,6 +2452,7 @@ set_default_fpga_conf(struct rte_fpga_lte_fec_conf *def_conf)
 }
 
 /* Initial configuration of FPGA LTE FEC device */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_fpga_lte_fec_configure, 20.11)
 int
 rte_fpga_lte_fec_configure(const char *dev_name,
 		const struct rte_fpga_lte_fec_conf *conf)
drivers/bus/auxiliary/auxiliary_common.c +2 -0
index b444eb43ef..0cb646930f 100644
@@ -258,6 +258,7 @@ auxiliary_parse(const char *name, void *addr)
 }
 
 /* Register a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_auxiliary_register)
 void
 rte_auxiliary_register(struct rte_auxiliary_driver *driver)
 {
@@ -265,6 +266,7 @@ rte_auxiliary_register(struct rte_auxiliary_driver *driver)
 }
 
 /* Unregister a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_auxiliary_unregister)
 void
 rte_auxiliary_unregister(struct rte_auxiliary_driver *driver)
 {
drivers/bus/cdx/cdx.c +4 -0
index 62b108e082..bde565c48b 100644
@@ -139,11 +139,13 @@ cdx_get_kernel_driver_by_path(const char *filename, char *driver_name,
 	return -1;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_map_device)
 int rte_cdx_map_device(struct rte_cdx_device *dev)
 {
 	return cdx_vfio_map_resource(dev);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_unmap_device)
 void rte_cdx_unmap_device(struct rte_cdx_device *dev)
 {
 	cdx_vfio_unmap_resource(dev);
@@ -478,6 +480,7 @@ cdx_parse(const char *name, void *addr)
 }
 
 /* register a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_register)
 void
 rte_cdx_register(struct rte_cdx_driver *driver)
 {
@@ -486,6 +489,7 @@ rte_cdx_register(struct rte_cdx_driver *driver)
 }
 
 /* unregister a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_unregister)
 void
 rte_cdx_unregister(struct rte_cdx_driver *driver)
 {
drivers/bus/cdx/cdx_vfio.c +4 -0
index 664f267471..d3fd02937c 100644
@@ -550,6 +550,7 @@ cdx_vfio_map_resource(struct rte_cdx_device *dev)
 		return cdx_vfio_map_resource_secondary(dev);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_vfio_intr_enable)
 int
 rte_cdx_vfio_intr_enable(const struct rte_intr_handle *intr_handle)
 {
@@ -584,6 +585,7 @@ rte_cdx_vfio_intr_enable(const struct rte_intr_handle *intr_handle)
 }
 
 /* disable MSI interrupts */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_vfio_intr_disable)
 int
 rte_cdx_vfio_intr_disable(const struct rte_intr_handle *intr_handle)
 {
@@ -611,6 +613,7 @@ rte_cdx_vfio_intr_disable(const struct rte_intr_handle *intr_handle)
 }
 
 /* Enable Bus Mastering */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_vfio_bm_enable)
 int
 rte_cdx_vfio_bm_enable(struct rte_cdx_device *dev)
 {
@@ -656,6 +659,7 @@ rte_cdx_vfio_bm_enable(struct rte_cdx_device *dev)
 }
 
 /* Disable Bus Mastering */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_cdx_vfio_bm_disable)
 int
 rte_cdx_vfio_bm_disable(struct rte_cdx_device *dev)
 {
drivers/bus/dpaa/dpaa_bus.c +104 -0

152 lines not on this page · raw message

drivers/bus/fslmc/fslmc_bus.c +4 -0
index 68ad2b801e..5d38d17525 100644
@@ -29,8 +29,10 @@
 struct rte_fslmc_bus rte_fslmc_bus;
 
 #define DPAA2_SEQN_DYNFIELD_NAME "dpaa2_seqn_dynfield"
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_seqn_dynfield_offset)
 int dpaa2_seqn_dynfield_offset = -1;
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_get_device_count)
 uint32_t
 rte_fslmc_get_device_count(enum rte_dpaa2_dev_type device_type)
 {
@@ -525,6 +527,7 @@ rte_fslmc_find_device(const struct rte_device *start, rte_dev_cmp_t cmp,
 }
 
 /*register a fslmc bus based dpaa2 driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_driver_register)
 void
 rte_fslmc_driver_register(struct rte_dpaa2_driver *driver)
 {
@@ -534,6 +537,7 @@ rte_fslmc_driver_register(struct rte_dpaa2_driver *driver)
 }
 
 /*un-register a fslmc bus based dpaa2 driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_driver_unregister)
 void
 rte_fslmc_driver_unregister(struct rte_dpaa2_driver *driver)
 {
drivers/bus/fslmc/fslmc_vfio.c +12 -0
index 7a584b9280..ab25261598 100644
@@ -83,6 +83,7 @@ enum {
 	FSLMC_VFIO_SOCKET_REQ_MEM
 };
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_get_mcp_ptr)
 void *
 dpaa2_get_mcp_ptr(int portal_idx)
 {
@@ -154,6 +155,7 @@ fslmc_io_virt2phy(const void *virtaddr)
 }
 
 /*register a fslmc bus based dpaa2 driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_object_register)
 void
 rte_fslmc_object_register(struct rte_dpaa2_object *object)
 {
@@ -984,6 +986,7 @@ fslmc_unmap_dma(uint64_t vaddr, uint64_t iovaddr, size_t len)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_cold_mem_vaddr_to_iova)
 uint64_t
 rte_fslmc_cold_mem_vaddr_to_iova(void *vaddr,
 	uint64_t size)
@@ -1002,6 +1005,7 @@ rte_fslmc_cold_mem_vaddr_to_iova(void *vaddr,
 	return RTE_BAD_IOVA;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_cold_mem_iova_to_vaddr)
 void *
 rte_fslmc_cold_mem_iova_to_vaddr(uint64_t iova,
 	uint64_t size)
@@ -1018,6 +1022,7 @@ rte_fslmc_cold_mem_iova_to_vaddr(uint64_t iova,
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_mem_vaddr_to_iova)
 __rte_hot uint64_t
 rte_fslmc_mem_vaddr_to_iova(void *vaddr)
 {
@@ -1027,6 +1032,7 @@ rte_fslmc_mem_vaddr_to_iova(void *vaddr)
 	return rte_fslmc_cold_mem_vaddr_to_iova(vaddr, 0);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_mem_iova_to_vaddr)
 __rte_hot void *
 rte_fslmc_mem_iova_to_vaddr(uint64_t iova)
 {
@@ -1036,6 +1042,7 @@ rte_fslmc_mem_iova_to_vaddr(uint64_t iova)
 	return rte_fslmc_cold_mem_iova_to_vaddr(iova, 0);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_io_vaddr_to_iova)
 uint64_t
 rte_fslmc_io_vaddr_to_iova(void *vaddr)
 {
@@ -1051,6 +1058,7 @@ rte_fslmc_io_vaddr_to_iova(void *vaddr)
 	return RTE_BAD_IOVA;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_io_iova_to_vaddr)
 void *
 rte_fslmc_io_iova_to_vaddr(uint64_t iova)
 {
@@ -1141,12 +1149,14 @@ fslmc_dmamap_seg(const struct rte_memseg_list *msl __rte_unused,
 	return ret;
 }
 
+RTE_EXPORT_SYMBOL(rte_fslmc_vfio_mem_dmamap)
 int
 rte_fslmc_vfio_mem_dmamap(uint64_t vaddr, uint64_t iova, uint64_t size)
 {
 	return fslmc_map_dma(vaddr, iova, size);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_fslmc_vfio_mem_dmaunmap)
 int
 rte_fslmc_vfio_mem_dmaunmap(uint64_t iova, uint64_t size)
 {
@@ -1264,6 +1274,7 @@ static intptr_t vfio_map_mcp_obj(const char *mcp_obj)
 
 #define IRQ_SET_BUF_LEN  (sizeof(struct vfio_irq_set) + sizeof(int))
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_dpaa2_intr_enable)
 int rte_dpaa2_intr_enable(struct rte_intr_handle *intr_handle, int index)
 {
 	int len, ret;
@@ -1295,6 +1306,7 @@ int rte_dpaa2_intr_enable(struct rte_intr_handle *intr_handle, int index)
 	return ret;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_dpaa2_intr_disable)
 int rte_dpaa2_intr_disable(struct rte_intr_handle *intr_handle, int index)
 {
 	struct vfio_irq_set *irq_set;
drivers/bus/fslmc/mc/dpbp.c +6 -0
index d9103409cf..241819faa3 100644
@@ -26,6 +26,7 @@
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_open)
 int dpbp_open(struct fsl_mc_io *mc_io,
 	      uint32_t cmd_flags,
 	      int dpbp_id,
@@ -157,6 +158,7 @@ int dpbp_destroy(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_enable)
 int dpbp_enable(struct fsl_mc_io *mc_io,
 		uint32_t cmd_flags,
 		uint16_t token)
@@ -179,6 +181,7 @@ int dpbp_enable(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_disable)
 int dpbp_disable(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token)
@@ -235,6 +238,7 @@ int dpbp_is_enabled(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_reset)
 int dpbp_reset(struct fsl_mc_io *mc_io,
 	       uint32_t cmd_flags,
 	       uint16_t token)
@@ -258,6 +262,7 @@ int dpbp_reset(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_get_attributes)
 int dpbp_get_attributes(struct fsl_mc_io *mc_io,
 			uint32_t cmd_flags,
 			uint16_t token,
@@ -329,6 +334,7 @@ int dpbp_get_api_version(struct fsl_mc_io *mc_io,
  * Return:  '0' on Success; Error code otherwise.
  */
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpbp_get_num_free_bufs)
 int dpbp_get_num_free_bufs(struct fsl_mc_io *mc_io,
 			   uint32_t cmd_flags,
 			   uint16_t token,
drivers/bus/fslmc/mc/dpci.c +3 -0
index 7e31327afa..303a4dac87 100644
@@ -315,6 +315,7 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpci_set_rx_queue)
 int dpci_set_rx_queue(struct fsl_mc_io *mc_io,
 		      uint32_t cmd_flags,
 		      uint16_t token,
@@ -477,6 +478,7 @@ int dpci_get_api_version(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpci_set_opr)
 int dpci_set_opr(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token,
@@ -515,6 +517,7 @@ int dpci_set_opr(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpci_get_opr)
 int dpci_get_opr(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token,
drivers/bus/fslmc/mc/dpcon.c +6 -0
index 2c46638dcb..4896ed4c66 100644
@@ -26,6 +26,7 @@
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_open)
 int dpcon_open(struct fsl_mc_io *mc_io,
 	       uint32_t cmd_flags,
 	       int dpcon_id,
@@ -64,6 +65,7 @@ int dpcon_open(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_close)
 int dpcon_close(struct fsl_mc_io *mc_io,
 		uint32_t cmd_flags,
 		uint16_t token)
@@ -164,6 +166,7 @@ int dpcon_destroy(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_enable)
 int dpcon_enable(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token)
@@ -187,6 +190,7 @@ int dpcon_enable(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_disable)
 int dpcon_disable(struct fsl_mc_io *mc_io,
 		  uint32_t cmd_flags,
 		  uint16_t token)
@@ -245,6 +249,7 @@ int dpcon_is_enabled(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_reset)
 int dpcon_reset(struct fsl_mc_io *mc_io,
 		uint32_t cmd_flags,
 		uint16_t token)
@@ -268,6 +273,7 @@ int dpcon_reset(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpcon_get_attributes)
 int dpcon_get_attributes(struct fsl_mc_io *mc_io,
 			 uint32_t cmd_flags,
 			 uint16_t token,
drivers/bus/fslmc/mc/dpdmai.c +8 -0
index 9c2f3bf9d5..a1709b45e9 100644
@@ -24,6 +24,7 @@
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_open)
 int dpdmai_open(struct fsl_mc_io *mc_io,
 		uint32_t cmd_flags,
 		int dpdmai_id,
@@ -62,6 +63,7 @@ int dpdmai_open(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_close)
 int dpdmai_close(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token)
@@ -171,6 +173,7 @@ int dpdmai_destroy(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_enable)
 int dpdmai_enable(struct fsl_mc_io *mc_io,
 		  uint32_t cmd_flags,
 		  uint16_t token)
@@ -194,6 +197,7 @@ int dpdmai_enable(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_disable)
 int dpdmai_disable(struct fsl_mc_io *mc_io,
 		   uint32_t cmd_flags,
 		   uint16_t token)
@@ -276,6 +280,7 @@ int dpdmai_reset(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_get_attributes)
 int dpdmai_get_attributes(struct fsl_mc_io *mc_io,
 			  uint32_t cmd_flags,
 			  uint16_t token,
@@ -320,6 +325,7 @@ int dpdmai_get_attributes(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_set_rx_queue)
 int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io,
 			uint32_t cmd_flags,
 			uint16_t token,
@@ -362,6 +368,7 @@ int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_get_rx_queue)
 int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io,
 			uint32_t cmd_flags,
 			uint16_t token,
@@ -412,6 +419,7 @@ int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpdmai_get_tx_queue)
 int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io,
 			uint32_t cmd_flags,
 			uint16_t token,
drivers/bus/fslmc/mc/dpio.c +13 -0
index 97c08fa713..c9c3cd1b62 100644
@@ -26,6 +26,7 @@
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_open)
 int dpio_open(struct fsl_mc_io *mc_io,
 	      uint32_t cmd_flags,
 	      int dpio_id,
@@ -61,6 +62,7 @@ int dpio_open(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_close)
 int dpio_close(struct fsl_mc_io *mc_io,
 	       uint32_t cmd_flags,
 	       uint16_t token)
@@ -173,6 +175,7 @@ int dpio_destroy(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_enable)
 int dpio_enable(struct fsl_mc_io *mc_io,
 		uint32_t cmd_flags,
 		uint16_t token)
@@ -196,6 +199,7 @@ int dpio_enable(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_disable)
 int dpio_disable(struct fsl_mc_io *mc_io,
 		 uint32_t cmd_flags,
 		 uint16_t token)
@@ -253,6 +257,7 @@ int dpio_is_enabled(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_reset)
 int dpio_reset(struct fsl_mc_io *mc_io,
 	       uint32_t cmd_flags,
 	       uint16_t token)
@@ -277,6 +282,7 @@ int dpio_reset(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_get_attributes)
 int dpio_get_attributes(struct fsl_mc_io *mc_io,
 			uint32_t cmd_flags,
 			uint16_t token,
@@ -322,6 +328,7 @@ int dpio_get_attributes(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_set_stashing_destination)
 int dpio_set_stashing_destination(struct fsl_mc_io *mc_io,
 				  uint32_t cmd_flags,
 				  uint16_t token,
@@ -350,6 +357,7 @@ int dpio_set_stashing_destination(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_get_stashing_destination)
 int dpio_get_stashing_destination(struct fsl_mc_io *mc_io,
 				  uint32_t cmd_flags,
 				  uint16_t token,
@@ -386,6 +394,7 @@ int dpio_get_stashing_destination(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_set_stashing_destination_by_core_id)
 int dpio_set_stashing_destination_by_core_id(struct fsl_mc_io *mc_io,
 					uint32_t cmd_flags,
 					uint16_t token,
@@ -414,6 +423,7 @@ int dpio_set_stashing_destination_by_core_id(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_set_stashing_destination_source)
 int dpio_set_stashing_destination_source(struct fsl_mc_io *mc_io,
 				  uint32_t cmd_flags,
 				  uint16_t token,
@@ -442,6 +452,7 @@ int dpio_set_stashing_destination_source(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_get_stashing_destination_source)
 int dpio_get_stashing_destination_source(struct fsl_mc_io *mc_io,
 				  uint32_t cmd_flags,
 				  uint16_t token,
@@ -478,6 +489,7 @@ int dpio_get_stashing_destination_source(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_add_static_dequeue_channel)
 int dpio_add_static_dequeue_channel(struct fsl_mc_io *mc_io,
 				    uint32_t cmd_flags,
 				    uint16_t token,
@@ -517,6 +529,7 @@ int dpio_add_static_dequeue_channel(struct fsl_mc_io *mc_io,
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpio_remove_static_dequeue_channel)
 int dpio_remove_static_dequeue_channel(struct fsl_mc_io *mc_io,
 				       uint32_t cmd_flags,
 				       uint16_t token,
drivers/bus/fslmc/mc/dpmng.c +2 -0
index 277080876d..ba662a8de5 100644
@@ -18,6 +18,7 @@
  *
  * Return:	'0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mc_get_version)
 int mc_get_version(struct fsl_mc_io *mc_io,
 		   uint32_t cmd_flags,
 		   struct mc_version *mc_ver_info)
@@ -57,6 +58,7 @@ int mc_get_version(struct fsl_mc_io *mc_io,
  *
  * Return:     '0' on Success; Error code otherwise.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mc_get_soc_version)
 int mc_get_soc_version(struct fsl_mc_io *mc_io,
 		       uint32_t cmd_flags,
 		       struct mc_soc_version *mc_platform_info)
drivers/bus/fslmc/mc/mc_sys.c +1 -0
index 76fdcd5c8a..63bd25bc4f 100644
@@ -52,6 +52,7 @@ static int mc_status_to_error(enum mc_cmd_status status)
 	return -EINVAL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mc_send_command)
 int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd)
 {
 	enum mc_cmd_status status;
drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c +3 -0
index 0ca3b2b2e4..29c4151169 100644
@@ -95,6 +95,7 @@ dpaa2_create_dpbp_device(int vdev_fd __rte_unused,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_alloc_dpbp_dev)
 struct dpaa2_dpbp_dev *dpaa2_alloc_dpbp_dev(void)
 {
 	struct dpaa2_dpbp_dev *dpbp_dev = NULL;
@@ -108,6 +109,7 @@ struct dpaa2_dpbp_dev *dpaa2_alloc_dpbp_dev(void)
 	return dpbp_dev;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_free_dpbp_dev)
 void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp)
 {
 	struct dpaa2_dpbp_dev *dpbp_dev = NULL;
@@ -121,6 +123,7 @@ void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp)
 	}
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_dpbp_supported)
 int dpaa2_dpbp_supported(void)
 {
 	if (TAILQ_EMPTY(&dpbp_dev_list))
drivers/bus/fslmc/portal/dpaa2_hw_dpci.c +2 -0
index 0ea859f887..2224bd326c 100644
@@ -151,6 +151,7 @@ rte_dpaa2_create_dpci_device(int vdev_fd __rte_unused,
 	return ret;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_dpaa2_alloc_dpci_dev)
 struct dpaa2_dpci_dev *rte_dpaa2_alloc_dpci_dev(void)
 {
 	struct dpaa2_dpci_dev *dpci_dev = NULL;
@@ -164,6 +165,7 @@ struct dpaa2_dpci_dev *rte_dpaa2_alloc_dpci_dev(void)
 	return dpci_dev;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_dpaa2_free_dpci_dev)
 void rte_dpaa2_free_dpci_dev(struct dpaa2_dpci_dev *dpci)
 {
 	struct dpaa2_dpci_dev *dpci_dev = NULL;
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +11 -0
index 2dfcf7a498..dc19143d6e 100644
@@ -40,9 +40,12 @@
 
 #define NUM_HOST_CPUS RTE_MAX_LCORE
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_io_portal)
 struct dpaa2_io_portal_t dpaa2_io_portal[RTE_MAX_LCORE];
+RTE_EXPORT_INTERNAL_SYMBOL(per_lcore__dpaa2_io)
 RTE_DEFINE_PER_LCORE(struct dpaa2_io_portal_t, _dpaa2_io);
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_global_active_dqs_list)
 struct swp_active_dqs rte_global_active_dqs_list[NUM_MAX_SWP];
 
 TAILQ_HEAD(dpio_dev_list, dpaa2_dpio_dev);
@@ -51,11 +54,14 @@ static struct dpio_dev_list dpio_dev_list
 static uint32_t io_space_count;
 
 /* Variable to store DPAA2 platform type */
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_svr_family)
 uint32_t dpaa2_svr_family;
 
 /* Variable to store DPAA2 DQRR size */
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_dqrr_size)
 uint8_t dpaa2_dqrr_size;
 /* Variable to store DPAA2 EQCR size */
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_eqcr_size)
 uint8_t dpaa2_eqcr_size;
 
 /* Variable to hold the portal_key, once created.*/
@@ -325,6 +331,7 @@ static struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(void)
 	return dpio_dev;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_affine_qbman_swp)
 int
 dpaa2_affine_qbman_swp(void)
 {
@@ -346,6 +353,7 @@ dpaa2_affine_qbman_swp(void)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_affine_qbman_ethrx_swp)
 int
 dpaa2_affine_qbman_ethrx_swp(void)
 {
@@ -606,6 +614,7 @@ dpaa2_create_dpio_device(int vdev_fd,
 	return -1;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_free_dq_storage)
 void
 dpaa2_free_dq_storage(struct queue_storage_info_t *q_storage)
 {
@@ -617,6 +626,7 @@ dpaa2_free_dq_storage(struct queue_storage_info_t *q_storage)
 	}
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_alloc_dq_storage)
 int
 dpaa2_alloc_dq_storage(struct queue_storage_info_t *q_storage)
 {
@@ -639,6 +649,7 @@ dpaa2_alloc_dq_storage(struct queue_storage_info_t *q_storage)
 	return -1;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaa2_free_eq_descriptors)
 uint32_t
 dpaa2_free_eq_descriptors(void)
 {
drivers/bus/fslmc/qbman/qbman_debug.c +2 -0
index 0e471ec3fd..c4c646bf55 100644
@@ -325,6 +325,7 @@ uint16_t qbman_fq_attr_get_opridsz(struct qbman_fq_query_rslt *r)
 	return r->opridsz;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(qbman_fq_query_state)
 int qbman_fq_query_state(struct qbman_swp *s, uint32_t fqid,
 			 struct qbman_fq_query_np_rslt *r)
 {
@@ -382,6 +383,7 @@ int qbman_fq_state_overflow_error(const struct qbman_fq_query_np_rslt *r)
 	return (int)((r->st1 & 0x40) >> 6);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(qbman_fq_state_frame_count)
 uint32_t qbman_fq_state_frame_count(const struct qbman_fq_query_np_rslt *r)
 {
 	return (r->frm_cnt & 0x00FFFFFF);
drivers/bus/fslmc/qbman/qbman_portal.c +41 -0

277 lines not on this page · raw message

drivers/bus/ifpga/ifpga_bus.c +3 -0
index 11b31eee4f..03cd534a5c 100644
@@ -44,6 +44,7 @@ static TAILQ_HEAD(, rte_afu_driver) ifpga_afu_drv_list =
 
 
 /* register a ifpga bus based driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_ifpga_driver_register)
 void rte_ifpga_driver_register(struct rte_afu_driver *driver)
 {
 	RTE_VERIFY(driver);
@@ -52,6 +53,7 @@ void rte_ifpga_driver_register(struct rte_afu_driver *driver)
 }
 
 /* un-register a fpga bus based driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_ifpga_driver_unregister)
 void rte_ifpga_driver_unregister(struct rte_afu_driver *driver)
 {
 	TAILQ_REMOVE(&ifpga_afu_drv_list, driver, next);
@@ -71,6 +73,7 @@ ifpga_find_afu_dev(const struct rte_rawdev *rdev,
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_ifpga_find_afu_by_name)
 struct rte_afu_device *
 rte_ifpga_find_afu_by_name(const char *name)
 {
drivers/bus/pci/bsd/pci.c +10 -0
index 2f88252418..e962013686 100644
@@ -48,6 +48,7 @@
  */
 
 /* Map pci device */
+RTE_EXPORT_SYMBOL(rte_pci_map_device)
 int
 rte_pci_map_device(struct rte_pci_device *dev)
 {
@@ -69,6 +70,7 @@ rte_pci_map_device(struct rte_pci_device *dev)
 }
 
 /* Unmap pci device */
+RTE_EXPORT_SYMBOL(rte_pci_unmap_device)
 void
 rte_pci_unmap_device(struct rte_pci_device *dev)
 {
@@ -395,6 +397,7 @@ pci_device_iova_mode(const struct rte_pci_driver *pdrv __rte_unused,
 }
 
 /* Read PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_read_config)
 int rte_pci_read_config(const struct rte_pci_device *dev,
 		void *buf, size_t len, off_t offset)
 {
@@ -441,6 +444,7 @@ int rte_pci_read_config(const struct rte_pci_device *dev,
 }
 
 /* Write PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_write_config)
 int rte_pci_write_config(const struct rte_pci_device *dev,
 		const void *buf, size_t len, off_t offset)
 {
@@ -484,6 +488,7 @@ int rte_pci_write_config(const struct rte_pci_device *dev,
 }
 
 /* Read PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_read, 23.07)
 int rte_pci_mmio_read(const struct rte_pci_device *dev, int bar,
 		      void *buf, size_t len, off_t offset)
 {
@@ -495,6 +500,7 @@ int rte_pci_mmio_read(const struct rte_pci_device *dev, int bar,
 }
 
 /* Write PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_write, 23.07)
 int rte_pci_mmio_write(const struct rte_pci_device *dev, int bar,
 		       const void *buf, size_t len, off_t offset)
 {
@@ -505,6 +511,7 @@ int rte_pci_mmio_write(const struct rte_pci_device *dev, int bar,
 	return len;
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_map)
 int
 rte_pci_ioport_map(struct rte_pci_device *dev, int bar,
 		struct rte_pci_ioport *p)
@@ -566,6 +573,7 @@ pci_uio_ioport_read(struct rte_pci_ioport *p,
 #endif
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_read)
 void
 rte_pci_ioport_read(struct rte_pci_ioport *p,
 		void *data, size_t len, off_t offset)
@@ -608,6 +616,7 @@ pci_uio_ioport_write(struct rte_pci_ioport *p,
 #endif
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_write)
 void
 rte_pci_ioport_write(struct rte_pci_ioport *p,
 		const void *data, size_t len, off_t offset)
@@ -621,6 +630,7 @@ rte_pci_ioport_write(struct rte_pci_ioport *p,
 	}
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_unmap)
 int
 rte_pci_ioport_unmap(struct rte_pci_ioport *p)
 {
drivers/bus/pci/linux/pci.c +10 -0
index 9056035b33..b820c5820a 100644
@@ -54,6 +54,7 @@ pci_get_kernel_driver_by_path(const char *filename, char *dri_name,
 }
 
 /* Map pci device */
+RTE_EXPORT_SYMBOL(rte_pci_map_device)
 int
 rte_pci_map_device(struct rte_pci_device *dev)
 {
@@ -84,6 +85,7 @@ rte_pci_map_device(struct rte_pci_device *dev)
 }
 
 /* Unmap pci device */
+RTE_EXPORT_SYMBOL(rte_pci_unmap_device)
 void
 rte_pci_unmap_device(struct rte_pci_device *dev)
 {
@@ -627,6 +629,7 @@ pci_device_iova_mode(const struct rte_pci_driver *pdrv,
 }
 
 /* Read PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_read_config)
 int rte_pci_read_config(const struct rte_pci_device *device,
 		void *buf, size_t len, off_t offset)
 {
@@ -650,6 +653,7 @@ int rte_pci_read_config(const struct rte_pci_device *device,
 }
 
 /* Write PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_write_config)
 int rte_pci_write_config(const struct rte_pci_device *device,
 		const void *buf, size_t len, off_t offset)
 {
@@ -673,6 +677,7 @@ int rte_pci_write_config(const struct rte_pci_device *device,
 }
 
 /* Read PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_read, 23.07)
 int rte_pci_mmio_read(const struct rte_pci_device *device, int bar,
 		void *buf, size_t len, off_t offset)
 {
@@ -695,6 +700,7 @@ int rte_pci_mmio_read(const struct rte_pci_device *device, int bar,
 }
 
 /* Write PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_write, 23.07)
 int rte_pci_mmio_write(const struct rte_pci_device *device, int bar,
 		const void *buf, size_t len, off_t offset)
 {
@@ -716,6 +722,7 @@ int rte_pci_mmio_write(const struct rte_pci_device *device, int bar,
 	}
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_map)
 int
 rte_pci_ioport_map(struct rte_pci_device *dev, int bar,
 		struct rte_pci_ioport *p)
@@ -743,6 +750,7 @@ rte_pci_ioport_map(struct rte_pci_device *dev, int bar,
 	return ret;
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_read)
 void
 rte_pci_ioport_read(struct rte_pci_ioport *p,
 		void *data, size_t len, off_t offset)
@@ -762,6 +770,7 @@ rte_pci_ioport_read(struct rte_pci_ioport *p,
 	}
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_write)
 void
 rte_pci_ioport_write(struct rte_pci_ioport *p,
 		const void *data, size_t len, off_t offset)
@@ -781,6 +790,7 @@ rte_pci_ioport_write(struct rte_pci_ioport *p,
 	}
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_unmap)
 int
 rte_pci_ioport_unmap(struct rte_pci_ioport *p)
 {
drivers/bus/pci/pci_common.c +10 -0
index 70faae4e44..f9fe90195b 100644
@@ -32,6 +32,7 @@
 
 #define SYSFS_PCI_DEVICES "/sys/bus/pci/devices"
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_pci_get_sysfs_path)
 const char *rte_pci_get_sysfs_path(void)
 {
 	const char *path = NULL;
@@ -476,6 +477,7 @@ pci_dump_one_device(FILE *f, struct rte_pci_device *dev)
 }
 
 /* dump devices on the bus */
+RTE_EXPORT_SYMBOL(rte_pci_dump)
 void
 rte_pci_dump(FILE *f)
 {
@@ -500,6 +502,7 @@ pci_parse(const char *name, void *addr)
 }
 
 /* register a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_pci_register)
 void
 rte_pci_register(struct rte_pci_driver *driver)
 {
@@ -507,6 +510,7 @@ rte_pci_register(struct rte_pci_driver *driver)
 }
 
 /* unregister a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_pci_unregister)
 void
 rte_pci_unregister(struct rte_pci_driver *driver)
 {
@@ -794,6 +798,7 @@ rte_pci_get_iommu_class(void)
 	return iova_mode;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_has_capability_list, 23.11)
 bool
 rte_pci_has_capability_list(const struct rte_pci_device *dev)
 {
@@ -805,12 +810,14 @@ rte_pci_has_capability_list(const struct rte_pci_device *dev)
 	return (status & RTE_PCI_STATUS_CAP_LIST) != 0;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_find_capability, 23.11)
 off_t
 rte_pci_find_capability(const struct rte_pci_device *dev, uint8_t cap)
 {
 	return rte_pci_find_next_capability(dev, cap, 0);
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_find_next_capability, 23.11)
 off_t
 rte_pci_find_next_capability(const struct rte_pci_device *dev, uint8_t cap,
 	off_t offset)
@@ -848,6 +855,7 @@ rte_pci_find_next_capability(const struct rte_pci_device *dev, uint8_t cap,
 	return 0;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_find_ext_capability, 20.11)
 off_t
 rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap)
 {
@@ -890,6 +898,7 @@ rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap)
 	return 0;
 }
 
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_set_bus_master, 21.08)
 int
 rte_pci_set_bus_master(const struct rte_pci_device *dev, bool enable)
 {
@@ -918,6 +927,7 @@ rte_pci_set_bus_master(const struct rte_pci_device *dev, bool enable)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_pci_pasid_set_state)
 int
 rte_pci_pasid_set_state(const struct rte_pci_device *dev,
 		off_t offset, bool enable)
drivers/bus/pci/windows/pci.c +10 -0
index 36e6f89093..515e652818 100644
@@ -36,6 +36,7 @@ DEFINE_DEVPROPKEY(DEVPKEY_Device_Numa_Node, 0x540b947e, 0x8b40, 0x45bc,
  */
 
 /* Map pci device */
+RTE_EXPORT_SYMBOL(rte_pci_map_device)
 int
 rte_pci_map_device(struct rte_pci_device *dev)
 {
@@ -50,6 +51,7 @@ rte_pci_map_device(struct rte_pci_device *dev)
 }
 
 /* Unmap pci device */
+RTE_EXPORT_SYMBOL(rte_pci_unmap_device)
 void
 rte_pci_unmap_device(struct rte_pci_device *dev __rte_unused)
 {
@@ -61,6 +63,7 @@ rte_pci_unmap_device(struct rte_pci_device *dev __rte_unused)
 }
 
 /* Read PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_read_config)
 int
 rte_pci_read_config(const struct rte_pci_device *dev __rte_unused,
 	void *buf __rte_unused, size_t len __rte_unused,
@@ -75,6 +78,7 @@ rte_pci_read_config(const struct rte_pci_device *dev __rte_unused,
 }
 
 /* Write PCI config space. */
+RTE_EXPORT_SYMBOL(rte_pci_write_config)
 int
 rte_pci_write_config(const struct rte_pci_device *dev __rte_unused,
 	const void *buf __rte_unused, size_t len __rte_unused,
@@ -89,6 +93,7 @@ rte_pci_write_config(const struct rte_pci_device *dev __rte_unused,
 }
 
 /* Read PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_read, 23.07)
 int
 rte_pci_mmio_read(const struct rte_pci_device *dev, int bar,
 		      void *buf, size_t len, off_t offset)
@@ -101,6 +106,7 @@ rte_pci_mmio_read(const struct rte_pci_device *dev, int bar,
 }
 
 /* Write PCI MMIO space. */
+RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pci_mmio_write, 23.07)
 int
 rte_pci_mmio_write(const struct rte_pci_device *dev, int bar,
 		       const void *buf, size_t len, off_t offset)
@@ -124,6 +130,7 @@ pci_device_iova_mode(const struct rte_pci_driver *pdrv __rte_unused,
 	return RTE_IOVA_DC;
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_map)
 int
 rte_pci_ioport_map(struct rte_pci_device *dev __rte_unused,
 	int bar __rte_unused, struct rte_pci_ioport *p __rte_unused)
@@ -137,6 +144,7 @@ rte_pci_ioport_map(struct rte_pci_device *dev __rte_unused,
 }
 
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_read)
 void
 rte_pci_ioport_read(struct rte_pci_ioport *p __rte_unused,
 	void *data __rte_unused, size_t len __rte_unused,
@@ -149,6 +157,7 @@ rte_pci_ioport_read(struct rte_pci_ioport *p __rte_unused,
 	 */
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_unmap)
 int
 rte_pci_ioport_unmap(struct rte_pci_ioport *p __rte_unused)
 {
@@ -171,6 +180,7 @@ pci_device_iommu_support_va(const struct rte_pci_device *dev __rte_unused)
 	return false;
 }
 
+RTE_EXPORT_SYMBOL(rte_pci_ioport_write)
 void
 rte_pci_ioport_write(struct rte_pci_ioport *p __rte_unused,
 		const void *data __rte_unused, size_t len __rte_unused,
drivers/bus/platform/platform.c +2 -0
index 11892caa24..95b9651af4 100644
@@ -28,12 +28,14 @@
 
 #define PLATFORM_BUS_DEVICES_PATH "/sys/bus/platform/devices"
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_platform_register)
 void
 rte_platform_register(struct rte_platform_driver *pdrv)
 {
 	TAILQ_INSERT_TAIL(&platform_bus.driver_list, pdrv, next);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_platform_unregister)
 void
 rte_platform_unregister(struct rte_platform_driver *pdrv)
 {
drivers/bus/uacce/uacce.c +9 -0
index 9ca048122d..6b39b0b81d 100644
@@ -582,6 +582,7 @@ uacce_dev_iterate(const void *start, const char *str,
 	return dev;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_avail_queues)
 int
 rte_uacce_avail_queues(struct rte_uacce_device *dev)
 {
@@ -595,6 +596,7 @@ rte_uacce_avail_queues(struct rte_uacce_device *dev)
 	return ret;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_alloc)
 int
 rte_uacce_queue_alloc(struct rte_uacce_device *dev, struct rte_uacce_qcontex *qctx)
 {
@@ -609,6 +611,7 @@ rte_uacce_queue_alloc(struct rte_uacce_device *dev, struct rte_uacce_qcontex *qc
 	return -EIO;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_free)
 void
 rte_uacce_queue_free(struct rte_uacce_qcontex *qctx)
 {
@@ -618,6 +621,7 @@ rte_uacce_queue_free(struct rte_uacce_qcontex *qctx)
 	qctx->fd = -1;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_start)
 int
 rte_uacce_queue_start(struct rte_uacce_qcontex *qctx)
 {
@@ -625,6 +629,7 @@ rte_uacce_queue_start(struct rte_uacce_qcontex *qctx)
 	return ioctl(qctx->fd, UACCE_CMD_START_Q);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_ioctl)
 int
 rte_uacce_queue_ioctl(struct rte_uacce_qcontex *qctx, unsigned long cmd, void *arg)
 {
@@ -634,6 +639,7 @@ rte_uacce_queue_ioctl(struct rte_uacce_qcontex *qctx, unsigned long cmd, void *a
 	return ioctl(qctx->fd, cmd, arg);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_mmap)
 void *
 rte_uacce_queue_mmap(struct rte_uacce_qcontex *qctx, enum rte_uacce_qfrt qfrt)
 {
@@ -659,6 +665,7 @@ rte_uacce_queue_mmap(struct rte_uacce_qcontex *qctx, enum rte_uacce_qfrt qfrt)
 	return addr;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_queue_unmap)
 void
 rte_uacce_queue_unmap(struct rte_uacce_qcontex *qctx, enum rte_uacce_qfrt qfrt)
 {
@@ -668,6 +675,7 @@ rte_uacce_queue_unmap(struct rte_uacce_qcontex *qctx, enum rte_uacce_qfrt qfrt)
 	}
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_register)
 void
 rte_uacce_register(struct rte_uacce_driver *driver)
 {
@@ -675,6 +683,7 @@ rte_uacce_register(struct rte_uacce_driver *driver)
 	driver->bus = &uacce_bus;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(rte_uacce_unregister)
 void
 rte_uacce_unregister(struct rte_uacce_driver *driver)
 {
drivers/bus/vdev/vdev.c +6 -0
index ec7abe7cda..0a9158d9cf 100644
@@ -51,6 +51,7 @@ static struct vdev_custom_scans vdev_custom_scans =
 static rte_spinlock_t vdev_custom_scan_lock = RTE_SPINLOCK_INITIALIZER;
 
 /* register a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_vdev_register)
 void
 rte_vdev_register(struct rte_vdev_driver *driver)
 {
@@ -58,12 +59,14 @@ rte_vdev_register(struct rte_vdev_driver *driver)
 }
 
 /* unregister a driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_vdev_unregister)
 void
 rte_vdev_unregister(struct rte_vdev_driver *driver)
 {
 	TAILQ_REMOVE(&vdev_driver_list, driver, next);
 }
 
+RTE_EXPORT_SYMBOL(rte_vdev_add_custom_scan)
 int
 rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
 {
@@ -92,6 +95,7 @@ rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
 	return (custom_scan == NULL) ? -1 : 0;
 }
 
+RTE_EXPORT_SYMBOL(rte_vdev_remove_custom_scan)
 int
 rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
 {
@@ -316,6 +320,7 @@ insert_vdev(const char *name, const char *args,
 	return ret;
 }
 
+RTE_EXPORT_SYMBOL(rte_vdev_init)
 int
 rte_vdev_init(const char *name, const char *args)
 {
@@ -355,6 +360,7 @@ vdev_remove_driver(struct rte_vdev_device *dev)
 	return driver->remove(dev);
 }
 
+RTE_EXPORT_SYMBOL(rte_vdev_uninit)
 int
 rte_vdev_uninit(const char *name)
 {
drivers/bus/vmbus/linux/vmbus_bus.c +6 -0
index 01d8111b85..27cb8da118 100644
@@ -164,6 +164,7 @@ static const char *map_names[VMBUS_MAX_RESOURCE] = {
 
 
 /* map the resources of a vmbus device in virtual memory */
+RTE_EXPORT_SYMBOL(rte_vmbus_map_device)
 int
 rte_vmbus_map_device(struct rte_vmbus_device *dev)
 {
@@ -222,6 +223,7 @@ rte_vmbus_map_device(struct rte_vmbus_device *dev)
 	return vmbus_uio_map_resource(dev);
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_unmap_device)
 void
 rte_vmbus_unmap_device(struct rte_vmbus_device *dev)
 {
@@ -338,6 +340,7 @@ vmbus_scan_one(const char *name)
 /*
  * Scan the content of the vmbus, and the devices in the devices list
  */
+RTE_EXPORT_SYMBOL(rte_vmbus_scan)
 int
 rte_vmbus_scan(void)
 {
@@ -369,16 +372,19 @@ rte_vmbus_scan(void)
 	return -1;
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_irq_mask)
 void rte_vmbus_irq_mask(struct rte_vmbus_device *device)
 {
 	vmbus_uio_irq_control(device, 1);
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_irq_unmask)
 void rte_vmbus_irq_unmask(struct rte_vmbus_device *device)
 {
 	vmbus_uio_irq_control(device, 0);
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_irq_read)
 int rte_vmbus_irq_read(struct rte_vmbus_device *device)
 {
 	return vmbus_uio_irq_read(device);
drivers/bus/vmbus/vmbus_channel.c +13 -0
index 925c2aa081..6e6a53e0ea 100644
@@ -47,6 +47,7 @@ vmbus_set_event(const struct vmbus_channel *chan)
 /*
  * Set the wait between when hypervisor examines the trigger.
  */
+RTE_EXPORT_SYMBOL(rte_vmbus_set_latency)
 void
 rte_vmbus_set_latency(const struct rte_vmbus_device *dev,
 		      const struct vmbus_channel *chan,
@@ -76,6 +77,7 @@ rte_vmbus_set_latency(const struct rte_vmbus_device *dev,
  * Since this in userspace, rely on the monitor page.
  * Can't do a hypercall from userspace.
  */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_signal_tx)
 void
 rte_vmbus_chan_signal_tx(const struct vmbus_channel *chan)
 {
@@ -93,6 +95,7 @@ rte_vmbus_chan_signal_tx(const struct vmbus_channel *chan)
 
 
 /* Do a simple send directly using transmit ring. */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_send)
 int rte_vmbus_chan_send(struct vmbus_channel *chan, uint16_t type,
 			void *data, uint32_t dlen,
 			uint64_t xactid, uint32_t flags, bool *need_sig)
@@ -136,6 +139,7 @@ int rte_vmbus_chan_send(struct vmbus_channel *chan, uint16_t type,
 }
 
 /* Do a scatter/gather send where the descriptor points to data. */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_send_sglist)
 int rte_vmbus_chan_send_sglist(struct vmbus_channel *chan,
 			       struct vmbus_gpa sg[], uint32_t sglen,
 			       void *data, uint32_t dlen,
@@ -179,6 +183,7 @@ int rte_vmbus_chan_send_sglist(struct vmbus_channel *chan,
 	return error;
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_rx_empty)
 bool rte_vmbus_chan_rx_empty(const struct vmbus_channel *channel)
 {
 	const struct vmbus_br *br = &channel->rxbr;
@@ -188,6 +193,7 @@ bool rte_vmbus_chan_rx_empty(const struct vmbus_channel *channel)
 }
 
 /* Signal host after reading N bytes */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_signal_read)
 void rte_vmbus_chan_signal_read(struct vmbus_channel *chan, uint32_t bytes_read)
 {
 	struct vmbus_br *rbr = &chan->rxbr;
@@ -218,6 +224,7 @@ void rte_vmbus_chan_signal_read(struct vmbus_channel *chan, uint32_t bytes_read)
 	vmbus_set_event(chan);
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_recv)
 int rte_vmbus_chan_recv(struct vmbus_channel *chan, void *data, uint32_t *len,
 			uint64_t *request_id)
 {
@@ -265,6 +272,7 @@ int rte_vmbus_chan_recv(struct vmbus_channel *chan, void *data, uint32_t *len,
 }
 
 /* TODO: replace this with inplace ring buffer (no copy) */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_recv_raw)
 int rte_vmbus_chan_recv_raw(struct vmbus_channel *chan,
 			    void *data, uint32_t *len)
 {
@@ -335,6 +343,7 @@ int vmbus_chan_create(const struct rte_vmbus_device *device,
 }
 
 /* Setup the primary channel */
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_open)
 int rte_vmbus_chan_open(struct rte_vmbus_device *device,
 			struct vmbus_channel **new_chan)
 {
@@ -355,6 +364,7 @@ int rte_vmbus_chan_open(struct rte_vmbus_device *device,
 	return err;
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_max_channels)
 int rte_vmbus_max_channels(const struct rte_vmbus_device *device)
 {
 	if (vmbus_uio_subchannels_supported(device, device->primary))
@@ -364,6 +374,7 @@ int rte_vmbus_max_channels(const struct rte_vmbus_device *device)
 }
 
 /* Setup secondary channel */
+RTE_EXPORT_SYMBOL(rte_vmbus_subchan_open)
 int rte_vmbus_subchan_open(struct vmbus_channel *primary,
 			   struct vmbus_channel **new_chan)
 {
@@ -379,11 +390,13 @@ int rte_vmbus_subchan_open(struct vmbus_channel *primary,
 	return 0;
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_sub_channel_index)
 uint16_t rte_vmbus_sub_channel_index(const struct vmbus_channel *chan)
 {
 	return chan->subchannel_id;
 }
 
+RTE_EXPORT_SYMBOL(rte_vmbus_chan_close)
 void rte_vmbus_chan_close(struct vmbus_channel *chan)
 {
 	const struct rte_vmbus_device *device = chan->device;
drivers/bus/vmbus/vmbus_common.c +3 -0
index 8a965d10d9..1f2be63236 100644
@@ -191,6 +191,7 @@ vmbus_ignore_device(struct rte_vmbus_device *dev)
  * all registered drivers that have a matching entry in its id_table
  * for discovered devices.
  */
+RTE_EXPORT_SYMBOL(rte_vmbus_probe)
 int
 rte_vmbus_probe(void)
 {
@@ -279,6 +280,7 @@ vmbus_devargs_lookup(struct rte_vmbus_device *dev)
 }
 
 /* register vmbus driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_vmbus_register)
 void
 rte_vmbus_register(struct rte_vmbus_driver *driver)
 {
@@ -289,6 +291,7 @@ rte_vmbus_register(struct rte_vmbus_driver *driver)
 }
 
 /* unregister vmbus driver */
+RTE_EXPORT_INTERNAL_SYMBOL(rte_vmbus_unregister)
 void
 rte_vmbus_unregister(struct rte_vmbus_driver *driver)
 {
drivers/common/cnxk/cnxk_security.c +12 -0
index a3c06c1e88..7245501d5a 100644
@@ -301,6 +301,7 @@ ot_ipsec_inb_tunnel_hdr_fill(struct roc_ot_ipsec_inb_sa *sa,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_inb_sa_fill)
 int
 cnxk_ot_ipsec_inb_sa_fill(struct roc_ot_ipsec_inb_sa *sa,
 			  struct rte_security_ipsec_xform *ipsec_xfrm,
@@ -410,6 +411,7 @@ cnxk_ot_ipsec_inb_sa_fill(struct roc_ot_ipsec_inb_sa *sa,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_outb_sa_fill)
 int
 cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa,
 			   struct rte_security_ipsec_xform *ipsec_xfrm,
@@ -574,18 +576,21 @@ cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_inb_sa_valid)
 bool
 cnxk_ot_ipsec_inb_sa_valid(struct roc_ot_ipsec_inb_sa *sa)
 {
 	return !!sa->w2.s.valid;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_outb_sa_valid)
 bool
 cnxk_ot_ipsec_outb_sa_valid(struct roc_ot_ipsec_outb_sa *sa)
 {
 	return !!sa->w2.s.valid;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_ivlen_get)
 uint8_t
 cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo,
 		     enum rte_crypto_auth_algorithm a_algo,
@@ -622,6 +627,7 @@ cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo,
 	return ivlen;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_icvlen_get)
 uint8_t
 cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo,
 		      enum rte_crypto_auth_algorithm a_algo,
@@ -668,6 +674,7 @@ cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo,
 	return icv;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_outb_roundup_byte)
 uint8_t
 cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo,
 			     enum rte_crypto_aead_algorithm aead_algo)
@@ -698,6 +705,7 @@ cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo,
 	return roundup_byte;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_outb_rlens_get)
 int
 cnxk_ipsec_outb_rlens_get(struct cnxk_ipsec_outb_rlens *rlens,
 			  struct rte_security_ipsec_xform *ipsec_xfrm,
@@ -970,6 +978,7 @@ on_fill_ipsec_common_sa(struct rte_security_ipsec_xform *ipsec,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_on_ipsec_outb_sa_create)
 int
 cnxk_on_ipsec_outb_sa_create(struct rte_security_ipsec_xform *ipsec,
 			     struct rte_crypto_sym_xform *crypto_xform,
@@ -1115,6 +1124,7 @@ cnxk_on_ipsec_outb_sa_create(struct rte_security_ipsec_xform *ipsec,
 	return ctx_len;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_on_ipsec_inb_sa_create)
 int
 cnxk_on_ipsec_inb_sa_create(struct rte_security_ipsec_xform *ipsec,
 			    struct rte_crypto_sym_xform *crypto_xform,
@@ -1465,6 +1475,7 @@ ow_ipsec_inb_tunnel_hdr_fill(struct roc_ow_ipsec_inb_sa *sa,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ow_ipsec_inb_sa_fill)
 int
 cnxk_ow_ipsec_inb_sa_fill(struct roc_ow_ipsec_inb_sa *sa,
 			  struct rte_security_ipsec_xform *ipsec_xfrm,
@@ -1571,6 +1582,7 @@ cnxk_ow_ipsec_inb_sa_fill(struct roc_ow_ipsec_inb_sa *sa,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ow_ipsec_outb_sa_fill)
 int
 cnxk_ow_ipsec_outb_sa_fill(struct roc_ow_ipsec_outb_sa *sa,
 			   struct rte_security_ipsec_xform *ipsec_xfrm,
drivers/common/cnxk/cnxk_utils.c +1 -0
index 4e56adc659..eed089d0b0 100644
@@ -9,6 +9,7 @@
 
 #include "cnxk_utils.h"
 
+RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_err_to_rte_err)
 int
 roc_nix_tm_err_to_rte_err(int errorcode)
 {
drivers/common/cnxk/roc_platform.c +559 -0

600 lines not on this page · raw message

drivers/common/cpt/cpt_fpm_tables.c +2 -0
index 15b665db01..927ccc5e2e 100644
@@ -1081,6 +1081,7 @@ static rte_spinlock_t lock = RTE_SPINLOCK_INITIALIZER;
 static uint8_t *fpm_table;
 static int nb_devs;
 
+RTE_EXPORT_INTERNAL_SYMBOL(cpt_fpm_init)
 int cpt_fpm_init(uint64_t *fpm_table_iova)
 {
 	int i, len = 0;
@@ -1125,6 +1126,7 @@ int cpt_fpm_init(uint64_t *fpm_table_iova)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cpt_fpm_clear)
 void cpt_fpm_clear(void)
 {
 	rte_spinlock_lock(&lock);
drivers/common/cpt/cpt_pmd_ops_helper.c +3 -0
index 2cddddf4ce..79dfab01bb 100644
@@ -14,6 +14,7 @@
 #define CPT_MAX_ASYM_OP_NUM_PARAMS 5
 #define CPT_MAX_ASYM_OP_MOD_LEN 1024
 
+RTE_EXPORT_INTERNAL_SYMBOL(cpt_pmd_ops_helper_get_mlen_direct_mode)
 int32_t
 cpt_pmd_ops_helper_get_mlen_direct_mode(void)
 {
@@ -28,6 +29,7 @@ cpt_pmd_ops_helper_get_mlen_direct_mode(void)
 	return len;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cpt_pmd_ops_helper_get_mlen_sg_mode)
 int
 cpt_pmd_ops_helper_get_mlen_sg_mode(void)
 {
@@ -43,6 +45,7 @@ cpt_pmd_ops_helper_get_mlen_sg_mode(void)
 	return len;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(cpt_pmd_ops_helper_asym_get_mlen)
 int
 cpt_pmd_ops_helper_asym_get_mlen(void)
 {
drivers/common/dpaax/caamflib.c +1 -0
index 55e20281ca..aadefae681 100644
@@ -13,4 +13,5 @@
  * - SEC HW block revision format is "v"
  * - SEC revision format is "x.y"
  */
+RTE_EXPORT_INTERNAL_SYMBOL(rta_sec_era)
 enum rta_sec_era rta_sec_era;
drivers/common/dpaax/dpaa_of.c +12 -0
index bb2c8fc66b..59b828fe66 100644
@@ -213,6 +213,7 @@ linear_dir(struct dt_dir *d)
 	}
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_init_path)
 int
 of_init_path(const char *dt_path)
 {
@@ -297,6 +298,7 @@ check_compatible(const struct dt_file *f, const char *compatible)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_find_compatible_node)
 const struct device_node *
 of_find_compatible_node(const struct device_node *from,
 			const char *type __rte_unused,
@@ -322,6 +324,7 @@ of_find_compatible_node(const struct device_node *from,
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_get_property)
 const void *
 of_get_property(const struct device_node *from, const char *name,
 		size_t *lenp)
@@ -341,6 +344,7 @@ of_get_property(const struct device_node *from, const char *name,
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_device_is_available)
 bool
 of_device_is_available(const struct device_node *dev_node)
 {
@@ -357,6 +361,7 @@ of_device_is_available(const struct device_node *dev_node)
 	return false;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_find_node_by_phandle)
 const struct device_node *
 of_find_node_by_phandle(uint64_t ph)
 {
@@ -370,6 +375,7 @@ of_find_node_by_phandle(uint64_t ph)
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_get_parent)
 const struct device_node *
 of_get_parent(const struct device_node *dev_node)
 {
@@ -385,6 +391,7 @@ of_get_parent(const struct device_node *dev_node)
 	return &d->parent->node.node;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_get_next_child)
 const struct device_node *
 of_get_next_child(const struct device_node *dev_node,
 		  const struct device_node *prev)
@@ -414,6 +421,7 @@ of_get_next_child(const struct device_node *dev_node,
 	return &c->node.node;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_n_addr_cells)
 uint32_t
 of_n_addr_cells(const struct device_node *dev_node)
 {
@@ -458,6 +466,7 @@ of_n_size_cells(const struct device_node *dev_node)
 	return OF_DEFAULT_NS;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_get_address)
 const uint32_t *
 of_get_address(const struct device_node *dev_node, size_t idx,
 	       uint64_t *size, uint32_t *flags __rte_unused)
@@ -487,6 +496,7 @@ of_get_address(const struct device_node *dev_node, size_t idx,
 	return (const uint32_t *)buf;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_translate_address)
 uint64_t
 of_translate_address(const struct device_node *dev_node,
 		     const uint32_t *addr)
@@ -533,6 +543,7 @@ of_translate_address(const struct device_node *dev_node,
 	return phys_addr;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(of_device_is_compatible)
 bool
 of_device_is_compatible(const struct device_node *dev_node,
 			const char *compatible)
@@ -573,6 +584,7 @@ static const void *of_get_mac_addr(const struct device_node *np,
  * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists
  * but is all zeros.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(of_get_mac_address)
 const void *of_get_mac_address(const struct device_node *np)
 {
 	const void *addr;
drivers/common/dpaax/dpaax_iova_table.c +6 -0
index 860e702333..003b4455ba 100644
@@ -8,6 +8,7 @@
 #include "dpaax_logs.h"
 
 /* Global table reference */
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_iova_table_p)
 struct dpaax_iova_table *dpaax_iova_table_p;
 
 static int dpaax_handle_memevents(void);
@@ -153,6 +154,7 @@ read_memory_node(unsigned int *count)
 	return nodes;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_iova_table_populate)
 int
 dpaax_iova_table_populate(void)
 {
@@ -254,6 +256,7 @@ dpaax_iova_table_populate(void)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_iova_table_depopulate)
 void
 dpaax_iova_table_depopulate(void)
 {
@@ -263,6 +266,7 @@ dpaax_iova_table_depopulate(void)
 	DPAAX_DEBUG("IOVA Table cleaned");
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_iova_table_update)
 int
 dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length)
 {
@@ -349,6 +353,7 @@ dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length)
  * Dump the table, with its entries, on screen. Only works in Debug Mode
  * Not for weak hearted - the tables can get quite large
  */
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_iova_table_dump)
 void
 dpaax_iova_table_dump(void)
 {
@@ -461,4 +466,5 @@ dpaax_handle_memevents(void)
 					       dpaax_memevent_cb, NULL);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(dpaax_logger)
 RTE_LOG_REGISTER_DEFAULT(dpaax_logger, ERR);
drivers/common/ionic/ionic_common_uio.c +4 -0
index c647b22eaf..56e2a0990b 100644
@@ -103,6 +103,7 @@ uio_get_idx_for_devname(struct uio_name *name_cache, char *devname)
 	return -1;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(ionic_uio_scan_mnet_devices)
 void
 ionic_uio_scan_mnet_devices(void)
 {
@@ -146,6 +147,7 @@ ionic_uio_scan_mnet_devices(void)
 	}
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(ionic_uio_scan_mcrypt_devices)
 void
 ionic_uio_scan_mcrypt_devices(void)
 {
@@ -301,6 +303,7 @@ uio_get_map_res_addr(int uio_idx, int size, int res_idx)
 	return addr;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(ionic_uio_get_rsrc)
 void
 ionic_uio_get_rsrc(const char *name, int idx, struct ionic_dev_bar *bar)
 {
@@ -319,6 +322,7 @@ ionic_uio_get_rsrc(const char *name, int idx, struct ionic_dev_bar *bar)
 	bar->vaddr = ((char *)bar->vaddr) + offs;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(ionic_uio_rel_rsrc)
 void
 ionic_uio_rel_rsrc(const char *name, int idx, struct ionic_dev_bar *bar)
 {
drivers/common/mlx5/linux/mlx5_common_auxiliary.c +1 -0
index 33479ffd68..345e0535fa 100644
@@ -18,6 +18,7 @@
 #define AUXILIARY_SYSFS_PATH "/sys/bus/auxiliary/devices"
 #define MLX5_AUXILIARY_PREFIX "mlx5_core.sf."
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_auxiliary_get_child_name)
 int
 mlx5_auxiliary_get_child_name(const char *dev, const char *node,
 			      char *child, size_t size)
drivers/common/mlx5/linux/mlx5_common_os.c +9 -0
index 41345e1597..0e33bbd1cc 100644
@@ -27,9 +27,11 @@
 #include "mlx5_glue.h"
 
 #ifdef MLX5_GLUE
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_glue)
 const struct mlx5_glue *mlx5_glue;
 #endif
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_get_pci_addr)
 int
 mlx5_get_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr)
 {
@@ -89,6 +91,7 @@ mlx5_get_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr)
  * @return
  *   port_name field set according to recognized name format.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_translate_port_name)
 void
 mlx5_translate_port_name(const char *port_name_in,
 			 struct mlx5_switch_info *port_info_out)
@@ -155,6 +158,7 @@ mlx5_translate_port_name(const char *port_name_in,
 	port_info_out->name_type = MLX5_PHYS_PORT_NAME_TYPE_UNKNOWN;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_get_ifname_sysfs)
 int
 mlx5_get_ifname_sysfs(const char *ibdev_path, char *ifname)
 {
@@ -873,6 +877,7 @@ mlx5_os_open_device(struct mlx5_common_device *cdev, uint32_t classes)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_get_device_guid)
 int
 mlx5_get_device_guid(const struct rte_pci_addr *dev, uint8_t *guid, size_t len)
 {
@@ -918,6 +923,7 @@ mlx5_get_device_guid(const struct rte_pci_addr *dev, uint8_t *guid, size_t len)
  * indirect mkey created by the DevX API.
  * This mkey should be used for DevX commands requesting mkey as a parameter.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_os_wrapped_mkey_create)
 int
 mlx5_os_wrapped_mkey_create(void *ctx, void *pd, uint32_t pdn, void *addr,
 			    size_t length, struct mlx5_pmd_wrapped_mr *pmd_mr)
@@ -957,6 +963,7 @@ mlx5_os_wrapped_mkey_create(void *ctx, void *pd, uint32_t pdn, void *addr,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_os_wrapped_mkey_destroy)
 void
 mlx5_os_wrapped_mkey_destroy(struct mlx5_pmd_wrapped_mr *pmd_mr)
 {
@@ -988,6 +995,7 @@ mlx5_os_wrapped_mkey_destroy(struct mlx5_pmd_wrapped_mr *pmd_mr)
  *  - Interrupt handle on success.
  *  - NULL on failure, with rte_errno set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_os_interrupt_handler_create)
 struct rte_intr_handle *
 mlx5_os_interrupt_handler_create(int mode, bool set_fd_nonblock, int fd,
 				 rte_intr_callback_fn cb, void *cb_arg)
@@ -1089,6 +1097,7 @@ mlx5_intr_callback_unregister(const struct rte_intr_handle *handle,
  *   Callback argument for cb.
  *
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_os_interrupt_handler_destroy)
 void
 mlx5_os_interrupt_handler_destroy(struct rte_intr_handle *intr_handle,
 				  rte_intr_callback_fn cb, void *cb_arg)
drivers/common/mlx5/linux/mlx5_common_verbs.c +3 -0
index cf2f7ecbf3..fd3cd055f2 100644
@@ -105,6 +105,7 @@ mlx5_set_context_attr(struct rte_device *dev, struct ibv_context *ctx)
  * @return
  *   0 on successful registration, -1 otherwise
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_common_verbs_reg_mr)
 int
 mlx5_common_verbs_reg_mr(void *pd, void *addr, size_t length,
 			 struct mlx5_pmd_mr *pmd_mr)
@@ -134,6 +135,7 @@ mlx5_common_verbs_reg_mr(void *pd, void *addr, size_t length,
  *   pmd_mr struct set with lkey, address, length and pointer to mr object
  *
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_common_verbs_dereg_mr)
 void
 mlx5_common_verbs_dereg_mr(struct mlx5_pmd_mr *pmd_mr)
 {
@@ -151,6 +153,7 @@ mlx5_common_verbs_dereg_mr(struct mlx5_pmd_mr *pmd_mr)
  * @param[out] dereg_mr_cb
  *   Pointer to dereg_mr func
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_os_set_reg_mr_cb)
 void
 mlx5_os_set_reg_mr_cb(mlx5_reg_mr_t *reg_mr_cb, mlx5_dereg_mr_t *dereg_mr_cb)
 {
drivers/common/mlx5/linux/mlx5_glue.c +1 -0
index 99761ea0b2..604230144e 100644
@@ -1578,6 +1578,7 @@ mlx5_glue_dv_destroy_steering_anchor(struct mlx5dv_steering_anchor *sa)
 #endif
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_glue)
 alignas(RTE_CACHE_LINE_SIZE)
 const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue) {
 	.version = MLX5_GLUE_VERSION,
drivers/common/mlx5/linux/mlx5_nl.c +21 -0
index 12f1a620f3..ad16274861 100644
@@ -195,6 +195,7 @@ RTE_ATOMIC(uint32_t) atomic_sn;
  *   A file descriptor on success, a negative errno value otherwise and
  *   rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_init)
 int
 mlx5_nl_init(int protocol, int groups)
 {
@@ -641,6 +642,7 @@ mlx5_nl_mac_addr_modify(int nlsk_fd, unsigned int iface_idx,
  * @return
  *    0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_vf_mac_addr_modify)
 int
 mlx5_nl_vf_mac_addr_modify(int nlsk_fd, unsigned int iface_idx,
 			   struct rte_ether_addr *mac, int vf_index)
@@ -728,6 +730,7 @@ mlx5_nl_vf_mac_addr_modify(int nlsk_fd, unsigned int iface_idx,
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_mac_addr_add)
 int
 mlx5_nl_mac_addr_add(int nlsk_fd, unsigned int iface_idx,
 		     uint64_t *mac_own, struct rte_ether_addr *mac,
@@ -765,6 +768,7 @@ mlx5_nl_mac_addr_add(int nlsk_fd, unsigned int iface_idx,
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_mac_addr_remove)
 int
 mlx5_nl_mac_addr_remove(int nlsk_fd, unsigned int iface_idx, uint64_t *mac_own,
 			struct rte_ether_addr *mac, uint32_t index)
@@ -789,6 +793,7 @@ mlx5_nl_mac_addr_remove(int nlsk_fd, unsigned int iface_idx, uint64_t *mac_own,
  * @param n
  *   @p mac_addrs array size.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_mac_addr_sync)
 void
 mlx5_nl_mac_addr_sync(int nlsk_fd, unsigned int iface_idx,
 		      struct rte_ether_addr *mac_addrs, int n)
@@ -845,6 +850,7 @@ mlx5_nl_mac_addr_sync(int nlsk_fd, unsigned int iface_idx,
  * @param mac_own
  *   BITFIELD_DECLARE array to store the mac.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_mac_addr_flush)
 void
 mlx5_nl_mac_addr_flush(int nlsk_fd, unsigned int iface_idx,
 		       struct rte_ether_addr *mac_addrs, int n,
@@ -923,6 +929,7 @@ mlx5_nl_device_flags(int nlsk_fd, unsigned int iface_idx, uint32_t flags,
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_promisc)
 int
 mlx5_nl_promisc(int nlsk_fd, unsigned int iface_idx, int enable)
 {
@@ -949,6 +956,7 @@ mlx5_nl_promisc(int nlsk_fd, unsigned int iface_idx, int enable)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_allmulti)
 int
 mlx5_nl_allmulti(int nlsk_fd, unsigned int iface_idx, int enable)
 {
@@ -1138,6 +1146,7 @@ mlx5_nl_port_info(int nl, uint32_t pindex, struct mlx5_nl_port_info *data)
  *   A valid (nonzero) interface index on success, 0 otherwise and rte_errno
  *   is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_ifindex)
 unsigned int
 mlx5_nl_ifindex(int nl, const char *name, uint32_t pindex, struct mlx5_dev_info *dev_info)
 {
@@ -1194,6 +1203,7 @@ mlx5_nl_ifindex(int nl, const char *name, uint32_t pindex, struct mlx5_dev_info
  *   Port state (ibv_port_state) on success, negative on error
  *   and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_port_state)
 int
 mlx5_nl_port_state(int nl, const char *name, uint32_t pindex, struct mlx5_dev_info *dev_info)
 {
@@ -1229,6 +1239,7 @@ mlx5_nl_port_state(int nl, const char *name, uint32_t pindex, struct mlx5_dev_in
  *   A valid (nonzero) number of ports on success, 0 otherwise
  *   and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_portnum)
 unsigned int
 mlx5_nl_portnum(int nl, const char *name, struct mlx5_dev_info *dev_info)
 {
@@ -1435,6 +1446,7 @@ mlx5_nl_switch_info_cb(struct nlmsghdr *nh, void *arg)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_switch_info)
 int
 mlx5_nl_switch_info(int nl, unsigned int ifindex,
 		    struct mlx5_switch_info *info)
@@ -1485,6 +1497,7 @@ mlx5_nl_switch_info(int nl, unsigned int ifindex,
  * @param[in] ifindex
  *   Interface index of network device to delete.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_vlan_vmwa_delete)
 void
 mlx5_nl_vlan_vmwa_delete(struct mlx5_nl_vlan_vmwa_context *vmwa,
 		      uint32_t ifindex)
@@ -1562,6 +1575,7 @@ nl_attr_nest_end(struct nlmsghdr *nlh, struct nlattr *nest)
  * @param[in] tag
  *   VLAN tag for VLAN network device to create.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_vlan_vmwa_create)
 uint32_t
 mlx5_nl_vlan_vmwa_create(struct mlx5_nl_vlan_vmwa_context *vmwa,
 			 uint32_t ifindex, uint16_t tag)
@@ -1714,6 +1728,7 @@ mlx5_nl_generic_family_id_get(int nlsk_fd, const char *name)
  *   otherwise and rte_errno is set.
  */
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_devlink_family_id_get)
 int
 mlx5_nl_devlink_family_id_get(int nlsk_fd)
 {
@@ -1940,6 +1955,7 @@ mlx5_nl_enable_roce_set(int nlsk_fd, int family_id, const char *pci_addr,
  * @return
  *  0 on success, negative on failure.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_parse_link_status_update)
 int
 mlx5_nl_parse_link_status_update(struct nlmsghdr *hdr, uint32_t *ifindex)
 {
@@ -1971,6 +1987,7 @@ mlx5_nl_parse_link_status_update(struct nlmsghdr *hdr, uint32_t *ifindex)
  *  0 on success, including the case when there are no events.
  *  Negative on failure and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_read_events)
 int
 mlx5_nl_read_events(int nlsk_fd, mlx5_nl_event_cb *cb, void *cb_arg)
 {
@@ -2058,6 +2075,7 @@ mlx5_nl_esw_multiport_cb(struct nlmsghdr *nh, void *arg)
 
 #define NL_ESW_MULTIPORT_PARAM "esw_multiport"
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_devlink_esw_multiport_get)
 int
 mlx5_nl_devlink_esw_multiport_get(int nlsk_fd, int family_id, const char *pci_addr, int *enable)
 {
@@ -2096,12 +2114,14 @@ mlx5_nl_devlink_esw_multiport_get(int nlsk_fd, int family_id, const char *pci_ad
 	return ret;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_rdma_monitor_init)
 int
 mlx5_nl_rdma_monitor_init(void)
 {
 	return mlx5_nl_init(NETLINK_RDMA, RDMA_NL_GROUP_NOTIFICATION);
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_rdma_monitor_info_get)
 void
 mlx5_nl_rdma_monitor_info_get(struct nlmsghdr *hdr, struct mlx5_nl_port_info *data)
 {
@@ -2196,6 +2216,7 @@ mlx5_nl_rdma_monitor_cap_get_cb(struct nlmsghdr *hdr, void *arg)
  * @return
  *   0 on success, negative on error and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_nl_rdma_monitor_cap_get)
 int
 mlx5_nl_rdma_monitor_cap_get(int nl, uint8_t *cap)
 {
drivers/common/mlx5/mlx5_common.c +9 -0
index 9abae4a374..58af76f036 100644
@@ -20,6 +20,7 @@
 #include "mlx5_common_defs.h"
 #include "mlx5_common_private.h"
 
+RTE_EXPORT_INTERNAL_SYMBOL(haswell_broadwell_cpu)
 uint8_t haswell_broadwell_cpu;
 
 /* Driver type key for new device global syntax. */
@@ -127,6 +128,7 @@ driver_get(uint32_t class)
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_kvargs_process)
 int
 mlx5_kvargs_process(struct mlx5_kvargs_ctrl *mkvlist, const char *const keys[],
 		    arg_handler_t handler, void *opaque_arg)
@@ -463,6 +465,7 @@ to_mlx5_device(const struct rte_device *rte_dev)
 	return NULL;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_dev_to_pci_str)
 int
 mlx5_dev_to_pci_str(const struct rte_device *dev, char *addr, size_t size)
 {
@@ -512,6 +515,7 @@ mlx5_dev_mempool_register(struct mlx5_common_device *cdev,
  * @param mp
  *   Mempool being unregistered.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_dev_mempool_unregister)
 void
 mlx5_dev_mempool_unregister(struct mlx5_common_device *cdev,
 			    struct rte_mempool *mp)
@@ -591,6 +595,7 @@ mlx5_dev_mempool_event_cb(enum rte_mempool_event event, struct rte_mempool *mp,
  * Callbacks addresses are local in each process.
  * Therefore, each process can register private callbacks.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_dev_mempool_subscribe)
 int
 mlx5_dev_mempool_subscribe(struct mlx5_common_device *cdev)
 {
@@ -1220,6 +1225,7 @@ mlx5_common_dev_dma_unmap(struct rte_device *rte_dev, void *addr,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_class_driver_register)
 void
 mlx5_class_driver_register(struct mlx5_class_driver *driver)
 {
@@ -1242,6 +1248,7 @@ static bool mlx5_common_initialized;
  * for multiple PMDs. Each mlx5 PMD that depends on mlx5_common module,
  * must invoke in its constructor.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_common_init)
 void
 mlx5_common_init(void)
 {
@@ -1400,6 +1407,7 @@ mlx5_devx_alloc_uar(struct mlx5_common_device *cdev)
 	return uar;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_uar_release)
 void
 mlx5_devx_uar_release(struct mlx5_uar *uar)
 {
@@ -1408,6 +1416,7 @@ mlx5_devx_uar_release(struct mlx5_uar *uar)
 	memset(uar, 0, sizeof(*uar));
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_uar_prepare)
 int
 mlx5_devx_uar_prepare(struct mlx5_common_device *cdev, struct mlx5_uar *uar)
 {
drivers/common/mlx5/mlx5_common_devx.c +9 -0
index 431d8361ce..77bc7e4af8 100644
@@ -23,6 +23,7 @@
  * @param[in] cq
  *   DevX CQ to destroy.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_cq_destroy)
 void
 mlx5_devx_cq_destroy(struct mlx5_devx_cq *cq)
 {
@@ -77,6 +78,7 @@ mlx5_cq_init(struct mlx5_devx_cq *cq_obj, uint16_t cq_size)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_cq_create)
 int
 mlx5_devx_cq_create(void *ctx, struct mlx5_devx_cq *cq_obj, uint16_t log_desc_n,
 		    struct mlx5_devx_cq_attr *attr, int socket)
@@ -162,6 +164,7 @@ mlx5_devx_cq_create(void *ctx, struct mlx5_devx_cq *cq_obj, uint16_t log_desc_n,
  * @param[in] sq
  *   DevX SQ to destroy.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_sq_destroy)
 void
 mlx5_devx_sq_destroy(struct mlx5_devx_sq *sq)
 {
@@ -204,6 +207,7 @@ mlx5_devx_sq_destroy(struct mlx5_devx_sq *sq)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_sq_create)
 int
 mlx5_devx_sq_create(void *ctx, struct mlx5_devx_sq *sq_obj, uint16_t log_wqbb_n,
 		    struct mlx5_devx_create_sq_attr *attr, int socket)
@@ -312,6 +316,7 @@ mlx5_devx_rmp_destroy(struct mlx5_devx_rmp *rmp)
  * @param[in] qp
  *   DevX QP to destroy.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_qp_destroy)
 void
 mlx5_devx_qp_destroy(struct mlx5_devx_qp *qp)
 {
@@ -350,6 +355,7 @@ mlx5_devx_qp_destroy(struct mlx5_devx_qp *qp)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_qp_create)
 int
 mlx5_devx_qp_create(void *ctx, struct mlx5_devx_qp *qp_obj, uint32_t queue_size,
 		    struct mlx5_devx_qp_attr *attr, int socket)
@@ -420,6 +426,7 @@ mlx5_devx_qp_create(void *ctx, struct mlx5_devx_qp *qp_obj, uint32_t queue_size,
  * @param[in] rq
  *   DevX RQ to destroy.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_rq_destroy)
 void
 mlx5_devx_rq_destroy(struct mlx5_devx_rq *rq)
 {
@@ -695,6 +702,7 @@ mlx5_devx_rq_shared_create(void *ctx, struct mlx5_devx_rq *rq_obj,
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_rq_create)
 int
 mlx5_devx_rq_create(void *ctx, struct mlx5_devx_rq *rq_obj,
 		    uint32_t wqe_size, uint16_t log_wqbb_n,
@@ -718,6 +726,7 @@ mlx5_devx_rq_create(void *ctx, struct mlx5_devx_rq *rq_obj,
  * @return
  *	 0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_devx_qp2rts)
 int
 mlx5_devx_qp2rts(struct mlx5_devx_qp *qp, uint32_t remote_qp_id)
 {
drivers/common/mlx5/mlx5_common_mp.c +8 -0
index a7a671b7c5..903098a17d 100644
@@ -24,6 +24,7 @@
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_req_mr_create)
 int
 mlx5_mp_req_mr_create(struct mlx5_common_device *cdev, uintptr_t addr)
 {
@@ -63,6 +64,7 @@ mlx5_mp_req_mr_create(struct mlx5_common_device *cdev, uintptr_t addr)
  * @param reg
  *   True to register the mempool, False to unregister.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_req_mempool_reg)
 int
 mlx5_mp_req_mempool_reg(struct mlx5_common_device *cdev,
 			struct rte_mempool *mempool, bool reg,
@@ -113,6 +115,7 @@ mlx5_mp_req_mempool_reg(struct mlx5_common_device *cdev,
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_req_queue_state_modify)
 int
 mlx5_mp_req_queue_state_modify(struct mlx5_mp_id *mp_id,
 			       struct mlx5_mp_arg_queue_state_modify *sm)
@@ -151,6 +154,7 @@ mlx5_mp_req_queue_state_modify(struct mlx5_mp_id *mp_id,
  * @return
  *   fd on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_req_verbs_cmd_fd)
 int
 mlx5_mp_req_verbs_cmd_fd(struct mlx5_mp_id *mp_id)
 {
@@ -192,6 +196,7 @@ mlx5_mp_req_verbs_cmd_fd(struct mlx5_mp_id *mp_id)
 /**
  * Initialize by primary process.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_init_primary)
 int
 mlx5_mp_init_primary(const char *name, const rte_mp_t primary_action)
 {
@@ -209,6 +214,7 @@ mlx5_mp_init_primary(const char *name, const rte_mp_t primary_action)
 /**
  * Un-initialize by primary process.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_uninit_primary)
 void
 mlx5_mp_uninit_primary(const char *name)
 {
@@ -219,6 +225,7 @@ mlx5_mp_uninit_primary(const char *name)
 /**
  * Initialize by secondary process.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_init_secondary)
 int
 mlx5_mp_init_secondary(const char *name, const rte_mp_t secondary_action)
 {
@@ -229,6 +236,7 @@ mlx5_mp_init_secondary(const char *name, const rte_mp_t secondary_action)
 /**
  * Un-initialize by secondary process.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mp_uninit_secondary)
 void
 mlx5_mp_uninit_secondary(const char *name)
 {
drivers/common/mlx5/mlx5_common_mr.c +11 -0
index 50922ad398..31bfac6220 100644
@@ -51,6 +51,7 @@ struct mlx5_mempool_reg {
 	bool is_extmem;
 };
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mprq_buf_free_cb)
 void
 mlx5_mprq_buf_free_cb(void *addr __rte_unused, void *opaque)
 {
@@ -249,6 +250,7 @@ mlx5_mr_btree_init(struct mlx5_mr_btree *bt, int n, int socket)
  * @param bt
  *   Pointer to B-tree structure.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_btree_free)
 void
 mlx5_mr_btree_free(struct mlx5_mr_btree *bt)
 {
@@ -299,6 +301,7 @@ mlx5_mr_btree_dump(struct mlx5_mr_btree *bt __rte_unused)
  * @return
  *   0 on success, a negative errno value otherwise and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_ctrl_init)
 int
 mlx5_mr_ctrl_init(struct mlx5_mr_ctrl *mr_ctrl, uint32_t *dev_gen_ptr,
 		  int socket)
@@ -965,6 +968,7 @@ mlx5_mr_create_primary(void *pd,
  * @return
  *   Searched LKey on success, UINT32_MAX on failure and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_create)
 uint32_t
 mlx5_mr_create(struct mlx5_common_device *cdev,
 	       struct mlx5_mr_share_cache *share_cache,
@@ -1059,6 +1063,7 @@ mr_lookup_caches(struct mlx5_mr_ctrl *mr_ctrl,
  * @return
  *   Searched LKey on success, UINT32_MAX on no match.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_addr2mr_bh)
 uint32_t
 mlx5_mr_addr2mr_bh(struct mlx5_mr_ctrl *mr_ctrl, uintptr_t addr)
 {
@@ -1149,6 +1154,7 @@ mlx5_mr_create_cache(struct mlx5_mr_share_cache *share_cache, int socket)
  * @param mr_ctrl
  *   Pointer to per-queue MR local cache.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_flush_local_cache)
 void
 mlx5_mr_flush_local_cache(struct mlx5_mr_ctrl *mr_ctrl)
 {
@@ -1803,6 +1809,7 @@ mlx5_mr_mempool_register_secondary(struct mlx5_common_device *cdev,
  * @return
  *   0 on success, (-1) on failure and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_mempool_register)
 int
 mlx5_mr_mempool_register(struct mlx5_common_device *cdev,
 			 struct rte_mempool *mp, bool is_extmem)
@@ -1868,6 +1875,7 @@ mlx5_mr_mempool_unregister_secondary(struct mlx5_common_device *cdev,
  * @return
  *   0 on success, (-1) on failure and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_mempool_unregister)
 int
 mlx5_mr_mempool_unregister(struct mlx5_common_device *cdev,
 			   struct rte_mempool *mp)
@@ -1979,6 +1987,7 @@ mlx5_lookup_mempool_regs(struct mlx5_mr_ctrl *mr_ctrl,
  * @return
  *  0 on success, (-1) on failure and rte_errno is set.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_mempool_populate_cache)
 int
 mlx5_mr_mempool_populate_cache(struct mlx5_mr_ctrl *mr_ctrl,
 			       struct rte_mempool *mp)
@@ -2038,6 +2047,7 @@ mlx5_mr_mempool_populate_cache(struct mlx5_mr_ctrl *mr_ctrl,
  * @return
  *   MR lkey on success, UINT32_MAX on failure.
  */
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_mempool2mr_bh)
 uint32_t
 mlx5_mr_mempool2mr_bh(struct mlx5_mr_ctrl *mr_ctrl,
 		      struct rte_mempool *mp, uintptr_t addr)
@@ -2064,6 +2074,7 @@ mlx5_mr_mempool2mr_bh(struct mlx5_mr_ctrl *mr_ctrl,
 	return lkey;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_mr_mb2mr_bh)
 uint32_t
 mlx5_mr_mb2mr_bh(struct mlx5_mr_ctrl *mr_ctrl, struct rte_mbuf *mb)
 {
drivers/common/mlx5/mlx5_common_pci.c +2 -0
index 04aad0963c..d71d9e1dd4 100644
@@ -102,12 +102,14 @@ pci_ids_table_update(const struct rte_pci_id *driver_id_table)
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_dev_is_pci)
 bool
 mlx5_dev_is_pci(const struct rte_device *dev)
 {
 	return strcmp(dev->bus->name, "pci") == 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_dev_is_vf_pci)
 bool
 mlx5_dev_is_vf_pci(const struct rte_pci_device *pci_dev)
 {
drivers/common/mlx5/mlx5_common_utils.c +11 -0
index 4b95d35d35..51243762a6 100644
@@ -26,6 +26,7 @@ mlx5_list_init(struct mlx5_list_inconst *l_inconst,
 	return 0;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_list_create)
 struct mlx5_list *
 mlx5_list_create(const char *name, void *ctx, bool lcores_share,
 		 mlx5_list_create_cb cb_create,
@@ -120,6 +121,7 @@ _mlx5_list_lookup(struct mlx5_list_inconst *l_inconst,
 	return entry;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_list_lookup)
 struct mlx5_list_entry *
 mlx5_list_lookup(struct mlx5_list *list, void *ctx)
 {
@@ -260,6 +262,7 @@ _mlx5_list_register(struct mlx5_list_inconst *l_inconst,
 	return local_entry;
 }
 
+RTE_EXPORT_INTERNAL_SYMBOL(mlx5_list_register)
 struct mlx5_list_entry *
 mlx5_list_register(struct mlx5_list *list, void *ctx)
 {

Lines of this file are not shown. View the raw message.

drivers/common/mlx5/mlx5_devx_cmds.c +51 -0

51 lines not on this page · raw message

drivers/common/mlx5/mlx5_malloc.c +4 -0
index ef6dabedbd..757a3392d9 100644

Lines of this file are not shown. View the raw message.

drivers/common/mlx5/windows/mlx5_common_os.c +5 -0
index 2b6058eb3e..e78c93b433 100644

Lines of this file are not shown. View the raw message.

drivers/common/mlx5/windows/mlx5_glue.c +1 -2
index 6935811bf4..5a7897b8c6 100644

Lines of this file are not shown. View the raw message.

drivers/common/mvep/mvep_common.c +2 -0
index 67fa65b574..acff8ea2c8 100644

Lines of this file are not shown. View the raw message.

drivers/common/nfp/nfp_common.c +7 -0
index 0df8332dfb..267dd57d90 100644

Lines of this file are not shown. View the raw message.

drivers/common/nfp/nfp_common_pci.c +1 -0
index 856f3917a2..c59e215e74 100644

Lines of this file are not shown. View the raw message.

drivers/common/nfp/nfp_dev.c +1 -0
index f29b7e0711..4e98bf07f5 100644

Lines of this file are not shown. View the raw message.

drivers/common/nitrox/nitrox_device.c +1 -0
index 6cd57faaa4..9d468e82be 100644

Lines of this file are not shown. View the raw message.

drivers/common/nitrox/nitrox_logs.c +1 -0
index 0e0a94648c..af089709b4 100644

Lines of this file are not shown. View the raw message.

drivers/common/nitrox/nitrox_qp.c +2 -0
index d6a5ddd641..c01a64a304 100644

Lines of this file are not shown. View the raw message.

drivers/common/octeontx/octeontx_mbox.c +6 -0
index f98942c79c..2289a17215 100644

Lines of this file are not shown. View the raw message.

drivers/common/sfc_efx/sfc_efx.c +273 -0

273 lines not on this page · raw message

drivers/common/sfc_efx/sfc_efx_mcdi.c +2 -0
index 0d17616589..02b67d2236 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/cnxk/cn10k_cryptodev_ops.c +7 -0
index dbebc5aef1..990211d1c3 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/cnxk/cn9k_cryptodev_ops.c +2 -0
index 2b1bd70c6d..99cd84ec2a 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/cnxk/cnxk_cryptodev_ops.c +7 -0
index a82db13a8e..0d5c28e247 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +2 -0
index 7ad8fd47dd..496efa682d 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/dpaa_sec/dpaa_sec.c +2 -0
index e117cd77a6..963793f234 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/octeontx/otx_cryptodev_ops.c +2 -0
index 9a758cd297..05c3896b2b 100644

Lines of this file are not shown. View the raw message.

drivers/crypto/scheduler/rte_cryptodev_scheduler.c +10 -0
index 6013f66aa5..a6327cd1b6 100644

Lines of this file are not shown. View the raw message.

drivers/dma/cnxk/cnxk_dmadev_fp.c +4 -0
index 36fc40c7e0..947ba85ea2 100644

Lines of this file are not shown. View the raw message.

drivers/event/cnxk/cnxk_worker.c +2 -0
index a07c9185d9..222ff759ee 100644

Lines of this file are not shown. View the raw message.

drivers/event/dlb2/rte_pmd_dlb2.c +1 -0
index 43990e46ac..dc94ec1e82 100644

Lines of this file are not shown. View the raw message.

drivers/mempool/cnxk/cn10k_hwpool_ops.c +3 -0
index b234481ec1..dc03b1165b 100644

Lines of this file are not shown. View the raw message.

drivers/mempool/dpaa/dpaa_mempool.c +2 -0
index 74bfcab509..53814c6356 100644

Lines of this file are not shown. View the raw message.

drivers/mempool/dpaa2/dpaa2_hw_mempool.c +5 -0
index c054988513..7452ca5d17 100644

Lines of this file are not shown. View the raw message.

drivers/net/atlantic/rte_pmd_atlantic.c +6 -0
index 00fc2872e5..3a86636ba1 100644

Lines of this file are not shown. View the raw message.

drivers/net/bnxt/rte_pmd_bnxt.c +16 -0
index e9b5739050..2b111fde05 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/rte_eth_bond_8023ad.c +12 -0
index 7f885ab521..97114e65c6 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/rte_eth_bond_api.c +15 -0
index ffc1322047..11a0551d80 100644

Lines of this file are not shown. View the raw message.

drivers/net/cnxk/cnxk_ethdev.c +3 -0
index 289ae96afa..70fc7d90fa 100644

Lines of this file are not shown. View the raw message.

drivers/net/cnxk/cnxk_ethdev_sec.c +9 -0
index 6f0340ec0f..48508d19ec 100644

Lines of this file are not shown. View the raw message.

drivers/net/dpaa/dpaa_ethdev.c +3 -0
index ce4bbbb8f0..d00e7df63b 100644

Lines of this file are not shown. View the raw message.

drivers/net/dpaa2/dpaa2_ethdev.c +11 -0
index 8624bba0ce..87d199981c 100644

Lines of this file are not shown. View the raw message.

drivers/net/dpaa2/dpaa2_mux.c +3 -0
index 2f124313fa..c746badc61 100644

Lines of this file are not shown. View the raw message.

drivers/net/dpaa2/dpaa2_rxtx.c +1 -0
index cad15d8f75..2c916c52fc 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/i40e/rte_pmd_i40e.c +39 -0
index 9d39984ea1..c1ec1cb931 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/iavf/iavf_ethdev.c +9 -0
index 9cd2b0c867..6db2f90ddc 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/iavf/iavf_rxtx.c +8 -0
index 657963750d..a4d80346ca 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/ice/ice_diagnose.c +3 -0
index a50068441a..de864c738e 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/idpf/idpf_common_device.c +10 -0
index e9fa024850..e49a1e7859 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/idpf/idpf_common_rxtx.c +33 -0
index 7171e27b8d..5764bd0e9b 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/idpf/idpf_common_virtchnl.c +29 -0
index 0ae1d55d79..1613d7f07e 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/ipn3ke/ipn3ke_ethdev.c +1 -0
index c8f06a06cb..ab443f61dc 100644

Lines of this file are not shown. View the raw message.

drivers/net/intel/ixgbe/rte_pmd_ixgbe.c +37 -0
index 5a7d66d9b9..ee166137d6 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5.c +1 -0
index 0f49cb5e5b..48cef1d768 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5_flow.c +4 -0
index f8b3e504b3..85ca209f4c 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5_rx.c +2 -0
index 5e58eb8bc9..5008e21e7a 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5_rxq.c +2 -0
index a5971b5cdd..803cc548e9 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5_tx.c +1 -0
index 4286876e12..2962df7698 100644

Lines of this file are not shown. View the raw message.

drivers/net/mlx5/mlx5_txq.c +3 -0
index 3e93517323..2309b8c60f 100644

Lines of this file are not shown. View the raw message.

drivers/net/octeontx/octeontx_ethdev.c +1 -0
index 3b8d717797..af06071815 100644

Lines of this file are not shown. View the raw message.

drivers/net/ring/rte_eth_ring.c +2 -0
index 146bdc8e02..fe4ea82957 100644

Lines of this file are not shown. View the raw message.

drivers/net/softnic/rte_eth_softnic.c +1 -0
index 2147ea35f6..da33922e65 100644

Lines of this file are not shown. View the raw message.

drivers/net/softnic/rte_eth_softnic_thread.c +1 -0
index 888af6caf4..b38be89cb2 100644

Lines of this file are not shown. View the raw message.

drivers/net/vhost/rte_eth_vhost.c +2 -0
index 87c05caccd..6ab588657b 100644

Lines of this file are not shown. View the raw message.

drivers/power/kvm_vm/guest_channel.c +2 -0
index 35cd4cfe6f..467b604850 100644

Lines of this file are not shown. View the raw message.

drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c +10 -0
index 54c58a8552..67c20286f0 100644

Lines of this file are not shown. View the raw message.

drivers/raw/ifpga/rte_pmd_ifpga.c +11 -0
index a47d5a0350..96c2c9706c 100644

Lines of this file are not shown. View the raw message.

lib/acl/acl_bld.c +1 -0
index 56e3b31ed6..36dc55b562 100644

Lines of this file are not shown. View the raw message.

lib/acl/acl_run_scalar.c +1 -0
index 3d61e79409..3f6d48e360 100644

Lines of this file are not shown. View the raw message.

lib/acl/rte_acl.c +11 -0
index 245b9b6d7a..108956aed4 100644

Lines of this file are not shown. View the raw message.

lib/argparse/rte_argparse.c +2 -0
index e7007afc6a..f6f14b0cfb 100644

Lines of this file are not shown. View the raw message.

lib/bbdev/bbdev_trace_points.c +2 -0
index 6f90e2aa65..80be6070ee 100644

Lines of this file are not shown. View the raw message.

lib/bbdev/rte_bbdev.c +31 -0
index d7901cd29d..84e18b5f29 100644

Lines of this file are not shown. View the raw message.

lib/bitratestats/rte_bitrate.c +4 -0
index 1664e4863b..d4f309bb7b 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf.c +2 -0
index bbe75c8bfe..82c1e2056a 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_convert.c +1 -0
index e7e298c9cb..262722baef 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_dump.c +1 -0
index b86977b96d..3b4ecdf6d7 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_exec.c +2 -0
index 5d597ec170..5e74db4f14 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_load.c +1 -0
index de43347405..02413a7b7b 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_load_elf.c +1 -0
index e0abd3c856..d4f79d97d3 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_pkt.c +4 -0
index aaca935f2d..18f7e61208 100644

Lines of this file are not shown. View the raw message.

lib/bpf/bpf_stub.c +2 -0
index 1babb16bde..51a82b433b 100644

Lines of this file are not shown. View the raw message.

lib/cfgfile/rte_cfgfile.c +17 -0
index 13ba3957bc..4573876cf7 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline.c +9 -0
index 08721ee919..0831096baa 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_cirbuf.c +19 -0
index 829a8af563..0f6c942b04 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse.c +4 -0
index 76a212d001..ddedc9c0dc 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_bool.c +1 -0
index aa7bf88d5a..88864d8750 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_etheraddr.c +3 -0
index 433b828a72..1fa565aee9 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_ipaddr.c +3 -0
index 5e278c963f..5cee96c608 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_num.c +3 -0
index 6dc325e6da..c5b3d0ef7d 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_portlist.c +3 -0
index 2e2294553a..7966a28173 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_parse_string.c +5 -0
index d756638905..0f1e9f16a4 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_rdline.c +15 -0
index 5cf723a012..5462ae5bb1 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_socket.c +3 -0
index 78fb67c474..c4e13d2858 100644

Lines of this file are not shown. View the raw message.

lib/cmdline/cmdline_vt100.c +2 -0
index 4c9a46c953..ebc020c040 100644

Lines of this file are not shown. View the raw message.

lib/compressdev/rte_comp.c +6 -0
index f060c68557..1fb0ae5271 100644

Lines of this file are not shown. View the raw message.

lib/compressdev/rte_compressdev.c +25 -0
index 5bc7ea5250..f47d0bf3c4 100644

Lines of this file are not shown. View the raw message.

lib/compressdev/rte_compressdev_pmd.c +3 -0
index 762b44f03e..d0ea84b0c3 100644

Lines of this file are not shown. View the raw message.

lib/cryptodev/cryptodev_pmd.c +7 -0
index 87ced122b4..98cf064813 100644

Lines of this file are not shown. View the raw message.

lib/cryptodev/cryptodev_trace_points.c +3 -0
index 6f37780595..94ac5e14f1 100644

Lines of this file are not shown. View the raw message.

lib/cryptodev/rte_cryptodev.c +83 -0

83 lines not on this page · raw message

lib/dispatcher/rte_dispatcher.c +13 -0
index 79349172bc..485a111d08 100644

Lines of this file are not shown. View the raw message.

lib/distributor/rte_distributor.c +9 -0
index e58727cdc2..1133eac230 100644

Lines of this file are not shown. View the raw message.

lib/dmadev/rte_dmadev.c +19 -0
index 4a075ee1c6..1bc852f1e9 100644

Lines of this file are not shown. View the raw message.

lib/dmadev/rte_dmadev_trace_points.c +7 -0
index 4c74356346..a539d8b39d 100644

Lines of this file are not shown. View the raw message.

lib/eal/arm/rte_cpuflags.c +3 -0
index 88e10c6da0..c763e25fa8 100644

Lines of this file are not shown. View the raw message.

lib/eal/arm/rte_hypervisor.c +1 -0
index 08a1c97d10..c22cee1319 100644

Lines of this file are not shown. View the raw message.

lib/eal/arm/rte_power_intrinsics.c +4 -0
index 6475bbca04..c7093c1bd1 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_bus.c +10 -0
index 7cbd09c421..80a44409b3 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_class.c +4 -0
index 4938ec6707..b5c4e4b38e 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_config.c +7 -0
index d3494d6e21..daade14038 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_cpuflags.c +1 -0
index dc5f75d053..a6e20227ef 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_debug.c +2 -0
index bcfcd6df6f..5839ba1d23 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_dev.c +19 -0
index 70aa04dcd9..cc063bc106 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_devargs.c +9 -0
index dd857fc839..b80a3d00e6 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_errno.c +2 -0
index fff8c1ffe4..99ce59c792 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_fbarray.c +26 -0
index 22b43073c6..6a5f435b62 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_hexdump.c +2 -0
index 6fd6e21e1e..d5b753f51e 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_hypervisor.c +1 -0
index 5388b81a51..dd5c9bb115 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_interrupts.c +27 -0
index b4d7b18fae..74171a5b66 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_launch.c +5 -0
index 5320c3bd3c..7d0cc6a359 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_lcore.c +17 -0
index 2ff9252c52..6a1b9655ad 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_lcore_var.c +1 -0
index a1b2458839..9bd5dbc9e5 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_mcfg.c +20 -0
index dabb80eaf5..1cc0faaa9c 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_memory.c +29 -0
index a185e0b580..95a26673c0 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_memzone.c +9 -0
index e7002f8447..acaa0a45fc 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_options.c +4 -0
index 79db9a47dd..6b660decf7 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_proc.c +8 -0
index 201973c5db..a9757459a2 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_string_fns.c +3 -0
index 9ca2045b18..dea55e4045 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_tailqs.c +3 -0
index 56bb2bd91c..941ffd9596 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_thread.c +14 -0
index a53bc639ae..427967611d 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_timer.c +4 -0
index e00be0a5c8..92a426cc03 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_trace.c +15 -0
index 918f49bf4f..09ba4ef24a 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_trace_ctf.c +1 -0
index 04c4f71462..dec416b494 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_trace_points.c +18 -0
index 0f1240ea3a..800c5e8c46 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_trace_utils.c +1 -0
index 7282715b11..0c71070290 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/eal_common_uuid.c +4 -0
index 0a80bfbb38..b89a8c0377 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_bitset.c +1 -0
index e25008519e..183b793635 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_keepalive.c +6 -0
index 473d30dd13..2ef333731b 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_malloc.c +22 -0
index 3eed4d4be6..7b40b8c211 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_random.c +4 -0
index 9354358818..d701d5faf8 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_reciprocal.c +2 -0
index 87c67e6d49..f8da18b082 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_service.c +31 -0
index 1821746337..a3ea1bf41e 100644

Lines of this file are not shown. View the raw message.

lib/eal/common/rte_version.c +7 -0
index 4ae5d66c89..456c0a955f 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal.c +22 -0
index d07cff8651..a4aa3fb665 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_alarm.c +2 -0
index 3680f5caba..69a88ecb93 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_dev.c +4 -0
index d8659cc7fc..09316c16c2 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_interrupts.c +19 -0
index 23747babc2..ed3b1c432e 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_memory.c +3 -0
index a6f3ba226e..c50b62e500 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_thread.c +2 -0
index 77b7621908..108cfdb5f5 100644

Lines of this file are not shown. View the raw message.

lib/eal/freebsd/eal_timer.c +1 -0
index 4eba66eadb..6e5d974f18 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal.c +7 -0
index b1e63e37fc..5637770408 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_alarm.c +2 -0
index 9fe14ade63..9c5e23e663 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_dev.c +4 -0
index be97f56424..6265d7fb45 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_interrupts.c +19 -0
index 23039964fc..d2831dad39 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_memory.c +3 -0
index 9dda60c0e1..7dec1baa0a 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_thread.c +2 -0
index 7051840cdf..9db0a1af38 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_timer.c +4 -0
index 489732c116..5c6f6687d5 100644

Lines of this file are not shown. View the raw message.

lib/eal/linux/eal_vfio.c +16 -0
index 7132e24cba..1b69fc35e1 100644

Lines of this file are not shown. View the raw message.

lib/eal/loongarch/rte_cpuflags.c +3 -0
index db9e28ef20..4a3671505f 100644

Lines of this file are not shown. View the raw message.

lib/eal/loongarch/rte_hypervisor.c +1 -0
index d044906f71..d105c33888 100644

Lines of this file are not shown. View the raw message.

lib/eal/loongarch/rte_power_intrinsics.c +4 -0
index a8969c260e..7c4a51c14d 100644

Lines of this file are not shown. View the raw message.

lib/eal/ppc/rte_cpuflags.c +3 -0
index d276c2cf88..9580cbb869 100644

Lines of this file are not shown. View the raw message.

lib/eal/ppc/rte_hypervisor.c +1 -0
index 08a1c97d10..c22cee1319 100644

Lines of this file are not shown. View the raw message.

lib/eal/ppc/rte_power_intrinsics.c +4 -0
index d6bdc58911..94c8281ea4 100644

Lines of this file are not shown. View the raw message.

lib/eal/riscv/rte_cpuflags.c +3 -0
index eb4105c18b..6b5be23c36 100644

Lines of this file are not shown. View the raw message.

lib/eal/riscv/rte_hypervisor.c +1 -0
index 92b5435993..1d32c8bd93 100644

Lines of this file are not shown. View the raw message.

lib/eal/riscv/rte_power_intrinsics.c +4 -0
index 1c86573c19..06a4d0f52c 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/eal_debug.c +2 -0
index 69ba3758c2..6e955afbff 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/eal_filesystem.c +1 -0
index 6cd5f1492c..94c0fdb73a 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/eal_firmware.c +1 -0
index 0d69b1e3f0..f0ea6d99cf 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/eal_unix_memory.c +4 -0
index 97969a401b..9dd585cf6b 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/eal_unix_timer.c +1 -0
index e71602b3a1..4db28f6f2a 100644

Lines of this file are not shown. View the raw message.

lib/eal/unix/rte_thread.c +13 -0
index ea629c2065..c478fbb111 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal.c +11 -0
index 5c7526f922..de540d8d2a 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_alarm.c +2 -0
index 5cd7b254a1..120ade1153 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_debug.c +1 -0
index 4a6303a2a9..37c01357cd 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_dev.c +4 -0
index e0b8c54dc5..661ea36417 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_interrupts.c +19 -0
index c97118d231..36a88cfb65 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_memory.c +7 -0
index 8de92d4089..47acb4c953 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_mp.c +6 -0
index 76413f49a3..7be7de870a 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_thread.c +1 -0
index 9e3df200b9..648dd862bb 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/eal_timer.c +1 -0
index 020035c4cc..9c1576d91c 100644

Lines of this file are not shown. View the raw message.

lib/eal/windows/rte_thread.c +14 -0
index 6f991dfa5d..023202978c 100644

Lines of this file are not shown. View the raw message.

lib/eal/x86/rte_cpuflags.c +3 -0
index 90389c66fc..d45fd5c0e5 100644

Lines of this file are not shown. View the raw message.

lib/eal/x86/rte_hypervisor.c +1 -0
index 04fe76751a..acf3920dbb 100644

Lines of this file are not shown. View the raw message.

lib/eal/x86/rte_power_intrinsics.c +4 -0
index f7d558153e..1c3676c794 100644

Lines of this file are not shown. View the raw message.

lib/eal/x86/rte_spinlock.c +1 -0
index 34890ea87c..83592b0b9e 100644

Lines of this file are not shown. View the raw message.

lib/efd/rte_efd.c +7 -0
index 3cbb3c2719..97dfc133af 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/ethdev_driver.c +24 -0
index e1976db05f..5846f3c298 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/ethdev_linux_ethtool.c +3 -0
index e792204b01..7c144bd800 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/ethdev_private.c +2 -0
index cc7fd97d4a..67ea0f1fd9 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/ethdev_trace_points.c +6 -0
index cb99cf91fc..67dc878eb6 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/rte_ethdev.c +168 -0

168 lines not on this page · raw message

lib/ethdev/rte_ethdev_cman.c +4 -0
index 73262ffc5f..1e6c975a55 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/rte_flow.c +64 -0

64 lines not on this page · raw message

lib/ethdev/rte_mtr.c +21 -0
index 900837bc09..35b6ee3195 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/rte_tm.c +31 -0
index 347dbb81f9..796c582149 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/eventdev_private.c +2 -0
index 6df129fc2d..bec79952be 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/eventdev_trace_points.c +11 -0
index 8caf6353a1..c65feabf14 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_crypto_adapter.c +15 -0
index fc43e056d7..ce9aeaa7be 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_dma_adapter.c +15 -0
index d9a02a30f2..88ed4d252b 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_eth_rx_adapter.c +23 -0
index ad832413d6..339fa75c82 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_eth_tx_adapter.c +17 -0
index 67fff8b7d6..0ee12e5eae 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_ring.c +4 -0
index b965970cf9..7b75584aef 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_event_timer_adapter.c +11 -0
index 5886965d14..1fb64ffc2d 100644

Lines of this file are not shown. View the raw message.

lib/eventdev/rte_eventdev.c +46 -0

46 lines not on this page · raw message

lib/fib/rte_fib.c +10 -0
index 49211fe3fa..b69fda8236 100644

Lines of this file are not shown. View the raw message.

lib/fib/rte_fib6.c +9 -0
index 9c7d4fde43..30c545cc1f 100644

Lines of this file are not shown. View the raw message.

lib/gpudev/gpudev.c +32 -0
index 1c2011b856..df91fbf0af 100644

Lines of this file are not shown. View the raw message.

lib/graph/graph.c +16 -0
index dff8e690a8..828cf3168b 100644

Lines of this file are not shown. View the raw message.

lib/graph/graph_debug.c +1 -0
index 37088ce2cf..dc0048a385 100644

Lines of this file are not shown. View the raw message.

lib/graph/graph_stats.c +4 -0
index 0bbbd9fb7c..75a0f62a60 100644

Lines of this file are not shown. View the raw message.

lib/graph/node.c +11 -0
index 63db629da8..d4096ce606 100644

Lines of this file are not shown. View the raw message.

lib/graph/rte_graph_model_mcore_dispatch.c +3 -0
index a590fc9497..68d951fca7 100644

Lines of this file are not shown. View the raw message.

lib/graph/rte_graph_worker.c +3 -0
index 7e2a918fae..2641d4f446 100644

Lines of this file are not shown. View the raw message.

lib/gro/rte_gro.c +6 -0
index 6d5aadf32a..0c9ac326b4 100644

Lines of this file are not shown. View the raw message.

lib/gso/rte_gso.c +1 -0
index e29c7d884a..34394c652e 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_cuckoo_hash.c +27 -0
index e55e6e1c81..201443f3fe 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_fbk_hash.c +3 -0
index dacb7e8b09..00d603ff9b 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_hash_crc.c +2 -0
index c037cdb0f0..fc5868a26e 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_thash.c +12 -0
index 1f9700258d..2712310548 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_thash_gf2_poly_math.c +1 -0
index 858884b4d4..467a610c79 100644

Lines of this file are not shown. View the raw message.

lib/hash/rte_thash_gfni.c +2 -0
index c94640d30d..8dd747bd4d 100644

Lines of this file are not shown. View the raw message.

lib/ip_frag/rte_ip_frag_common.c +5 -0
index 05f9e479c2..4d83f1536c 100644

Lines of this file are not shown. View the raw message.

lib/ip_frag/rte_ipv4_fragmentation.c +2 -0
index e04cf5738e..47a2aa86d6 100644

Lines of this file are not shown. View the raw message.

lib/ip_frag/rte_ipv4_reassembly.c +1 -0
index 5818f50f40..ee41877aaa 100644

Lines of this file are not shown. View the raw message.

lib/ip_frag/rte_ipv6_fragmentation.c +1 -0
index 56696f32f8..53da1a6129 100644

Lines of this file are not shown. View the raw message.

lib/ip_frag/rte_ipv6_reassembly.c +1 -0
index 9471ce5333..96cb275912 100644

Lines of this file are not shown. View the raw message.

lib/ipsec/ipsec_sad.c +6 -0
index 7e147e729c..680cc7fc5b 100644

Lines of this file are not shown. View the raw message.

lib/ipsec/ipsec_telemetry.c +2 -0
index 68a91108dd..6fd41d6afa 100644

Lines of this file are not shown. View the raw message.

lib/ipsec/sa.c +4 -0
index 741e079831..c211213d12 100644

Lines of this file are not shown. View the raw message.

lib/ipsec/ses.c +1 -0
index d9ab1e6d2b..97dc126f60 100644

Lines of this file are not shown. View the raw message.

lib/jobstats/rte_jobstats.c +14 -0
index af565a14ea..f3012f4bd0 100644

Lines of this file are not shown. View the raw message.

lib/kvargs/rte_kvargs.c +8 -0
index 1d355516bc..cce7d823fe 100644

Lines of this file are not shown. View the raw message.

lib/latencystats/rte_latencystats.c +5 -0
index 6a261309f9..c19b671b33 100644

Lines of this file are not shown. View the raw message.

lib/log/log.c +22 -0
index e1c18a8e53..3fd0e5d3d8 100644

Lines of this file are not shown. View the raw message.

lib/log/log_color.c +1 -0
index 04eb5aa485..603fbdcf35 100644

Lines of this file are not shown. View the raw message.

lib/log/log_syslog.c +1 -0
index 6b34831bf3..ca52c336ee 100644

Lines of this file are not shown. View the raw message.

lib/log/log_timestamp.c +1 -0
index b4b0bca6a8..02ddadb454 100644

Lines of this file are not shown. View the raw message.

lib/lpm/rte_lpm.c +8 -0
index a5c9e7c9fc..e1d9303116 100644

Lines of this file are not shown. View the raw message.

lib/lpm/rte_lpm6.c +10 -0
index 8beb394c47..60d27903e4 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf.c +17 -0
index 559d5ad8a7..908822fdd7 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf_dyn.c +9 -0
index 1cfb329c3a..3adac4a4a8 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf_pool_ops.c +5 -0
index 8e93c6acbd..79d6ee5561 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf_ptype.c +8 -0
index ab180b3dda..7e111e000f 100644

Lines of this file are not shown. View the raw message.

lib/member/rte_member.c +13 -0
index 57eb7affab..2756fd3327 100644

Lines of this file are not shown. View the raw message.

lib/mempool/mempool_trace_points.c +10 -0
index 307018094d..6667a75f28 100644

Lines of this file are not shown. View the raw message.

lib/mempool/rte_mempool.c +27 -0
index 1e4f24783c..aa38157e05 100644

Lines of this file are not shown. View the raw message.

lib/mempool/rte_mempool_ops.c +4 -0
index 1b33380259..74bd0fd7e1 100644

Lines of this file are not shown. View the raw message.

lib/mempool/rte_mempool_ops_default.c +4 -0
index 22fccf9d76..b82713ca5e 100644

Lines of this file are not shown. View the raw message.

lib/meter/rte_meter.c +6 -0
index 6545803d36..58166bc974 100644

Lines of this file are not shown. View the raw message.

lib/metrics/rte_metrics.c +8 -0
index 0ccdbabc04..30a8aeaf5c 100644

Lines of this file are not shown. View the raw message.

lib/metrics/rte_metrics_telemetry.c +11 -0
index dc43611d29..c187ab54f0 100644

Lines of this file are not shown. View the raw message.

lib/mldev/mldev_utils.c +2 -0
index 13ac615e9f..c33fd78d28 100644

Lines of this file are not shown. View the raw message.

lib/mldev/mldev_utils_neon.c +18 -0
index 8751a40863..08d114af42 100644

Lines of this file are not shown. View the raw message.

lib/mldev/mldev_utils_neon_bfloat16.c +2 -0
index b8e6853266..8789363e83 100644

Lines of this file are not shown. View the raw message.

lib/mldev/mldev_utils_scalar.c +18 -0
index e1fefdec3b..e12b08e983 100644

Lines of this file are not shown. View the raw message.

lib/mldev/mldev_utils_scalar_bfloat16.c +2 -0
index 3f93272518..795c62c4e4 100644

Lines of this file are not shown. View the raw message.

lib/mldev/rte_mldev.c +37 -0
index a81ece07b6..ebce2f1d28 100644

Lines of this file are not shown. View the raw message.

lib/mldev/rte_mldev_pmd.c +2 -0
index 3169e5d4fa..70604f2cf1 100644

Lines of this file are not shown. View the raw message.

lib/net/rte_arp.c +1 -0
index 22af519586..05e6c379bf 100644

Lines of this file are not shown. View the raw message.

lib/net/rte_ether.c +3 -0
index f59c20289d..471afadfb0 100644

Lines of this file are not shown. View the raw message.

lib/net/rte_net.c +2 -0
index 0c32e78a13..fde7e84048 100644

Lines of this file are not shown. View the raw message.

lib/net/rte_net_crc.c +1 -0
index 1943d46295..6133a9c495 100644

Lines of this file are not shown. View the raw message.

lib/node/ethdev_ctrl.c +2 -0
index cd52e8be08..8218fd8703 100644

Lines of this file are not shown. View the raw message.

lib/node/ip4_lookup.c +1 -0
index 0b474cd2bc..e50df3925e 100644

Lines of this file are not shown. View the raw message.

lib/node/ip4_reassembly.c +1 -0
index eb5f391114..9f9cf2d326 100644

Lines of this file are not shown. View the raw message.

lib/node/ip4_rewrite.c +1 -0
index 34a920df5e..8916bc9a1c 100644

Lines of this file are not shown. View the raw message.

lib/node/ip6_lookup.c +1 -0
index f378d2d064..6df326c36f 100644

Lines of this file are not shown. View the raw message.

lib/node/ip6_rewrite.c +1 -0
index 198d8d8820..9a0b8e62c2 100644

Lines of this file are not shown. View the raw message.

lib/node/udp4_input.c +2 -0
index bbcb2c70e7..7aa9b31a8b 100644

Lines of this file are not shown. View the raw message.

lib/pcapng/rte_pcapng.c +7 -0
index 16485b27cb..a8b64c1a8f 100644

Lines of this file are not shown. View the raw message.

lib/pci/rte_pci.c +3 -0
index 1c5ef951d3..89c4c578af 100644

Lines of this file are not shown. View the raw message.

lib/pdcp/rte_pdcp.c +5 -0
index 1c076fb448..d756d1a4f4 100644

Lines of this file are not shown. View the raw message.

lib/pdump/rte_pdump.c +9 -0
index 679c3dd0b5..08b6863da3 100644

Lines of this file are not shown. View the raw message.

lib/pipeline/rte_pipeline.c +23 -0
index a09a89f746..0fc6417b7b 100644

Lines of this file are not shown. View the raw message.

lib/pipeline/rte_port_in_action.c +8 -0
index 4127bd2cab..2d018966b0 100644

Lines of this file are not shown. View the raw message.

lib/pipeline/rte_swx_ctl.c +17 -0
index 857770d297..fddf30fa1c 100644

Lines of this file are not shown. View the raw message.

lib/pipeline/rte_swx_ipsec.c +7 -0
index 17a9d2b98b..ee97a70c30 100644

Lines of this file are not shown. View the raw message.

lib/pipeline/rte_swx_pipeline.c +73 -0

73 lines not on this page · raw message

lib/pipeline/rte_table_action.c +16 -0
index 3a408e81b8..7873d5342c 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_ethdev.c +3 -0
index d57f680e98..2aa644f08b 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_eventdev.c +3 -0
index 6acf22998d..b0bd752707 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_fd.c +3 -0
index 281cba20c2..1094f0769d 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_frag.c +2 -0
index 0940f945bd..7adb88f8c7 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_ras.c +2 -0
index 42cf1ddf45..e5d543a1d8 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_ring.c +6 -0
index 680d208f45..53af32f55c 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_sched.c +2 -0
index da7a6240d7..c85ed61633 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_source_sink.c +2 -0
index a4486a7199..f832d4c40e 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_port_sym_crypto.c +3 -0
index a68a2396a5..74f7defbec 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_swx_port_ethdev.c +2 -0
index 7cb3c4dfb1..3685e8a0a3 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_swx_port_fd.c +2 -0
index 4bbad2eaa7..cd3d45796e 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_swx_port_ring.c +2 -0
index af541a2fa2..fbdd8e05f2 100644

Lines of this file are not shown. View the raw message.

lib/port/rte_swx_port_source_sink.c +3 -0
index 757a2c4a2e..fd37d66803 100644

Lines of this file are not shown. View the raw message.

lib/power/power_common.c +8 -0
index e482f71c64..28314b039a 100644

Lines of this file are not shown. View the raw message.

lib/power/rte_power_cpufreq.c +18 -0
index 3576017239..f2dc5d2af4 100644

Lines of this file are not shown. View the raw message.

lib/power/rte_power_pmd_mgmt.c +10 -0
index 8ec925bd65..01ea38bf98 100644

Lines of this file are not shown. View the raw message.

lib/power/rte_power_qos.c +2 -0
index 4dd0532b36..e828a87c8b 100644

Lines of this file are not shown. View the raw message.

lib/power/rte_power_uncore.c +14 -0
index 741e067932..c1f47ab6e5 100644

Lines of this file are not shown. View the raw message.

lib/rawdev/rte_rawdev.c +30 -0
index 810e95a440..f2e98e2be8 100644

Lines of this file are not shown. View the raw message.

lib/rcu/rte_rcu_qsbr.c +11 -0
index dbf31501a6..dc8d8de7fa 100644

Lines of this file are not shown. View the raw message.

lib/regexdev/rte_regexdev.c +26 -0
index 431ed911a1..6ff4d871cf 100644

Lines of this file are not shown. View the raw message.

lib/reorder/rte_reorder.c +11 -0
index ae97e1a34d..d5828a1a88 100644

Lines of this file are not shown. View the raw message.

lib/rib/rte_rib.c +14 -0
index b95d329c8b..a144faa69a 100644

Lines of this file are not shown. View the raw message.

lib/rib/rte_rib6.c +14 -0
index 84c47fed6d..b05ff89322 100644

Lines of this file are not shown. View the raw message.

lib/ring/rte_ring.c +11 -0
index a7d9d6b037..8d476b9a3c 100644

Lines of this file are not shown. View the raw message.

lib/ring/rte_soring.c +3 -0
index 8cee926b11..1c9452eb24 100644

Lines of this file are not shown. View the raw message.

lib/ring/soring.c +16 -0
index 4fec7efae7..9d77404aee 100644

Lines of this file are not shown. View the raw message.

lib/sched/rte_approx.c +1 -0
index edc8d9113b..ac06dffb88 100644

Lines of this file are not shown. View the raw message.

lib/sched/rte_pie.c +2 -0
index a9f650e60f..94fc756f16 100644

Lines of this file are not shown. View the raw message.

lib/sched/rte_red.c +6 -0
index fa27a141ed..2e3e7efee1 100644

Lines of this file are not shown. View the raw message.

lib/sched/rte_sched.c +15 -0
index d8ee4e7e91..a5f2051bed 100644

Lines of this file are not shown. View the raw message.

lib/security/rte_security.c +20 -0
index 1e980343fe..154d5e1a1a 100644

Lines of this file are not shown. View the raw message.

lib/stack/rte_stack.c +3 -0
index 7261281dc1..f9a1f58a86 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_swx_table_em.c +2 -0
index 2f042d74b3..c6a561871e 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_swx_table_learner.c +10 -0
index 55a3645e06..faf69a5e77 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_swx_table_selector.c +6 -0
index 18e021fe6f..400c7e7574 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_swx_table_wm.c +1 -0
index 58afb35d46..5f7880b282 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_acl.c +1 -0
index 78779bbc4d..414fbcd1c2 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_array.c +1 -0
index 84b5d67e90..92550469b3 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_cuckoo.c +1 -0
index 388eae918c..56ddefb71d 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_ext.c +1 -0
index 91e5037b41..b3e56a6516 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_key16.c +2 -0
index 67b77c16a0..61d36e37b1 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_key32.c +2 -0
index 1aa86c6a49..1b597694ba 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_key8.c +2 -0
index c8d72b333d..9cf2cc3a91 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_hash_lru.c +1 -0
index 801e48f5ba..051cd3dbcf 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_lpm.c +1 -0
index 3e10c14d40..9387260679 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_lpm_ipv6.c +1 -0
index dea11130d3..50ab87d5a9 100644

Lines of this file are not shown. View the raw message.

lib/table/rte_table_stub.c +1 -0
index 7147f7146e..cd5e2e0127 100644

Lines of this file are not shown. View the raw message.

lib/telemetry/telemetry.c +3 -0
index 31a2c91c06..57b758ec4d 100644

Lines of this file are not shown. View the raw message.

lib/telemetry/telemetry_data.c +17 -0
index 3b1a2408df..29e6134427 100644

Lines of this file are not shown. View the raw message.

lib/telemetry/telemetry_legacy.c +1 -0
index 578230732c..bb7018f7a7 100644

Lines of this file are not shown. View the raw message.

lib/timer/rte_timer.c +18 -0
index bb8b6a651d..380c2a83bd 100644

Lines of this file are not shown. View the raw message.

lib/vhost/socket.c +16 -0
index 4c6c551c3d..cfe9d3f52d 100644

Lines of this file are not shown. View the raw message.

lib/vhost/vdpa.c +11 -0
index 329dd572b7..fa99a835f7 100644

Lines of this file are not shown. View the raw message.

lib/vhost/vhost.c +41 -0

41 lines not on this page · raw message

lib/vhost/vhost_crypto.c +6 -0
index 3c6c5dc114..e6b1afbb31 100644

Lines of this file are not shown. View the raw message.

lib/vhost/vhost_user.c +2 -0
index 26dc0bde97..902654a03c 100644

Lines of this file are not shown. View the raw message.

lib/vhost/virtio_net.c +7 -0
index 0348e8dac3..37515d44b0 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.48.1

Part of the diff is not shown here. View the raw message.

#21 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 9 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

/Bruce

#22 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 9 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

Quoted 7 lines
Quoted 2 lines

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

We are not there yet, but it is likely MSVC linker will complain, indeed.

#ifdef around the exports won't work, we would need a precompiler pass (and exclude rte_exports.h inclusion).

Another option would be to provide stubs for those symbols when the additional AVX512 (for example) libraries are not compiled.

But I think the simpler is to let a driver/library provide a set of sources to parse for exports... maybe via an extra variable? WDYT?

Something like:

drivers/meson.build +0 -0
index 2b0fcd4ef0..6828067fd1 100644
@@ -269,7 +268,7 @@ foreach subpath:subdirs
         endif
         version_map = custom_target(lib_name + '_map',
                 command: [gen_version_map, link_mode,

abi_version_file, '@OUTPUT@', '@INPUT@'],
- input: sources,
+ input: sources + exported_symbol_sources,
output: '_'.join(class, name, 'exports.map'))
lk_deps = [version_map]
diff --git a/drivers/net/intel/idpf/idpf_common_rxtx.c
b/drivers/net/intel/idpf/idpf_common_rxtx.c
index 5764bd0e9b..b468e1cd57 100644

drivers/net/intel/idpf/idpf_common_rxtx.c +0 -9
@@ -1647,12 +1647,3 @@ idpf_qc_splitq_rx_vec_setup(struct idpf_rx_queue *rxq)
        rxq->bufq2->ops = &def_rx_ops_vec;
        return idpf_rxq_vec_setup_default(rxq->bufq2);
 }
-
-/* Export all AVX* symbols */
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_recv_pkts_avx2)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_xmit_pkts_avx2)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_recv_pkts_avx512)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_splitq_recv_pkts_avx512)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_xmit_pkts_avx512)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_splitq_xmit_pkts_avx512)
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_qc_tx_vec_avx512_setup)
(quoted diff) +0 -0

b/drivers/net/intel/idpf/idpf_common_rxtx_avx2.c
index 43a95466ae..3ff70955c8 100644

drivers/net/intel/idpf/idpf_common_rxtx_avx2.c +0 -0
@@ -473,6 +473,7 @@ _idpf_singleq_recv_raw_pkts_vec_avx2(struct

idpf_rx_queue *rxq, struct rte_mbuf
* Notice:
* - nb_pkts < IDPF_DESCS_PER_LOOP, just return no packet */
+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_recv_pkts_avx2)
uint16_t
idpf_dp_singleq_recv_pkts_avx2(void *rx_queue, struct rte_mbuf
**rx_pkts, uint16_t nb_pkts)
{
@@ -682,6 +683,7 @@ idpf_singleq_xmit_fixed_burst_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts

        return nb_pkts;

}

+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_xmit_pkts_avx2)
uint16_t
idpf_dp_singleq_xmit_pkts_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,

                               uint16_t nb_pkts)
(quoted diff) +0 -0

b/drivers/net/intel/idpf/idpf_common_rxtx_avx512.c index b630d1fcd9..e8bf8149e1 100644

drivers/net/intel/idpf/idpf_common_rxtx_avx512.c +0 -0
@@ -530,6 +530,7 @@ _idpf_singleq_recv_raw_pkts_avx512(struct

idpf_rx_queue *rxq,
* Notice:
* - nb_pkts < IDPF_DESCS_PER_LOOP, just return no packet
*/
+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_recv_pkts_avx512)
uint16_t
idpf_dp_singleq_recv_pkts_avx512(void *rx_queue, struct rte_mbuf **rx_pkts,

                                 uint16_t nb_pkts)

@@ -987,6 +988,7 @@ _idpf_splitq_recv_raw_pkts_avx512(struct idpf_rx_queue *rxq,
}

/* only bufq2 can receive pkts */
+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_splitq_recv_pkts_avx512)
uint16_t
idpf_dp_splitq_recv_pkts_avx512(void *rx_queue, struct rte_mbuf **rx_pkts,

                             uint16_t nb_pkts)
@@ -1281,6 +1283,7 @@ idpf_singleq_xmit_pkts_vec_avx512_cmn(void
*tx_queue, struct rte_mbuf **tx_pkts,
        return nb_tx;

}

+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_singleq_xmit_pkts_avx512)
uint16_t
idpf_dp_singleq_xmit_pkts_avx512(void *tx_queue, struct rte_mbuf **tx_pkts,

                                 uint16_t nb_pkts)
@@ -1584,6 +1587,7 @@ idpf_splitq_xmit_pkts_vec_avx512_cmn(void
*tx_queue, struct rte_mbuf **tx_pkts,
        return nb_tx;

}

+RTE_EXPORT_INTERNAL_SYMBOL(idpf_dp_splitq_xmit_pkts_avx512)
uint16_t
idpf_dp_splitq_xmit_pkts_avx512(void *tx_queue, struct rte_mbuf **tx_pkts,

                                uint16_t nb_pkts)

@@ -1619,6 +1623,7 @@ static const struct idpf_txq_ops avx512_tx_vec_ops = {
.release_mbufs = idpf_tx_release_mbufs_avx512,
};

+RTE_EXPORT_INTERNAL_SYMBOL(idpf_qc_tx_vec_avx512_setup)
int __rte_cold idpf_qc_tx_vec_avx512_setup(struct idpf_tx_queue *txq) {

(quoted diff) +0 -0

b/drivers/net/intel/idpf/meson.build
index 4b272d02b1..47f6f8736e 100644

drivers/net/intel/idpf/meson.build +0 -0
@@ -25,6 +25,7 @@ if arch_subdir == 'x86' and

dpdk_conf.get('RTE_IOVA_IN_MBUF') == 1

         include_directories: includes,
         c_args: [cflags, cc_avx2_flags])
     objs += idpf_avx2_lib.extract_objects('idpf_common_rxtx_avx2.c')

+ exported_symbol_sources += files('idpf_common_rxtx_avx2.c')

     if cc_has_avx512
         cflags += ['-DCC_AVX512_SUPPORT']
@@ -41,6 +42,7 @@ if arch_subdir == 'x86' and
dpdk_conf.get('RTE_IOVA_IN_MBUF') == 1
                 include_directories: includes,
                 c_args: avx512_args)
         objs +=

idpf_common_avx512_lib.extract_objects('idpf_common_rxtx_avx512.c')
+ exported_symbol_sources += files('idpf_common_rxtx_avx512.c')
endif
endif

Signature · 1 line
David Marchand
#23 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 24 lines · David Marchand
Quoted 9 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

Quoted 7 lines
Quoted 2 lines

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

We are not there yet, but it is likely MSVC linker will complain, indeed.

#ifdef around the exports won't work, we would need a precompiler pass (and exclude rte_exports.h inclusion).

Quoted 7 lines

Another option would be to provide stubs for those symbols when the additional AVX512 (for example) libraries are not compiled.

But I think the simpler is to let a driver/library provide a set of sources to parse for exports... maybe via an extra variable? WDYT?

Yes, something like that could work.

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

/Bruce

#24 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 35 lines · Bruce Richardson
Quoted 24 lines · David Marchand
Quoted 9 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

Quoted 7 lines
Quoted 2 lines

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

We are not there yet, but it is likely MSVC linker will complain, indeed.

#ifdef around the exports won't work, we would need a precompiler pass (and exclude rte_exports.h inclusion).

Quoted 7 lines

Another option would be to provide stubs for those symbols when the additional AVX512 (for example) libraries are not compiled.

But I think the simpler is to let a driver/library provide a set of sources to parse for exports... maybe via an extra variable? WDYT?

Yes, something like that could work.

Quoted 8 lines

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

Having those separate libraries require special cases every time, so yes, it would be great if those could be factored in some shared mechanism in drivers/meson.build.

Putting the AVX stuff aside, and back to why we need those separate libraries for base drivers... I think the main use is to waive some build warnings, is there something else?
If so.. I think some drivers could already be cleaned (like net/e1000, net/ngbe, net/octeontx, net/thunderx, net/txgbe, raw/ifpga at a first glance).

The AVX stuff seems a bit more complex, as there are multiple combinations...

Signature · 1 line
David Marchand
#25 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 51 lines · David Marchand
Quoted 35 lines · Bruce Richardson
Quoted 24 lines · David Marchand
Quoted 9 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

Quoted 7 lines
Quoted 2 lines

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

We are not there yet, but it is likely MSVC linker will complain, indeed.

#ifdef around the exports won't work, we would need a precompiler pass (and exclude rte_exports.h inclusion).

Quoted 7 lines

Another option would be to provide stubs for those symbols when the additional AVX512 (for example) libraries are not compiled.

But I think the simpler is to let a driver/library provide a set of sources to parse for exports... maybe via an extra variable? WDYT?

Yes, something like that could work.

Quoted 8 lines

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

Having those separate libraries require special cases every time, so yes, it would be great if those could be factored in some shared mechanism in drivers/meson.build.

Quoted 8 lines

Putting the AVX stuff aside, and back to why we need those separate libraries for base drivers... I think the main use is to waive some build warnings, is there something else?
If so.. I think some drivers could already be cleaned (like net/e1000, net/ngbe, net/octeontx, net/thunderx, net/txgbe, raw/ifpga at a first glance).

The AVX stuff seems a bit more complex, as there are multiple combinations...

CFLAGS_file.o += -Wno-stuff was so handy ... :-)

Signature · 1 line
David Marchand
#26 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

In reply to David Marchand
Quoted 50 lines · David Marchand
Quoted 35 lines · Bruce Richardson
Quoted 24 lines · David Marchand
Quoted 9 lines · Bruce Richardson
Quoted 7 lines · David Marchand

Annotate symbols with newly introduced export macros.

For code not compiled by lib/meson.build or drivers/meson.build (like AVX separate libraries, or sources in /base/ drivers), the exported symbols are added in some file listed in the sources so they get caught by lib/meson.build or drivers/meson.build.

Quoted 7 lines
Quoted 2 lines

---

Just checking: for the AVX2 and similar instruction-set-specific functions, we don't get errors if those are not present in the actual link phase, e.g. when building on non-x86 platforms? We don't need to put an #ifdef around the exports?

We are not there yet, but it is likely MSVC linker will complain, indeed.

#ifdef around the exports won't work, we would need a precompiler pass (and exclude rte_exports.h inclusion).

Quoted 7 lines

Another option would be to provide stubs for those symbols when the additional AVX512 (for example) libraries are not compiled.

But I think the simpler is to let a driver/library provide a set of sources to parse for exports... maybe via an extra variable? WDYT?

Yes, something like that could work.

Quoted 8 lines

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

Having those separate libraries require special cases every time, so yes, it would be great if those could be factored in some shared mechanism in drivers/meson.build.

Quoted 9 lines

Putting the AVX stuff aside, and back to why we need those separate libraries for base drivers... I think the main use is to waive some build warnings, is there something else?
If so.. I think some drivers could already be cleaned (like net/e1000, net/ngbe, net/octeontx, net/thunderx, net/txgbe, raw/ifpga at a first glance).

The AVX stuff seems a bit more complex, as there are multiple combinations...

First attempt seems to go surprisingly smoothly[1]. It still builds, which is a start, though obviously some testing will be needed to check nothing else is broken.
It really helped that most code just seemed to have been copy-pasted around the place.

/Bruce

[1] https://patches.dpdk.org/project/dpdk/list/?series=34868&state=*

#27 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 20 lines · Bruce Richardson
Quoted 20 lines
Quoted 8 lines

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

Having those separate libraries require special cases every time, so yes, it would be great if those could be factored in some shared mechanism in drivers/meson.build.

Putting the AVX stuff aside, and back to why we need those separate libraries for base drivers... I think the main use is to waive some build warnings, is there something else?
If so.. I think some drivers could already be cleaned (like net/e1000, net/ngbe, net/octeontx, net/thunderx, net/txgbe, raw/ifpga at a first glance).

Quoted 6 lines
Quoted 2 lines

The AVX stuff seems a bit more complex, as there are multiple combinations...

First attempt seems to go surprisingly smoothly[1]. It still builds, which is a start, though obviously some testing will be needed to check nothing else is broken.

If it builds.. what more to ask for? :-)

Quoted 2 lines

It really helped that most code just seemed to have been copy-pasted around the place.

I had a quick look, it lgtm on the principle.

Could this be applied to lib/ ? (I see some complications with AVX512 special instructions in lib/net..).

Signature · 1 line
David Marchand
#28 lore raw

Re: [RFC v3 6/8] build: mark exported symbols

Quoted 15 lines · David Marchand
Quoted 13 lines · Bruce Richardson
Quoted 13 lines
Quoted 8 lines

What I'd actually like more, but never have had time to actually try out is to generalise the instruction-set-specific build stuff into the higher level drivers/meson.build code. After all, much of the code for doing so is just duplicated - check for AVX512 or AVX2 and if present build these files with the extra flags for that instruction set.

Something similar with the base code. Most base code builds follow pretty much the exact same routine.

Having those separate libraries require special cases every time, so yes, it would be great if those could be factored in some shared mechanism in drivers/meson.build.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Putting the AVX stuff aside, and back to why we need those separate libraries for base drivers... I think the main use is to waive some build warnings, is there something else?
If so.. I think some drivers could already be cleaned (like net/e1000, net/ngbe, net/octeontx, net/thunderx, net/txgbe, raw/ifpga at a first glance).

Great. The question is whether that will always be true for those drivers. Even with those cleaned, we'll still need common base code handling, and with that done, it might as well be used for all base directories, not just a few.

Quoted 10 lines
Quoted 7 lines
Quoted 3 lines

The AVX stuff seems a bit more complex, as there are multiple combinations...

First attempt seems to go surprisingly smoothly[1]. It still builds, which is a start, though obviously some testing will be needed to check nothing else is broken.

If it builds.. what more to ask for? :-)

Quoted 8 lines
Quoted 2 lines

It really helped that most code just seemed to have been copy-pasted around the place.

I had a quick look, it lgtm on the principle.

Could this be applied to lib/ ? (I see some complications with AVX512 special instructions in lib/net..).

It hopefully can. I suspect there may be more complications in doing so, though. I notice a few libraries use instruction sets beyond the initial ones enabled in march=skylake-avx512, so it's not a common baseline we can easily switch to. I'll try and look at it if I get a chance.

/Bruce

#29 lore raw

RFC v3 7/8 build: use dynamically generated version maps

In reply to David Marchand

Switch to always dynamically generate version maps.

As the map files get generated, tooling around checking, converting, updating etc.. static version maps can be removed.

---
 .github/workflows/build.yml                   |   1 -
 MAINTAINERS                                   |   7 -
 buildtools/check-symbols.sh                   |  33 +-
 buildtools/map-list-symbol.sh                 |   7 +-
 buildtools/map_to_win.py                      |  41 ---
 buildtools/meson.build                        |   1 -
 devtools/check-symbol-change.sh               | 186 -----------
 devtools/check-symbol-maps.sh                 | 101 ------
 devtools/checkpatches.sh                      |   2 +-
 devtools/update-abi.sh                        |  46 ---
 devtools/update_version_map_abi.py            | 210 ------------
 doc/guides/contributing/abi_policy.rst        |  21 +-
 doc/guides/contributing/coding_style.rst      |   7 -
 .../contributing/img/patch_cheatsheet.svg     | 303 ++++++++----------
 doc/guides/contributing/patches.rst           |   6 +-
 drivers/meson.build                           |  74 ++---
 lib/meson.build                               |  73 ++---
 17 files changed, 188 insertions(+), 931 deletions(-)
 delete mode 100644 buildtools/map_to_win.py
 delete mode 100755 devtools/check-symbol-change.sh
 delete mode 100755 devtools/check-symbol-maps.sh
 delete mode 100755 devtools/update-abi.sh
 delete mode 100755 devtools/update_version_map_abi.py
.github/workflows/build.yml +0 -1
index fba46b920f..e97b5cdb8b 100644
@@ -31,7 +31,6 @@ jobs:
         failed=
         devtools/check-doc-vs-code.sh upstream/${{ env.REF_GIT_BRANCH }} || failed=true
         devtools/check-meson.py || failed=true
-        devtools/check-symbol-maps.sh || failed=true
         [ -z "$failed" ]
   ubuntu-vm-builds:
     name: ${{ join(matrix.config.*, '-') }}
MAINTAINERS +0 -7
index 04772951d3..9474189035 100644
@@ -88,7 +88,6 @@ M: Thomas Monjalon <[email protected]>
 F: MAINTAINERS
 F: devtools/build-dict.sh
 F: devtools/check-abi.sh
-F: devtools/check-abi-version.sh
 F: devtools/check-doc-vs-code.sh
 F: devtools/check-dup-includes.sh
 F: devtools/check-maintainers.sh
@@ -96,17 +95,13 @@ F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
 F: devtools/check-symbol-change.py
-F: devtools/check-symbol-change.sh
-F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
 F: devtools/get-maintainer.sh
 F: devtools/git-log-fixes.sh
 F: devtools/load-devel-config
 F: devtools/parse-flow-support.sh
 F: devtools/process-iwyu.py
-F: devtools/update-abi.sh
 F: devtools/update-patches.py
-F: devtools/update_version_map_abi.py
 F: devtools/libabigail.abignore
 F: devtools/words-case.txt
 F: license/
@@ -166,7 +161,6 @@ M: Tyler Retzlaff <[email protected]>
 F: lib/eal/common/
 F: lib/eal/unix/
 F: lib/eal/include/
-F: lib/eal/version.map
 F: doc/guides/prog_guide/env_abstraction_layer.rst
 F: app/test/test_alarm.c
 F: app/test/test_atomic.c
@@ -396,7 +390,6 @@ Windows support
 M: Dmitry Kozlyuk <[email protected]>
 M: Tyler Retzlaff <[email protected]>
 F: lib/eal/windows/
-F: buildtools/map_to_win.py
 F: doc/guides/windows_gsg/
 
 Windows memory allocation
buildtools/check-symbols.sh +6 -27
index b8ac24391e..0d6745ec14 100755
@@ -7,29 +7,12 @@ OBJFILE=$2
 
 ROOTDIR=$(readlink -f $(dirname $(readlink -f $0))/..)
 LIST_SYMBOL=$ROOTDIR/buildtools/map-list-symbol.sh
-CHECK_SYMBOL_MAPS=$ROOTDIR/devtools/check-symbol-maps.sh
-
-# added check for "make -C test/" usage
-if [ ! -e $MAPFILE ] || [ ! -f $OBJFILE ]
-then
-	exit 0
-fi
-
-if [ -d $MAPFILE ]
-then
-	exit 0
-fi
-
 DUMPFILE=$(mktemp -t dpdk.${0##*/}.objdump.XXXXXX)
 trap 'rm -f "$DUMPFILE"' EXIT
 objdump -t $OBJFILE >$DUMPFILE
 
 ret=0
 
-if ! $CHECK_SYMBOL_MAPS $MAPFILE; then
-	ret=1
-fi
-
 for SYM in `$LIST_SYMBOL -S EXPERIMENTAL $MAPFILE |cut -d ' ' -f 3`
 do
 	if grep -q "\.text.*[[:space:]]$SYM$" $DUMPFILE &&
@@ -37,8 +20,7 @@ do
 		$LIST_SYMBOL -s $SYM $MAPFILE | grep -q EXPERIMENTAL
 	then
 		cat >&2 <<- END_OF_MESSAGE
-		$SYM is not flagged as experimental
-		but is listed in version map
+		$SYM is not flagged as experimental but is exported as an experimental symbol
 		Please add __rte_experimental to the definition of $SYM
 		END_OF_MESSAGE
 		ret=1
@@ -53,9 +35,8 @@ for SYM in `awk '{
 do
 	$LIST_SYMBOL -S EXPERIMENTAL -s $SYM -q $MAPFILE || {
 		cat >&2 <<- END_OF_MESSAGE
-		$SYM is flagged as experimental
-		but is not listed in version map
-		Please add $SYM to the version map
+		$SYM is flagged as experimental but is not exported as an experimental symbol
+		Please add RTE_EXPORT_EXPERIMENTAL_SYMBOL to the definition of $SYM
 		END_OF_MESSAGE
 		ret=1
 	}
@@ -67,8 +48,7 @@ do
 		! grep -q "\.text\.internal.*[[:space:]]$SYM$" $DUMPFILE
 	then
 		cat >&2 <<- END_OF_MESSAGE
-		$SYM is not flagged as internal
-		but is listed in version map
+		$SYM is not flagged as internal but is exported as an internal symbol
 		Please add __rte_internal to the definition of $SYM
 		END_OF_MESSAGE
 		ret=1
@@ -83,9 +63,8 @@ for SYM in `awk '{
 do
 	$LIST_SYMBOL -S INTERNAL -s $SYM -q $MAPFILE || {
 		cat >&2 <<- END_OF_MESSAGE
-		$SYM is flagged as internal
-		but is not listed in version map
-		Please add $SYM to the version map
+		$SYM is flagged as internal but is not exported as an internal symbol
+		Please add RTE_EXPORT_INTERNAL_SYMBOL to the definition of $SYM
 		END_OF_MESSAGE
 		ret=1
 	}
buildtools/map-list-symbol.sh +1 -6
index 0829df4be5..962d5f3271 100755
@@ -42,7 +42,6 @@ for file in $@; do
 	cat "$file" |awk '
 	BEGIN {
 		current_section = "";
-		current_version = "";
 		if ("'$section'" == "all" && "'$symbol'" == "all" && "'$version'" == "") {
 			ret = 0;
 		} else {
@@ -54,15 +53,11 @@ for file in $@; do
 			current_section = $1;
 		}
 	}
-	/.*}/ { current_section = ""; current_version = ""; }
-	/^\t# added in / {
-		current_version=$4;
-	}
+	/.*}/ { current_section = ""; }
 	/^[^}].*[^:*];/ {
 		if (current_section == "") {
 			next;
 		}
-		symbol_version = current_version
 		if (/^[^}].*[^:*]; # added in /) {
 			symbol_version = $5
 		}
buildtools/map_to_win.py deleted +0 -41

41 lines not on this page · raw message

buildtools/meson.build +0 -1
index b745e9afa4..1cd1ce02fd 100644
@@ -18,7 +18,6 @@ endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
 gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
-map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
 get_cpu_count_cmd = py3 + files('get-cpu-count.py')
 get_numa_count_cmd = py3 + files('get-numa-count.py')
devtools/check-symbol-change.sh deleted +0 -186

186 lines not on this page · raw message

devtools/check-symbol-maps.sh deleted +0 -101

101 lines not on this page · raw message

devtools/checkpatches.sh +1 -1
index 7dcac7c8c9..1f3c551b31 100755
@@ -9,7 +9,7 @@
 # - DPDK_CHECKPATCH_OPTIONS
 . $(dirname $(readlink -f $0))/load-devel-config
 
-VALIDATE_NEW_API=$(dirname $(readlink -f $0))/check-symbol-change.sh
+VALIDATE_NEW_API=$(dirname $(readlink -f $0))/check-symbol-change.py
 
 # Enable codespell by default. This can be overwritten from a config file.
 # Codespell can also be enabled by setting DPDK_CHECKPATCH_CODESPELL to a valid path
devtools/update-abi.sh deleted +0 -46

46 lines not on this page · raw message

devtools/update_version_map_abi.py deleted +0 -210

210 lines not on this page · raw message

doc/guides/contributing/abi_policy.rst +2 -19
index d96153c6b2..f03a7467ac 100644
@@ -330,31 +330,14 @@ become part of a tracked ABI version.
 
 Note that marking an API as experimental is a multi step process.
 To mark an API as experimental, the symbols which are desired to be exported
-must be placed in an EXPERIMENTAL version block in the corresponding libraries'
-version map script.
+must be annotated with a RTE_EXPORT_EXPERIMENTAL_SYMBOL call in the corresponding libraries'
+sources.
 Experimental symbols must be commented so that it is clear in which DPDK
 version they were introduced.
 
-.. code-block:: none
-
-   EXPERIMENTAL {
-           global:
-
-           # added in 20.11
-           rte_foo_init;
-           rte_foo_configure;
-
-           # added in 21.02
-           rte_foo_cleanup;
-   ...
-
 Secondly, the corresponding prototypes of those exported functions (in the
 development header files), must be marked with the ``__rte_experimental`` tag
 (see ``rte_compat.h``).
-The DPDK build makefiles perform a check to ensure that the map file and the
-C code reflect the same list of symbols.
-This check can be circumvented by defining ``ALLOW_EXPERIMENTAL_API``
-during compilation in the corresponding library Makefile.
 
 In addition to tagging the code with ``__rte_experimental``,
 the doxygen markup must also contain the EXPERIMENTAL string,
doc/guides/contributing/coding_style.rst +0 -7
index 1ebc79ca3c..43e27bbd0a 100644
@@ -1018,13 +1018,6 @@ name
 	sources are stored in a directory ``lib/xyz``, this value should
 	never be needed for new libraries.
 
-.. note::
-
-	The name value also provides the name used to find the function version
-	map file, as part of the build process, so if the directory name and
-	library names differ, the ``version.map`` file should be named
-	consistently with the library, not the directory
-
 objs
 	**Default Value = []**.
 	This variable can be used to pass to the library build some pre-built
doc/guides/contributing/img/patch_cheatsheet.svg +136 -167

368 lines not on this page · raw message

doc/guides/contributing/patches.rst +3 -3
index d21ee288b2..8ad6b6e715 100644
@@ -160,9 +160,9 @@ Make your planned changes in the cloned ``dpdk`` repo. Here are some guidelines
 
   * For other PMDs and more info, refer to the ``MAINTAINERS`` file.
 
-* New external functions should be added to the local ``version.map`` file. See
-  the :doc:`ABI policy <abi_policy>` and :ref:`ABI versioning <abi_versioning>`
-  guides. New external functions should also be added in alphabetical order.
+* New external functions should be exported.
+  See the :doc:`ABI policy <abi_policy>` and :ref:`ABI versioning <abi_versioning>`
+  guides.
 
 * Any new API function should be used in ``/app`` test directory.
 
drivers/meson.build +20 -54

98 lines not on this page · raw message

lib/meson.build +19 -54

98 lines not on this page · raw message

Signature · 1 line
2.48.1
#30 lore raw

RFC v3 8/8 build: remove static version maps

In reply to David Marchand

Now that all version map files get generated, we can delete all committed files.

---
 drivers/baseband/acc/version.map           |  10 -
 drivers/baseband/fpga_5gnr_fec/version.map |  11 -
 drivers/baseband/fpga_lte_fec/version.map  |  10 -
 drivers/bus/auxiliary/version.map          |   8 -
 drivers/bus/cdx/version.map                |  14 -
 drivers/bus/dpaa/version.map               | 108 ----
 drivers/bus/fslmc/version.map              | 127 -----
 drivers/bus/ifpga/version.map              |   9 -
 drivers/bus/pci/version.map                |  43 --
 drivers/bus/platform/version.map           |  10 -
 drivers/bus/uacce/version.map              |  15 -
 drivers/bus/vdev/version.map               |  17 -
 drivers/bus/vmbus/version.map              |  33 --
 drivers/common/cnxk/version.map            | 576 ---------------------
 drivers/common/cpt/version.map             |  11 -
 drivers/common/dpaax/version.map           |  25 -
 drivers/common/ionic/version.map           |  10 -
 drivers/common/mlx5/version.map            | 174 -------
 drivers/common/mvep/version.map            |   8 -
 drivers/common/nfp/version.map             |  16 -
 drivers/common/nitrox/version.map          |  10 -
 drivers/common/octeontx/version.map        |  12 -
 drivers/common/sfc_efx/version.map         | 302 -----------
 drivers/crypto/cnxk/version.map            |  30 --
 drivers/crypto/dpaa2_sec/version.map       |   8 -
 drivers/crypto/dpaa_sec/version.map        |   8 -
 drivers/crypto/octeontx/version.map        |  12 -
 drivers/crypto/scheduler/version.map       |  16 -
 drivers/dma/cnxk/version.map               |  10 -
 drivers/event/cnxk/version.map             |  11 -
 drivers/event/dlb2/version.map             |  10 -
 drivers/mempool/cnxk/version.map           |  12 -
 drivers/mempool/dpaa/version.map           |   8 -
 drivers/mempool/dpaa2/version.map          |  16 -
 drivers/net/atlantic/version.map           |  15 -
 drivers/net/bnxt/version.map               |  22 -
 drivers/net/bonding/version.map            |  33 --
 drivers/net/cnxk/version.map               |  27 -
 drivers/net/dpaa/version.map               |  14 -
 drivers/net/dpaa2/version.map              |  35 --
 drivers/net/intel/i40e/version.map         |  55 --
 drivers/net/intel/iavf/version.map         |  33 --
 drivers/net/intel/ice/version.map          |  16 -
 drivers/net/intel/idpf/version.map         |  80 ---
 drivers/net/intel/ipn3ke/version.map       |   9 -
 drivers/net/intel/ixgbe/version.map        |  49 --
 drivers/net/mlx5/version.map               |  28 -
 drivers/net/octeontx/version.map           |   7 -
 drivers/net/ring/version.map               |   8 -
 drivers/net/softnic/version.map            |   8 -
 drivers/net/vhost/version.map              |   8 -
 drivers/power/kvm_vm/version.map           |   8 -
 drivers/raw/cnxk_rvu_lf/version.map        |  16 -
 drivers/raw/ifpga/version.map              |  17 -
 lib/acl/version.map                        |  19 -
 lib/argparse/version.map                   |   9 -
 lib/bbdev/version.map                      |  47 --
 lib/bitratestats/version.map               |  10 -
 lib/bpf/version.map                        |  18 -
 lib/cfgfile/version.map                    |  23 -
 lib/cmdline/version.map                    |  82 ---
 lib/compressdev/version.map                |  40 --
 lib/cryptodev/version.map                  | 114 ----
 lib/dispatcher/version.map                 |  20 -
 lib/distributor/version.map                |  15 -
 lib/dmadev/version.map                     |  47 --
 lib/eal/version.map                        | 451 ----------------
 lib/efd/version.map                        |  13 -
 lib/ethdev/version.map                     | 378 --------------
 lib/eventdev/version.map                   | 167 ------
 lib/fib/version.map                        |  31 --
 lib/gpudev/version.map                     |  44 --
 lib/graph/version.map                      |  44 --
 lib/gro/version.map                        |  12 -
 lib/gso/version.map                        |   7 -
 lib/hash/version.map                       |  66 ---
 lib/ip_frag/version.map                    |  16 -
 lib/ipsec/version.map                      |  19 -
 lib/jobstats/version.map                   |  20 -
 lib/kvargs/version.map                     |  14 -
 lib/latencystats/version.map               |  11 -
 lib/log/version.map                        |  36 --
 lib/lpm/version.map                        |  24 -
 lib/mbuf/version.map                       |  45 --
 lib/member/version.map                     |  19 -
 lib/mempool/version.map                    |  65 ---
 lib/meter/version.map                      |  12 -
 lib/metrics/version.map                    |  26 -
 lib/mldev/version.map                      |  74 ---
 lib/net/version.map                        |  23 -
 lib/node/version.map                       |  25 -
 lib/pcapng/version.map                     |  13 -
 lib/pci/version.map                        |   9 -
 lib/pdcp/version.map                       |  12 -
 lib/pdump/version.map                      |  15 -
 lib/pipeline/version.map                   | 172 ------
 lib/port/version.map                       |  50 --
 lib/power/version.map                      |  71 ---
 lib/rawdev/version.map                     |  36 --
 lib/rcu/version.map                        |  17 -
 lib/regexdev/version.map                   |  38 --
 lib/reorder/version.map                    |  27 -
 lib/rib/version.map                        |  34 --
 lib/ring/version.map                       |  42 --
 lib/sched/version.map                      |  30 --
 lib/security/version.map                   |  37 --
 lib/stack/version.map                      |   9 -
 lib/table/version.map                      |  53 --
 lib/telemetry/version.map                  |  40 --
 lib/timer/version.map                      |  24 -
 lib/vhost/version.map                      | 110 ----
 111 files changed, 5113 deletions(-)
 delete mode 100644 drivers/baseband/acc/version.map
 delete mode 100644 drivers/baseband/fpga_5gnr_fec/version.map
 delete mode 100644 drivers/baseband/fpga_lte_fec/version.map
 delete mode 100644 drivers/bus/auxiliary/version.map
 delete mode 100644 drivers/bus/cdx/version.map
 delete mode 100644 drivers/bus/dpaa/version.map
 delete mode 100644 drivers/bus/fslmc/version.map
 delete mode 100644 drivers/bus/ifpga/version.map
 delete mode 100644 drivers/bus/pci/version.map
 delete mode 100644 drivers/bus/platform/version.map
 delete mode 100644 drivers/bus/uacce/version.map
 delete mode 100644 drivers/bus/vdev/version.map
 delete mode 100644 drivers/bus/vmbus/version.map
 delete mode 100644 drivers/common/cnxk/version.map
 delete mode 100644 drivers/common/cpt/version.map
 delete mode 100644 drivers/common/dpaax/version.map
 delete mode 100644 drivers/common/ionic/version.map
 delete mode 100644 drivers/common/mlx5/version.map
 delete mode 100644 drivers/common/mvep/version.map
 delete mode 100644 drivers/common/nfp/version.map
 delete mode 100644 drivers/common/nitrox/version.map
 delete mode 100644 drivers/common/octeontx/version.map
 delete mode 100644 drivers/common/sfc_efx/version.map
 delete mode 100644 drivers/crypto/cnxk/version.map
 delete mode 100644 drivers/crypto/dpaa2_sec/version.map
 delete mode 100644 drivers/crypto/dpaa_sec/version.map
 delete mode 100644 drivers/crypto/octeontx/version.map
 delete mode 100644 drivers/crypto/scheduler/version.map
 delete mode 100644 drivers/dma/cnxk/version.map
 delete mode 100644 drivers/event/cnxk/version.map
 delete mode 100644 drivers/event/dlb2/version.map
 delete mode 100644 drivers/mempool/cnxk/version.map
 delete mode 100644 drivers/mempool/dpaa/version.map
 delete mode 100644 drivers/mempool/dpaa2/version.map
 delete mode 100644 drivers/net/atlantic/version.map
 delete mode 100644 drivers/net/bnxt/version.map
 delete mode 100644 drivers/net/bonding/version.map
 delete mode 100644 drivers/net/cnxk/version.map
 delete mode 100644 drivers/net/dpaa/version.map
 delete mode 100644 drivers/net/dpaa2/version.map
 delete mode 100644 drivers/net/intel/i40e/version.map
 delete mode 100644 drivers/net/intel/iavf/version.map
 delete mode 100644 drivers/net/intel/ice/version.map
 delete mode 100644 drivers/net/intel/idpf/version.map
 delete mode 100644 drivers/net/intel/ipn3ke/version.map
 delete mode 100644 drivers/net/intel/ixgbe/version.map
 delete mode 100644 drivers/net/mlx5/version.map
 delete mode 100644 drivers/net/octeontx/version.map
 delete mode 100644 drivers/net/ring/version.map
 delete mode 100644 drivers/net/softnic/version.map
 delete mode 100644 drivers/net/vhost/version.map
 delete mode 100644 drivers/power/kvm_vm/version.map
 delete mode 100644 drivers/raw/cnxk_rvu_lf/version.map
 delete mode 100644 drivers/raw/ifpga/version.map
 delete mode 100644 lib/acl/version.map
 delete mode 100644 lib/argparse/version.map
 delete mode 100644 lib/bbdev/version.map
 delete mode 100644 lib/bitratestats/version.map
 delete mode 100644 lib/bpf/version.map
 delete mode 100644 lib/cfgfile/version.map
 delete mode 100644 lib/cmdline/version.map
 delete mode 100644 lib/compressdev/version.map
 delete mode 100644 lib/cryptodev/version.map
 delete mode 100644 lib/dispatcher/version.map
 delete mode 100644 lib/distributor/version.map
 delete mode 100644 lib/dmadev/version.map
 delete mode 100644 lib/eal/version.map
 delete mode 100644 lib/efd/version.map
 delete mode 100644 lib/ethdev/version.map
 delete mode 100644 lib/eventdev/version.map
 delete mode 100644 lib/fib/version.map
 delete mode 100644 lib/gpudev/version.map
 delete mode 100644 lib/graph/version.map
 delete mode 100644 lib/gro/version.map
 delete mode 100644 lib/gso/version.map
 delete mode 100644 lib/hash/version.map
 delete mode 100644 lib/ip_frag/version.map
 delete mode 100644 lib/ipsec/version.map
 delete mode 100644 lib/jobstats/version.map
 delete mode 100644 lib/kvargs/version.map
 delete mode 100644 lib/latencystats/version.map
 delete mode 100644 lib/log/version.map
 delete mode 100644 lib/lpm/version.map
 delete mode 100644 lib/mbuf/version.map
 delete mode 100644 lib/member/version.map
 delete mode 100644 lib/mempool/version.map
 delete mode 100644 lib/meter/version.map
 delete mode 100644 lib/metrics/version.map
 delete mode 100644 lib/mldev/version.map
 delete mode 100644 lib/net/version.map
 delete mode 100644 lib/node/version.map
 delete mode 100644 lib/pcapng/version.map
 delete mode 100644 lib/pci/version.map
 delete mode 100644 lib/pdcp/version.map
 delete mode 100644 lib/pdump/version.map
 delete mode 100644 lib/pipeline/version.map
 delete mode 100644 lib/port/version.map
 delete mode 100644 lib/power/version.map
 delete mode 100644 lib/rawdev/version.map
 delete mode 100644 lib/rcu/version.map
 delete mode 100644 lib/regexdev/version.map
 delete mode 100644 lib/reorder/version.map
 delete mode 100644 lib/rib/version.map
 delete mode 100644 lib/ring/version.map
 delete mode 100644 lib/sched/version.map
 delete mode 100644 lib/security/version.map
 delete mode 100644 lib/stack/version.map
 delete mode 100644 lib/table/version.map
 delete mode 100644 lib/telemetry/version.map
 delete mode 100644 lib/timer/version.map
 delete mode 100644 lib/vhost/version.map
drivers/baseband/acc/version.map deleted +0 -10
deleted file mode 100644
index 3f427caf67..0000000000
@@ -1,10 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 22.11
-	rte_acc_configure;
-};
drivers/baseband/fpga_5gnr_fec/version.map deleted +0 -11
deleted file mode 100644
index fb32805028..0000000000
@@ -1,11 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 20.11
-	rte_fpga_5gnr_fec_configure;
-
-};
drivers/baseband/fpga_lte_fec/version.map deleted +0 -10
deleted file mode 100644
index f6b2961ba2..0000000000
@@ -1,10 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 20.11
-	rte_fpga_lte_fec_configure;
-};
drivers/bus/auxiliary/version.map deleted +0 -8
deleted file mode 100644
index e9322e0b11..0000000000
@@ -1,8 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_auxiliary_register;
-	rte_auxiliary_unregister;
-
-	local: *;
-};
drivers/bus/cdx/version.map deleted +0 -14
deleted file mode 100644
index 7a22cf5b4b..0000000000
@@ -1,14 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_cdx_map_device;
-	rte_cdx_register;
-	rte_cdx_unmap_device;
-	rte_cdx_unregister;
-	rte_cdx_vfio_bm_disable;
-	rte_cdx_vfio_bm_enable;
-	rte_cdx_vfio_intr_disable;
-	rte_cdx_vfio_intr_enable;
-
-	local: *;
-};
drivers/bus/dpaa/version.map deleted +0 -108

108 lines not on this page · raw message

drivers/bus/fslmc/version.map deleted +0 -127

127 lines not on this page · raw message

drivers/bus/ifpga/version.map deleted +0 -9
deleted file mode 100644
index 3d1943afe4..0000000000
@@ -1,9 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_ifpga_driver_register;
-	rte_ifpga_driver_unregister;
-	rte_ifpga_find_afu_by_name;
-
-	local: *;
-};
drivers/bus/pci/version.map deleted +0 -43

43 lines not on this page · raw message

drivers/bus/platform/version.map deleted +0 -10
deleted file mode 100644
index 37c4a74f82..0000000000
@@ -1,10 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	rte_platform_register;
-	rte_platform_unregister;
-};
drivers/bus/uacce/version.map deleted +0 -15
deleted file mode 100644
index 533b2ea0d8..0000000000
@@ -1,15 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_uacce_avail_queues;
-	rte_uacce_queue_alloc;
-	rte_uacce_queue_free;
-	rte_uacce_queue_ioctl;
-	rte_uacce_queue_mmap;
-	rte_uacce_queue_start;
-	rte_uacce_queue_unmap;
-	rte_uacce_register;
-	rte_uacce_unregister;
-
-	local: *;
-};
drivers/bus/vdev/version.map deleted +0 -17
deleted file mode 100644
index 51a0f1d5e1..0000000000
@@ -1,17 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_vdev_add_custom_scan;
-	rte_vdev_init;
-	rte_vdev_remove_custom_scan;
-	rte_vdev_uninit;
-
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	rte_vdev_register;
-	rte_vdev_unregister;
-};
drivers/bus/vmbus/version.map deleted +0 -33
deleted file mode 100644
index 365f71529f..0000000000
@@ -1,33 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_vmbus_chan_close;
-	rte_vmbus_chan_open;
-	rte_vmbus_chan_recv;
-	rte_vmbus_chan_recv_raw;
-	rte_vmbus_chan_rx_empty;
-	rte_vmbus_chan_send;
-	rte_vmbus_chan_send_sglist;
-	rte_vmbus_chan_signal_read;
-	rte_vmbus_chan_signal_tx;
-	rte_vmbus_irq_mask;
-	rte_vmbus_irq_read;
-	rte_vmbus_irq_unmask;
-	rte_vmbus_map_device;
-	rte_vmbus_max_channels;
-	rte_vmbus_probe;
-	rte_vmbus_scan;
-	rte_vmbus_set_latency;
-	rte_vmbus_sub_channel_index;
-	rte_vmbus_subchan_open;
-	rte_vmbus_unmap_device;
-
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	rte_vmbus_register;
-	rte_vmbus_unregister;
-};
drivers/common/cnxk/version.map deleted +0 -576

576 lines not on this page · raw message

drivers/common/cpt/version.map deleted +0 -11
deleted file mode 100644
index b4080e0f8c..0000000000
@@ -1,11 +0,0 @@
-INTERNAL {
-	global:
-
-	cpt_fpm_clear;
-	cpt_fpm_init;
-	cpt_pmd_ops_helper_asym_get_mlen;
-	cpt_pmd_ops_helper_get_mlen_direct_mode;
-	cpt_pmd_ops_helper_get_mlen_sg_mode;
-
-	local: *;
-};
drivers/common/dpaax/version.map deleted +0 -25
deleted file mode 100644
index d48a6b6f37..0000000000
@@ -1,25 +0,0 @@
-INTERNAL {
-	global:
-
-	dpaax_iova_table_depopulate;
-	dpaax_iova_table_dump;
-	dpaax_iova_table_p;
-	dpaax_iova_table_populate;
-	dpaax_iova_table_update;
-	dpaax_logger;
-	of_device_is_available;
-	of_device_is_compatible;
-	of_find_compatible_node;
-	of_find_node_by_phandle;
-	of_get_address;
-	of_get_mac_address;
-	of_get_next_child;
-	of_get_parent;
-	of_get_property;
-	of_init_path;
-	of_n_addr_cells;
-	of_translate_address;
-	rta_sec_era;
-
-	local: *;
-};
drivers/common/ionic/version.map deleted +0 -10
deleted file mode 100644
index db532d4ffc..0000000000
@@ -1,10 +0,0 @@
-INTERNAL {
-	global:
-
-	ionic_uio_scan_mnet_devices;
-	ionic_uio_scan_mcrypt_devices;
-	ionic_uio_get_rsrc;
-	ionic_uio_rel_rsrc;
-
-	local: *;
-};
drivers/common/mlx5/version.map deleted +0 -174

174 lines not on this page · raw message

drivers/common/mvep/version.map deleted +0 -8
deleted file mode 100644
index cbac7bfa8d..0000000000
@@ -1,8 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_mvep_deinit;
-	rte_mvep_init;
-
-	local: *;
-};
drivers/common/nfp/version.map deleted +0 -16
deleted file mode 100644
index c8a04b1b95..0000000000
@@ -1,16 +0,0 @@
-INTERNAL {
-	global:
-
-	nfp_class_driver_register;
-
-	nfp_reconfig;
-	nfp_ext_reconfig;
-	nfp_reconfig_real;
-	nfp_read_mac;
-	nfp_write_mac;
-	nfp_enable_queues;
-	nfp_disable_queues;
-	nfp_dev_info_get;
-
-	local: *;
-};
drivers/common/nitrox/version.map deleted +0 -10
deleted file mode 100644
index f58c044fc5..0000000000
@@ -1,10 +0,0 @@
-INTERNAL {
-	global:
-
-	nitrox_logtype;
-	nitrox_qp_release;
-	nitrox_qp_setup;
-	nitrox_register_driver;
-
-	local: *;
-};
drivers/common/octeontx/version.map deleted +0 -12
deleted file mode 100644
index 049f66b331..0000000000
@@ -1,12 +0,0 @@
-INTERNAL {
-	global:
-
-	octeontx_get_global_domain;
-	octeontx_logtype_mbox;
-	octeontx_mbox_init;
-	octeontx_mbox_send;
-	octeontx_mbox_set_ram_mbox_base;
-	octeontx_mbox_set_reg;
-
-	local: *;
-};
drivers/common/sfc_efx/version.map deleted +0 -302

302 lines not on this page · raw message

drivers/crypto/cnxk/version.map deleted +0 -30
deleted file mode 100644
index 05724e69e4..0000000000
@@ -1,30 +0,0 @@
-EXPERIMENTAL {
-	global:
-
-	# added in 24.03
-	rte_pmd_cnxk_crypto_submit;
-	rte_pmd_cnxk_crypto_qptr_get;
-
-	# added in 24.07
-	rte_pmd_cnxk_crypto_cptr_flush;
-	rte_pmd_cnxk_crypto_cptr_get;
-	rte_pmd_cnxk_crypto_cptr_read;
-	rte_pmd_cnxk_crypto_cptr_write;
-	rte_pmd_cnxk_crypto_qp_stats_get;
-};
-
-INTERNAL {
-	global:
-
-	cn9k_cpt_crypto_adapter_enqueue;
-	cn9k_cpt_crypto_adapter_dequeue;
-	cn10k_cpt_sg_ver1_crypto_adapter_enqueue;
-	cn10k_cpt_sg_ver2_crypto_adapter_enqueue;
-	cn10k_cpt_crypto_adapter_dequeue;
-	cn10k_cpt_crypto_adapter_vector_dequeue;
-
-	cn10k_cryptodev_sec_inb_rx_inject;
-	cn10k_cryptodev_sec_rx_inject_configure;
-
-	local: *;
-};
drivers/crypto/dpaa2_sec/version.map deleted +0 -8
deleted file mode 100644
index 1352f576e5..0000000000
@@ -1,8 +0,0 @@
-INTERNAL {
-	global:
-
-	dpaa2_sec_eventq_attach;
-	dpaa2_sec_eventq_detach;
-
-	local: *;
-};
drivers/crypto/dpaa_sec/version.map deleted +0 -8
deleted file mode 100644
index 731ea593ad..0000000000
@@ -1,8 +0,0 @@
-INTERNAL {
-	global:
-
-	dpaa_sec_eventq_attach;
-	dpaa_sec_eventq_detach;
-
-	local: *;
-};
drivers/crypto/octeontx/version.map deleted +0 -12
deleted file mode 100644
index 8803f974b2..0000000000
@@ -1,12 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	otx_crypto_adapter_enqueue;
-	otx_crypto_adapter_dequeue;
-
-	local: *;
-};
drivers/crypto/scheduler/version.map deleted +0 -16
deleted file mode 100644
index d7ba3874f2..0000000000
@@ -1,16 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_cryptodev_scheduler_load_user_scheduler;
-	rte_cryptodev_scheduler_mode_get;
-	rte_cryptodev_scheduler_mode_set;
-	rte_cryptodev_scheduler_option_get;
-	rte_cryptodev_scheduler_option_set;
-	rte_cryptodev_scheduler_ordering_get;
-	rte_cryptodev_scheduler_ordering_set;
-	rte_cryptodev_scheduler_worker_attach;
-	rte_cryptodev_scheduler_worker_detach;
-	rte_cryptodev_scheduler_workers_get;
-
-	local: *;
-};
drivers/dma/cnxk/version.map deleted +0 -10
deleted file mode 100644
index a1490abf97..0000000000
@@ -1,10 +0,0 @@
-INTERNAL {
-	global:
-
-	cn10k_dma_adapter_enqueue;
-	cn9k_dma_adapter_enqueue;
-	cn9k_dma_adapter_dual_enqueue;
-	cnxk_dma_adapter_dequeue;
-
-	local: *;
-};
drivers/event/cnxk/version.map deleted +0 -11
deleted file mode 100644
index a275ec2977..0000000000
@@ -1,11 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 23.11
-	rte_pmd_cnxk_eventdev_is_head;
-	rte_pmd_cnxk_eventdev_wait_head;
-};
drivers/event/dlb2/version.map deleted +0 -10
deleted file mode 100644
index c37d2302cd..0000000000
@@ -1,10 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 20.11
-	rte_pmd_dlb2_set_token_pop_mode;
-};
drivers/mempool/cnxk/version.map deleted +0 -12
deleted file mode 100644
index c2905a610e..0000000000
@@ -1,12 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 23.07
-	rte_pmd_cnxk_mempool_is_hwpool;
-	rte_pmd_cnxk_mempool_mbuf_exchange;
-	rte_pmd_cnxk_mempool_range_check_disable;
-};
drivers/mempool/dpaa/version.map deleted +0 -8
deleted file mode 100644
index 142547ee38..0000000000
@@ -1,8 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_dpaa_bpid_info;
-	rte_dpaa_memsegs;
-
-	local: *;
-};
drivers/mempool/dpaa2/version.map deleted +0 -16
deleted file mode 100644
index c1acfc0c64..0000000000
@@ -1,16 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_dpaa2_mbuf_from_buf_addr;
-	rte_dpaa2_mbuf_pool_bpid;
-
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	rte_dpaa2_bpid_info;
-	rte_dpaa2_bpid_info_init;
-	rte_dpaa2_mbuf_alloc_bulk;
-};
drivers/net/atlantic/version.map deleted +0 -15
deleted file mode 100644
index 5644e150ac..0000000000
@@ -1,15 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 19.05
-	rte_pmd_atl_macsec_enable;
-	rte_pmd_atl_macsec_disable;
-	rte_pmd_atl_macsec_config_txsc;
-	rte_pmd_atl_macsec_config_rxsc;
-	rte_pmd_atl_macsec_select_txsa;
-	rte_pmd_atl_macsec_select_rxsa;
-};
drivers/net/bnxt/version.map deleted +0 -22
deleted file mode 100644
index d29521f990..0000000000
@@ -1,22 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_pmd_bnxt_get_vf_rx_status;
-	rte_pmd_bnxt_get_vf_stats;
-	rte_pmd_bnxt_get_vf_tx_drop_count;
-	rte_pmd_bnxt_mac_addr_add;
-	rte_pmd_bnxt_reset_vf_stats;
-	rte_pmd_bnxt_set_all_queues_drop_en;
-	rte_pmd_bnxt_set_tx_loopback;
-	rte_pmd_bnxt_set_vf_mac_addr;
-	rte_pmd_bnxt_set_vf_mac_anti_spoof;
-	rte_pmd_bnxt_set_vf_persist_stats;
-	rte_pmd_bnxt_set_vf_rate_limit;
-	rte_pmd_bnxt_set_vf_rxmode;
-	rte_pmd_bnxt_set_vf_vlan_anti_spoof;
-	rte_pmd_bnxt_set_vf_vlan_filter;
-	rte_pmd_bnxt_set_vf_vlan_insert;
-	rte_pmd_bnxt_set_vf_vlan_stripq;
-
-	local: *;
-};
drivers/net/bonding/version.map deleted +0 -33
deleted file mode 100644
index eb37dadf76..0000000000
@@ -1,33 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_eth_bond_8023ad_agg_selection_get;
-	rte_eth_bond_8023ad_agg_selection_set;
-	rte_eth_bond_8023ad_conf_get;
-	rte_eth_bond_8023ad_dedicated_queues_disable;
-	rte_eth_bond_8023ad_dedicated_queues_enable;
-	rte_eth_bond_8023ad_ext_collect;
-	rte_eth_bond_8023ad_ext_collect_get;
-	rte_eth_bond_8023ad_ext_distrib;
-	rte_eth_bond_8023ad_ext_distrib_get;
-	rte_eth_bond_8023ad_ext_slowtx;
-	rte_eth_bond_8023ad_member_info;
-	rte_eth_bond_8023ad_setup;
-	rte_eth_bond_active_members_get;
-	rte_eth_bond_create;
-	rte_eth_bond_free;
-	rte_eth_bond_link_monitoring_set;
-	rte_eth_bond_mac_address_reset;
-	rte_eth_bond_mac_address_set;
-	rte_eth_bond_member_add;
-	rte_eth_bond_member_remove;
-	rte_eth_bond_members_get;
-	rte_eth_bond_mode_get;
-	rte_eth_bond_mode_set;
-	rte_eth_bond_primary_get;
-	rte_eth_bond_primary_set;
-	rte_eth_bond_xmit_policy_get;
-	rte_eth_bond_xmit_policy_set;
-
-	local: *;
-};
drivers/net/cnxk/version.map deleted +0 -27
deleted file mode 100644
index edb0a1c059..0000000000
@@ -1,27 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 22.07
-	rte_pmd_cnxk_hw_sa_read;
-	rte_pmd_cnxk_hw_sa_write;
-
-	# added in 23.11
-	rte_pmd_cnxk_cpt_q_stats_get;
-	rte_pmd_cnxk_hw_inline_inb_cfg_set;
-	rte_pmd_cnxk_hw_session_base_get;
-	rte_pmd_cnxk_inl_dev_qptr_get;
-	rte_pmd_cnxk_inl_dev_submit;
-	rte_pmd_cnxk_inl_ipsec_res;
-	rte_pmd_cnxk_model_str_get;
-	rte_pmd_cnxk_sa_flush;
-};
-
-INTERNAL {
-	global:
-	cnxk_nix_inb_mode_set;
-	cnxk_ethdev_rx_offload_cb_register;
-};
drivers/net/dpaa/version.map deleted +0 -14
deleted file mode 100644
index 3fdb63caf3..0000000000
@@ -1,14 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_pmd_dpaa_set_tx_loopback;
-
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	dpaa_eth_eventq_attach;
-	dpaa_eth_eventq_detach;
-};
drivers/net/dpaa2/version.map deleted +0 -35
deleted file mode 100644
index 35815f7777..0000000000
@@ -1,35 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_pmd_dpaa2_mux_flow_create;
-	rte_pmd_dpaa2_set_custom_hash;
-
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 21.05
-	rte_pmd_dpaa2_mux_rx_frame_len;
-	# added in 21.08
-	rte_pmd_dpaa2_thread_init;
-	# added in 21.11
-	rte_pmd_dpaa2_get_tlu_hash;
-	# added in 24.11
-	rte_pmd_dpaa2_dev_is_dpaa2;
-	rte_pmd_dpaa2_ep_name;
-	rte_pmd_dpaa2_set_one_step_ts;
-	rte_pmd_dpaa2_get_one_step_ts;
-	rte_pmd_dpaa2_mux_dump_counter;
-};
-
-INTERNAL {
-	global:
-
-	dpaa2_dev_tx_multi_txq_ordered;
-	dpaa2_eth_eventq_attach;
-	dpaa2_eth_eventq_detach;
-
-	local: *;
-};
drivers/net/intel/i40e/version.map deleted +0 -55

55 lines not on this page · raw message

drivers/net/intel/iavf/version.map deleted +0 -33
deleted file mode 100644
index d18dea64dd..0000000000
@@ -1,33 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 20.11
-	rte_pmd_ifd_dynfield_proto_xtr_metadata_offs;
-	rte_pmd_ifd_dynflag_proto_xtr_vlan_mask;
-	rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask;
-	rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask;
-	rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask;
-	rte_pmd_ifd_dynflag_proto_xtr_tcp_mask;
-	rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask;
-
-	# added in 21.11
-	rte_pmd_ifd_dynflag_proto_xtr_ipsec_crypto_said_mask;
-};
-
-INTERNAL {
-	global:
-
-	iavf_aq_send_msg_to_pf;
-	iavf_clean_arq_element;
-	iavf_init_adminq;
-	iavf_set_mac_type;
-	iavf_shutdown_adminq;
-	iavf_vf_parse_hw_config;
-	iavf_vf_reset;
-
-	local: *;
-};
drivers/net/intel/ice/version.map deleted +0 -16
deleted file mode 100644
index 0052043264..0000000000
@@ -1,16 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 19.11
-	rte_pmd_ice_dump_package;
-
-	# added in 22.11
-	rte_pmd_ice_dump_switch;
-
-	# added in 24.03
-	rte_pmd_ice_dump_txsched;
-};
drivers/net/intel/idpf/version.map deleted +0 -80

80 lines not on this page · raw message

drivers/net/intel/ipn3ke/version.map deleted +0 -9
deleted file mode 100644
index e10d44858f..0000000000
@@ -1,9 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-INTERNAL {
-	global:
-
-	ipn3ke_bridge_func;
-};
drivers/net/intel/ixgbe/version.map deleted +0 -49

49 lines not on this page · raw message

drivers/net/mlx5/version.map deleted +0 -28
deleted file mode 100644
index 560f7ef79b..0000000000
@@ -1,28 +0,0 @@
-DPDK_25 {
-	local: *;
-};
-
-EXPERIMENTAL {
-	global:
-
-	# added in 20.02
-	rte_pmd_mlx5_get_dyn_flag_names;
-	# added in 20.11
-	rte_pmd_mlx5_sync_flow;
-	# added in 22.03
-	rte_pmd_mlx5_external_rx_queue_id_map;
-	rte_pmd_mlx5_external_rx_queue_id_unmap;
-	# added in 22.07
-	rte_pmd_mlx5_host_shaper_config;
-	rte_pmd_mlx5_external_sq_enable;
-	# added in 23.03
-	rte_pmd_mlx5_flow_engine_set_mode;
-	# added in 24.03
-	rte_pmd_mlx5_create_geneve_tlv_parser;
-	rte_pmd_mlx5_destroy_geneve_tlv_parser;
-	# added in 24.07
-	rte_pmd_mlx5_external_tx_queue_id_map;
-	rte_pmd_mlx5_external_tx_queue_id_unmap;
-	rte_pmd_mlx5_txq_dump_contexts;
-	rte_pmd_mlx5_rxq_dump_contexts;
-};
drivers/net/octeontx/version.map deleted +0 -7
deleted file mode 100644
index 861dd3450e..0000000000
@@ -1,7 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_octeontx_pchan_map;
-
-	local: *;
-};
drivers/net/ring/version.map deleted +0 -8
deleted file mode 100644
index 3b408c8ba5..0000000000
@@ -1,8 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_eth_from_ring;
-	rte_eth_from_rings;
-
-	local: *;
-};
drivers/net/softnic/version.map deleted +0 -8
deleted file mode 100644
index 15daeceb73..0000000000
@@ -1,8 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_pmd_softnic_manage;
-	rte_pmd_softnic_run;
-
-	local: *;
-};
drivers/net/vhost/version.map deleted +0 -8
deleted file mode 100644
index 63890911d8..0000000000
@@ -1,8 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_eth_vhost_get_queue_event;
-	rte_eth_vhost_get_vid_from_port_id;
-
-	local: *;
-};
drivers/power/kvm_vm/version.map deleted +0 -8
deleted file mode 100644
index ffa676624b..0000000000
@@ -1,8 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_power_guest_channel_receive_msg;
-	rte_power_guest_channel_send_msg;
-
-	local: *;
-};
drivers/raw/cnxk_rvu_lf/version.map deleted +0 -16
deleted file mode 100644
index 012f05d1e4..0000000000
@@ -1,16 +0,0 @@
-INTERNAL {
-	global:
-
-	rte_pmd_rvu_lf_bar_get;
-	rte_pmd_rvu_lf_irq_register;
-	rte_pmd_rvu_lf_irq_unregister;
-	rte_pmd_rvu_lf_msg_handler_register;
-	rte_pmd_rvu_lf_msg_handler_unregister;
-	rte_pmd_rvu_lf_msg_id_range_set;
-	rte_pmd_rvu_lf_msg_process;
-	rte_pmd_rvu_lf_npa_pf_func_get;
-	rte_pmd_rvu_lf_pf_func_get;
-	rte_pmd_rvu_lf_sso_pf_func_get;
-
-	local: *;
-};
drivers/raw/ifpga/version.map deleted +0 -17
deleted file mode 100644
index ebe50925a8..0000000000
@@ -1,17 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_pmd_ifpga_cleanup;
-	rte_pmd_ifpga_get_dev_id;
-	rte_pmd_ifpga_get_phy_info;
-	rte_pmd_ifpga_get_property;
-	rte_pmd_ifpga_get_rsu_status;
-	rte_pmd_ifpga_partial_reconfigure;
-	rte_pmd_ifpga_reboot_try;
-	rte_pmd_ifpga_reload;
-	rte_pmd_ifpga_set_rsu_status;
-	rte_pmd_ifpga_stop_update;
-	rte_pmd_ifpga_update_flash;
-
-	local: *;
-};
lib/acl/version.map deleted +0 -19
deleted file mode 100644
index 782b1fe464..0000000000
@@ -1,19 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_acl_add_rules;
-	rte_acl_build;
-	rte_acl_classify;
-	rte_acl_classify_alg;
-	rte_acl_classify_scalar;
-	rte_acl_create;
-	rte_acl_dump;
-	rte_acl_find_existing;
-	rte_acl_free;
-	rte_acl_list_dump;
-	rte_acl_reset;
-	rte_acl_reset_rules;
-	rte_acl_set_ctx_classify;
-
-	local: *;
-};
lib/argparse/version.map deleted +0 -9
deleted file mode 100644
index 46da99a3e2..0000000000
@@ -1,9 +0,0 @@
-EXPERIMENTAL {
-	global:
-
-	# added in 24.03
-	rte_argparse_parse;
-	rte_argparse_parse_type;
-
-	local: *;
-};
lib/bbdev/version.map deleted +0 -47

47 lines not on this page · raw message

lib/bitratestats/version.map deleted +0 -10
deleted file mode 100644
index edda26d552..0000000000
@@ -1,10 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_stats_bitrate_calc;
-	rte_stats_bitrate_create;
-	rte_stats_bitrate_free;
-	rte_stats_bitrate_reg;
-
-	local: *;
-};
lib/bpf/version.map deleted +0 -18
deleted file mode 100644
index 239c62a96c..0000000000
@@ -1,18 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_bpf_convert;
-	rte_bpf_destroy;
-	rte_bpf_dump;
-	rte_bpf_elf_load;
-	rte_bpf_eth_rx_elf_load;
-	rte_bpf_eth_rx_unload;
-	rte_bpf_eth_tx_elf_load;
-	rte_bpf_eth_tx_unload;
-	rte_bpf_exec;
-	rte_bpf_exec_burst;
-	rte_bpf_get_jit;
-	rte_bpf_load;
-
-	local: *;
-};
lib/cfgfile/version.map deleted +0 -23
deleted file mode 100644
index 927b4822fe..0000000000
@@ -1,23 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_cfgfile_add_entry;
-	rte_cfgfile_add_section;
-	rte_cfgfile_close;
-	rte_cfgfile_create;
-	rte_cfgfile_get_entry;
-	rte_cfgfile_has_entry;
-	rte_cfgfile_has_section;
-	rte_cfgfile_load;
-	rte_cfgfile_load_with_params;
-	rte_cfgfile_num_sections;
-	rte_cfgfile_save;
-	rte_cfgfile_section_entries;
-	rte_cfgfile_section_entries_by_index;
-	rte_cfgfile_section_num_entries;
-	rte_cfgfile_section_num_entries_by_index;
-	rte_cfgfile_sections;
-	rte_cfgfile_set_entry;
-
-	local: *;
-};
lib/cmdline/version.map deleted +0 -82

83 lines not on this page · raw message

lib/compressdev/version.map deleted +0 -40
deleted file mode 100644
index 3849ae2740..0000000000
@@ -1,40 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_comp_get_feature_name;
-	rte_comp_op_alloc;
-	rte_comp_op_bulk_alloc;
-	rte_comp_op_bulk_free;
-	rte_comp_op_free;
-	rte_comp_op_pool_create;
-	rte_compressdev_capability_get;
-	rte_compressdev_close;
-	rte_compressdev_configure;
-	rte_compressdev_count;
-	rte_compressdev_dequeue_burst;
-	rte_compressdev_devices_get;
-	rte_compressdev_enqueue_burst;
-	rte_compressdev_get_dev_id;
-	rte_compressdev_get_feature_name;
-	rte_compressdev_info_get;
-	rte_compressdev_name_get;
-	rte_compressdev_pmd_allocate;
-	rte_compressdev_pmd_create;
-	rte_compressdev_pmd_destroy;
-	rte_compressdev_pmd_get_named_dev;
-	rte_compressdev_pmd_parse_input_args;
-	rte_compressdev_pmd_release_device;
-	rte_compressdev_private_xform_create;
-	rte_compressdev_private_xform_free;
-	rte_compressdev_queue_pair_count;
-	rte_compressdev_queue_pair_setup;
-	rte_compressdev_socket_id;
-	rte_compressdev_start;
-	rte_compressdev_stats_get;
-	rte_compressdev_stats_reset;
-	rte_compressdev_stop;
-	rte_compressdev_stream_create;
-	rte_compressdev_stream_free;
-
-	local: *;
-};
lib/cryptodev/version.map deleted +0 -114

114 lines not on this page · raw message

lib/dispatcher/version.map deleted +0 -20
deleted file mode 100644
index 44585e4f15..0000000000
@@ -1,20 +0,0 @@
-EXPERIMENTAL {
-	global:
-
-	# added in 23.11
-	rte_dispatcher_bind_port_to_lcore;
-	rte_dispatcher_create;
-	rte_dispatcher_finalize_register;
-	rte_dispatcher_finalize_unregister;
-	rte_dispatcher_free;
-	rte_dispatcher_register;
-	rte_dispatcher_service_id_get;
-	rte_dispatcher_start;
-	rte_dispatcher_stats_get;
-	rte_dispatcher_stats_reset;
-	rte_dispatcher_stop;
-	rte_dispatcher_unbind_port_from_lcore;
-	rte_dispatcher_unregister;
-
-	local: *;
-};
lib/distributor/version.map deleted +0 -15
deleted file mode 100644
index b5ec7dfaca..0000000000
@@ -1,15 +0,0 @@
-DPDK_25 {
-	global:
-
-	rte_distributor_clear_returns;
-	rte_distributor_create;
-	rte_distributor_flush;
-	rte_distributor_get_pkt;
-	rte_distributor_poll_pkt;
-	rte_distributor_process;
-	rte_distributor_request_pkt;
-	rte_distributor_return_pkt;
-	rte_distributor_returned_pkts;
-
-	local: *;
-};
lib/dmadev/version.map deleted +0 -47

47 lines not on this page · raw message

lib/eal/version.map deleted +0 -451

367 lines not on this page · raw message

lib/efd/version.map deleted +0 -13
deleted file mode 100644
index 354c7f88bd..0000000000

Lines of this file are not shown. View the raw message.

lib/ethdev/version.map deleted +0 -378

378 lines not on this page · raw message

lib/eventdev/version.map deleted +0 -167

167 lines not on this page · raw message

lib/fib/version.map deleted +0 -31
deleted file mode 100644
index df8f113df3..0000000000

Lines of this file are not shown. View the raw message.

lib/gpudev/version.map deleted +0 -44

44 lines not on this page · raw message

lib/graph/version.map deleted +0 -44

44 lines not on this page · raw message

lib/gro/version.map deleted +0 -12
deleted file mode 100644
index c21c137fcd..0000000000

Lines of this file are not shown. View the raw message.

lib/gso/version.map deleted +0 -7
deleted file mode 100644
index 815baeb3e5..0000000000

Lines of this file are not shown. View the raw message.

lib/hash/version.map deleted +0 -66

66 lines not on this page · raw message

lib/ip_frag/version.map deleted +0 -16
deleted file mode 100644
index 0c001c7bd5..0000000000

Lines of this file are not shown. View the raw message.

lib/ipsec/version.map deleted +0 -19
deleted file mode 100644
index 47e3df5bb6..0000000000

Lines of this file are not shown. View the raw message.

lib/jobstats/version.map deleted +0 -20
deleted file mode 100644
index 55100e0699..0000000000

Lines of this file are not shown. View the raw message.

lib/kvargs/version.map deleted +0 -14
deleted file mode 100644
index 30995539fb..0000000000

Lines of this file are not shown. View the raw message.

lib/latencystats/version.map deleted +0 -11
deleted file mode 100644
index e8806c0046..0000000000

Lines of this file are not shown. View the raw message.

lib/log/version.map deleted +0 -36
deleted file mode 100644
index 603be493b3..0000000000

Lines of this file are not shown. View the raw message.

lib/lpm/version.map deleted +0 -24
deleted file mode 100644
index 29d577c24b..0000000000

Lines of this file are not shown. View the raw message.

lib/mbuf/version.map deleted +0 -45

45 lines not on this page · raw message

lib/member/version.map deleted +0 -19
deleted file mode 100644
index fdc7adacf9..0000000000

Lines of this file are not shown. View the raw message.

lib/mempool/version.map deleted +0 -65

65 lines not on this page · raw message

lib/meter/version.map deleted +0 -12
deleted file mode 100644
index ae434f34b5..0000000000

Lines of this file are not shown. View the raw message.

lib/metrics/version.map deleted +0 -26
deleted file mode 100644
index f9c1996a7d..0000000000

Lines of this file are not shown. View the raw message.

lib/mldev/version.map deleted +0 -74

74 lines not on this page · raw message

lib/net/version.map deleted +0 -23
deleted file mode 100644
index f4dd673fa3..0000000000

Lines of this file are not shown. View the raw message.

lib/node/version.map deleted +0 -25
deleted file mode 100644
index a402182fbe..0000000000

Lines of this file are not shown. View the raw message.

lib/pcapng/version.map deleted +0 -13
deleted file mode 100644
index 9f634b653e..0000000000

Lines of this file are not shown. View the raw message.

lib/pci/version.map deleted +0 -9
deleted file mode 100644
index f0f6ffef9f..0000000000

Lines of this file are not shown. View the raw message.

lib/pdcp/version.map deleted +0 -12
deleted file mode 100644
index 72b2d4729b..0000000000

Lines of this file are not shown. View the raw message.

lib/pdump/version.map deleted +0 -15
deleted file mode 100644
index 6eea4c1530..0000000000

Lines of this file are not shown. View the raw message.

lib/pipeline/version.map deleted +0 -172

172 lines not on this page · raw message

lib/port/version.map deleted +0 -50

50 lines not on this page · raw message

lib/power/version.map deleted +0 -71

71 lines not on this page · raw message

lib/rawdev/version.map deleted +0 -36
deleted file mode 100644
index f95d5dabae..0000000000

Lines of this file are not shown. View the raw message.

lib/rcu/version.map deleted +0 -17
deleted file mode 100644
index d96c4c4109..0000000000

Lines of this file are not shown. View the raw message.

lib/regexdev/version.map deleted +0 -38
deleted file mode 100644
index 713a800ca4..0000000000

Lines of this file are not shown. View the raw message.

lib/reorder/version.map deleted +0 -27
deleted file mode 100644
index 18e97942e1..0000000000

Lines of this file are not shown. View the raw message.

lib/rib/version.map deleted +0 -34
deleted file mode 100644
index 145d9c2602..0000000000

Lines of this file are not shown. View the raw message.

lib/ring/version.map deleted +0 -42

42 lines not on this page · raw message

lib/sched/version.map deleted +0 -30
deleted file mode 100644
index a6ca9ee1ad..0000000000

Lines of this file are not shown. View the raw message.

lib/security/version.map deleted +0 -37
deleted file mode 100644
index 2a4795f31d..0000000000

Lines of this file are not shown. View the raw message.

lib/stack/version.map deleted +0 -9
deleted file mode 100644
index 53c7d3d1c5..0000000000

Lines of this file are not shown. View the raw message.

lib/table/version.map deleted +0 -53

53 lines not on this page · raw message

lib/telemetry/version.map deleted +0 -40
deleted file mode 100644
index 8f032bf532..0000000000

Lines of this file are not shown. View the raw message.

lib/timer/version.map deleted +0 -24
deleted file mode 100644
index 3f19be22d3..0000000000

Lines of this file are not shown. View the raw message.

lib/vhost/version.map deleted +0 -110

110 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.48.1

Part of the diff is not shown here. View the raw message.

#31 lore raw

RE: [RFC v3 0/8] Symbol versioning and export rework

In reply to David Marchand
Quoted 19 lines

From: David Marchand [mailto:[email protected]]
Sent: Tuesday, 11 March 2025 10.56

So far, each DPDK library (or driver) exposing symbols in an ABI had to maintain a version.map and use some macros for symbol versioning, specially crafted with the GNU linker in mind.

This series proposes to rework the whole principle, and instead rely on marking the symbol exports in the source code itself, then let it to the
build framework to produce a version script adapted to the linker in use
(think GNU linker vs MSVC linker).

This greatly simplifies versioning symbols: a developer does not need to
know anything about version.map, or that a versioned symbol must be renamed with _v26, annotated with __vsym, exported in a header etc...

Quoted 8 lines

Checking symbol maps becomes unnecessary since generated by the build framework.

Updating to a new ABI is just a matter of bumping the value in ABI_VERSION.

Comments please.

Excellent. I'm all for automating this!

Feature creep:

Have you thought about how this (or related automation) can possibly also benefit the CI, e.g. for ABI breakage testing?

Or possible benefits to (automated) documentation of versioned functions? Or possible benefits to remembering all versioned ABIs when writing the release notes?

#32 lore raw

Re: [RFC v3 0/8] Symbol versioning and export rework

Quoted 29 lines · Morten Brørup
Quoted 20 lines

From: David Marchand [mailto:[email protected]]
Sent: Tuesday, 11 March 2025 10.56

So far, each DPDK library (or driver) exposing symbols in an ABI had to maintain a version.map and use some macros for symbol versioning, specially crafted with the GNU linker in mind.

This series proposes to rework the whole principle, and instead rely on marking the symbol exports in the source code itself, then let it to the
build framework to produce a version script adapted to the linker in use
(think GNU linker vs MSVC linker).

This greatly simplifies versioning symbols: a developer does not need to
know anything about version.map, or that a versioned symbol must be renamed with _v26, annotated with __vsym, exported in a header etc...

Quoted 8 lines

Checking symbol maps becomes unnecessary since generated by the build framework.

Updating to a new ABI is just a matter of bumping the value in ABI_VERSION.

Comments please.

Quoted 8 lines

Excellent. I'm all for automating this!

Feature creep:

Have you thought about how this (or related automation) can possibly also benefit the CI, e.g. for ABI breakage testing?

Or possible benefits to (automated) documentation of versioned functions? Or possible benefits to remembering all versioned ABIs when writing the release notes?

Not really, this series is already touching enough code and needs in detail reviews.
A simple ack is pointless.

I prefer focusing on just making this part right.

Signature · 1 line
David Marchand
#33 lore raw

v4 cover Symbol versioning and export rework

In reply to David Marchand

So far, each DPDK library (or driver) exposing symbols in an ABI had to maintain a version.map and use some macros for symbol versioning, specially crafted with the GNU linker in mind.

This series proposes to rework the whole principle, and instead rely on marking the symbol exports in the source code itself, then let it to the build framework to produce a version script adapted to the linker in use (think GNU linker vs MSVC linker).

This greatly simplifies versioning symbols: a developer does not need to know anything about version.map, or that a versioned symbol must be renamed with _v26, annotated with __vsym, exported in a header etc...

Checking symbol maps becomes unnecessary since generated by the build framework.

Updating to a new ABI is just a matter of bumping the value in ABI_VERSION.

Comments please.

Signature · 675 lines
David Marchand

Depends-on: series-34869 ("remove driver-specific logic for AVX builds")

Changes since RFC v3:
- fixed/simplified documentation,
- rebased on top of Bruce series for common handling of AVX sources,

Changes since RFC v2:
- updated RTE_VERSION_SYMBOL() (and friends) so that only the fonction
  signature is enclosed in the macro,
- dropped invalid exports for some dead symbols or inline helpers,
- updated documentation and tooling,
- converted the whole tree (via a local script of mine),

David Marchand (8):
  lib: remove incorrect exported symbols
  drivers: remove incorrect exported symbols
  eal: rework function versioning macros
  buildtools: display version when listing symbols
  build: generate symbol maps
  build: mark exported symbols
  build: use dynamically generated version maps
  build: remove static version maps

 .github/workflows/build.yml                   |   1 -
 MAINTAINERS                                   |   9 +-
 buildtools/check-symbols.sh                   |  33 +-
 buildtools/gen-version-map.py                 | 106 ++++
 buildtools/map-list-symbol.sh                 |  15 +-
 buildtools/map_to_win.py                      |  41 --
 buildtools/meson.build                        |   2 +-
 config/meson.build                            |   4 +-
 config/rte_export.h                           |  16 +
 devtools/check-spdx-tag.sh                    |   2 +-
 devtools/check-symbol-change.py               |  90 +++
 devtools/check-symbol-change.sh               | 186 ------
 devtools/check-symbol-maps.sh                 | 115 ----
 devtools/checkpatches.sh                      |   4 +-
 devtools/update-abi.sh                        |  46 --
 devtools/update_version_map_abi.py            | 210 -------
 doc/guides/contributing/abi_policy.rst        |  21 +-
 doc/guides/contributing/abi_versioning.rst    | 408 ++-----------
 doc/guides/contributing/coding_style.rst      |   7 -
 .../contributing/img/patch_cheatsheet.svg     | 303 +++++----
 doc/guides/contributing/patches.rst           |   6 +-
 drivers/baseband/acc/rte_acc100_pmd.c         |   1 +
 drivers/baseband/acc/version.map              |  10 -
 .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c         |   1 +
 drivers/baseband/fpga_5gnr_fec/version.map    |  11 -
 drivers/baseband/fpga_lte_fec/fpga_lte_fec.c  |   1 +
 drivers/baseband/fpga_lte_fec/version.map     |  10 -
 drivers/bus/auxiliary/auxiliary_common.c      |   2 +
 drivers/bus/auxiliary/version.map             |   8 -
 drivers/bus/cdx/cdx.c                         |   4 +
 drivers/bus/cdx/cdx_vfio.c                    |   4 +
 drivers/bus/cdx/version.map                   |  14 -
 drivers/bus/dpaa/dpaa_bus.c                   | 104 ++++
 drivers/bus/dpaa/version.map                  | 109 ----
 drivers/bus/fslmc/fslmc_bus.c                 |   4 +
 drivers/bus/fslmc/fslmc_vfio.c                |  12 +
 drivers/bus/fslmc/mc/dpbp.c                   |   6 +
 drivers/bus/fslmc/mc/dpci.c                   |   3 +
 drivers/bus/fslmc/mc/dpcon.c                  |   6 +
 drivers/bus/fslmc/mc/dpdmai.c                 |   8 +
 drivers/bus/fslmc/mc/dpio.c                   |  13 +
 drivers/bus/fslmc/mc/dpmng.c                  |   2 +
 drivers/bus/fslmc/mc/mc_sys.c                 |   1 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c      |   3 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpci.c      |   2 +
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c      |  11 +
 drivers/bus/fslmc/qbman/qbman_debug.c         |   2 +
 drivers/bus/fslmc/qbman/qbman_portal.c        |  41 ++
 drivers/bus/fslmc/version.map                 | 129 ----
 drivers/bus/ifpga/ifpga_bus.c                 |   3 +
 drivers/bus/ifpga/version.map                 |   9 -
 drivers/bus/pci/bsd/pci.c                     |  10 +
 drivers/bus/pci/linux/pci.c                   |  10 +
 drivers/bus/pci/pci_common.c                  |  10 +
 drivers/bus/pci/version.map                   |  43 --
 drivers/bus/pci/windows/pci.c                 |  10 +
 drivers/bus/platform/platform.c               |   2 +
 drivers/bus/platform/version.map              |  10 -
 drivers/bus/uacce/uacce.c                     |   9 +
 drivers/bus/uacce/version.map                 |  15 -
 drivers/bus/vdev/vdev.c                       |   6 +
 drivers/bus/vdev/version.map                  |  17 -
 drivers/bus/vmbus/linux/vmbus_bus.c           |   6 +
 drivers/bus/vmbus/version.map                 |  33 -
 drivers/bus/vmbus/vmbus_channel.c             |  13 +
 drivers/bus/vmbus/vmbus_common.c              |   3 +
 drivers/common/cnxk/cnxk_security.c           |  12 +
 drivers/common/cnxk/cnxk_utils.c              |   1 +
 drivers/common/cnxk/roc_platform.c            | 559 +++++++++++++++++
 drivers/common/cnxk/roc_se.h                  |   1 -
 drivers/common/cnxk/version.map               | 578 ------------------
 drivers/common/cpt/cpt_fpm_tables.c           |   2 +
 drivers/common/cpt/cpt_pmd_ops_helper.c       |   3 +
 drivers/common/cpt/version.map                |  11 -
 drivers/common/dpaax/caamflib.c               |   1 +
 drivers/common/dpaax/dpaa_of.c                |  12 +
 drivers/common/dpaax/dpaax_iova_table.c       |   6 +
 drivers/common/dpaax/version.map              |  25 -
 drivers/common/ionic/ionic_common_uio.c       |   4 +
 drivers/common/ionic/version.map              |  10 -
 .../common/mlx5/linux/mlx5_common_auxiliary.c |   1 +
 drivers/common/mlx5/linux/mlx5_common_os.c    |   9 +
 drivers/common/mlx5/linux/mlx5_common_verbs.c |   3 +
 drivers/common/mlx5/linux/mlx5_glue.c         |   1 +
 drivers/common/mlx5/linux/mlx5_nl.c           |  21 +
 drivers/common/mlx5/mlx5_common.c             |   9 +
 drivers/common/mlx5/mlx5_common_devx.c        |   9 +
 drivers/common/mlx5/mlx5_common_mp.c          |   8 +
 drivers/common/mlx5/mlx5_common_mr.c          |  11 +
 drivers/common/mlx5/mlx5_common_pci.c         |   2 +
 drivers/common/mlx5/mlx5_common_utils.c       |  11 +
 drivers/common/mlx5/mlx5_devx_cmds.c          |  51 ++
 drivers/common/mlx5/mlx5_malloc.c             |   4 +
 drivers/common/mlx5/version.map               | 174 ------
 drivers/common/mlx5/windows/mlx5_common_os.c  |   5 +
 drivers/common/mlx5/windows/mlx5_glue.c       |   3 +-
 drivers/common/mvep/mvep_common.c             |   2 +
 drivers/common/mvep/version.map               |   8 -
 drivers/common/nfp/nfp_common.c               |   7 +
 drivers/common/nfp/nfp_common_pci.c           |   1 +
 drivers/common/nfp/nfp_dev.c                  |   1 +
 drivers/common/nfp/version.map                |  16 -
 drivers/common/nitrox/nitrox_device.c         |   1 +
 drivers/common/nitrox/nitrox_logs.c           |   1 +
 drivers/common/nitrox/nitrox_qp.c             |   2 +
 drivers/common/nitrox/version.map             |  10 -
 drivers/common/octeontx/octeontx_mbox.c       |   6 +
 drivers/common/octeontx/version.map           |  12 -
 drivers/common/sfc_efx/sfc_efx.c              | 273 +++++++++
 drivers/common/sfc_efx/sfc_efx_mcdi.c         |   2 +
 drivers/common/sfc_efx/version.map            | 302 ---------
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c     |   7 +
 drivers/crypto/cnxk/cn9k_cryptodev_ops.c      |   2 +
 drivers/crypto/cnxk/cnxk_cryptodev_ops.c      |   7 +
 drivers/crypto/cnxk/version.map               |  30 -
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   2 +
 drivers/crypto/dpaa2_sec/version.map          |   8 -
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   2 +
 drivers/crypto/dpaa_sec/version.map           |   8 -
 drivers/crypto/octeontx/otx_cryptodev_ops.c   |   2 +
 drivers/crypto/octeontx/version.map           |  12 -
 .../scheduler/rte_cryptodev_scheduler.c       |  10 +
 drivers/crypto/scheduler/version.map          |  16 -
 drivers/dma/cnxk/cnxk_dmadev_fp.c             |   4 +
 drivers/dma/cnxk/version.map                  |  10 -
 drivers/event/cnxk/cnxk_worker.c              |   2 +
 drivers/event/cnxk/version.map                |  11 -
 drivers/event/dlb2/rte_pmd_dlb2.c             |   1 +
 drivers/event/dlb2/version.map                |  10 -
 drivers/mempool/cnxk/cn10k_hwpool_ops.c       |   3 +
 drivers/mempool/cnxk/version.map              |  12 -
 drivers/mempool/dpaa/dpaa_mempool.c           |   2 +
 drivers/mempool/dpaa/version.map              |   8 -
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c      |   5 +
 drivers/mempool/dpaa2/version.map             |  16 -
 drivers/meson.build                           |  74 +--
 drivers/net/atlantic/rte_pmd_atlantic.c       |   6 +
 drivers/net/atlantic/version.map              |  15 -
 drivers/net/bnxt/rte_pmd_bnxt.c               |  16 +
 drivers/net/bnxt/version.map                  |  22 -
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  12 +
 drivers/net/bonding/rte_eth_bond_api.c        |  15 +
 drivers/net/bonding/version.map               |  33 -
 drivers/net/cnxk/cnxk_ethdev.c                |   3 +
 drivers/net/cnxk/cnxk_ethdev_sec.c            |   9 +
 drivers/net/cnxk/version.map                  |  27 -
 drivers/net/dpaa/dpaa_ethdev.c                |   3 +
 drivers/net/dpaa/version.map                  |  14 -
 drivers/net/dpaa2/dpaa2_ethdev.c              |  11 +
 drivers/net/dpaa2/dpaa2_mux.c                 |   3 +
 drivers/net/dpaa2/dpaa2_rxtx.c                |   1 +
 drivers/net/dpaa2/version.map                 |  35 --
 drivers/net/intel/i40e/rte_pmd_i40e.c         |  39 ++
 drivers/net/intel/i40e/version.map            |  55 --
 drivers/net/intel/iavf/iavf_ethdev.c          |   9 +
 drivers/net/intel/iavf/iavf_rxtx.c            |   8 +
 drivers/net/intel/iavf/version.map            |  33 -
 drivers/net/intel/ice/ice_diagnose.c          |   3 +
 drivers/net/intel/ice/version.map             |  16 -
 drivers/net/intel/idpf/idpf_common_device.c   |  10 +
 drivers/net/intel/idpf/idpf_common_rxtx.c     |  24 +
 .../net/intel/idpf/idpf_common_rxtx_avx2.c    |   2 +
 .../net/intel/idpf/idpf_common_rxtx_avx512.c  |   5 +
 drivers/net/intel/idpf/idpf_common_virtchnl.c |  29 +
 drivers/net/intel/idpf/version.map            |  80 ---
 drivers/net/intel/ipn3ke/ipn3ke_ethdev.c      |   1 +
 drivers/net/intel/ipn3ke/version.map          |   9 -
 drivers/net/intel/ixgbe/rte_pmd_ixgbe.c       |  37 ++
 drivers/net/intel/ixgbe/version.map           |  49 --
 drivers/net/mlx5/mlx5.c                       |   1 +
 drivers/net/mlx5/mlx5_flow.c                  |   4 +
 drivers/net/mlx5/mlx5_rx.c                    |   2 +
 drivers/net/mlx5/mlx5_rxq.c                   |   2 +
 drivers/net/mlx5/mlx5_tx.c                    |   1 +
 drivers/net/mlx5/mlx5_txq.c                   |   3 +
 drivers/net/mlx5/version.map                  |  28 -
 drivers/net/octeontx/octeontx_ethdev.c        |   1 +
 drivers/net/octeontx/version.map              |   7 -
 drivers/net/ring/rte_eth_ring.c               |   2 +
 drivers/net/ring/version.map                  |   8 -
 drivers/net/softnic/rte_eth_softnic.c         |   1 +
 drivers/net/softnic/rte_eth_softnic_thread.c  |   1 +
 drivers/net/softnic/version.map               |   8 -
 drivers/net/vhost/rte_eth_vhost.c             |   2 +
 drivers/net/vhost/version.map                 |   8 -
 drivers/power/kvm_vm/guest_channel.c          |   2 +
 drivers/power/kvm_vm/version.map              |   8 -
 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c         |  10 +
 drivers/raw/cnxk_rvu_lf/version.map           |  16 -
 drivers/raw/ifpga/rte_pmd_ifpga.c             |  11 +
 drivers/raw/ifpga/version.map                 |  17 -
 drivers/version.map                           |   3 -
 lib/acl/acl_bld.c                             |   1 +
 lib/acl/acl_run_scalar.c                      |   1 +
 lib/acl/rte_acl.c                             |  11 +
 lib/acl/version.map                           |  19 -
 lib/argparse/rte_argparse.c                   |   2 +
 lib/argparse/version.map                      |   9 -
 lib/bbdev/bbdev_trace_points.c                |   2 +
 lib/bbdev/rte_bbdev.c                         |  31 +
 lib/bbdev/version.map                         |  47 --
 lib/bitratestats/rte_bitrate.c                |   4 +
 lib/bitratestats/version.map                  |  10 -
 lib/bpf/bpf.c                                 |   2 +
 lib/bpf/bpf_convert.c                         |   1 +
 lib/bpf/bpf_dump.c                            |   1 +
 lib/bpf/bpf_exec.c                            |   2 +
 lib/bpf/bpf_load.c                            |   1 +
 lib/bpf/bpf_load_elf.c                        |   1 +
 lib/bpf/bpf_pkt.c                             |   4 +
 lib/bpf/bpf_stub.c                            |   2 +
 lib/bpf/version.map                           |  18 -
 lib/cfgfile/rte_cfgfile.c                     |  17 +
 lib/cfgfile/version.map                       |  23 -
 lib/cmdline/cmdline.c                         |   9 +
 lib/cmdline/cmdline_cirbuf.c                  |  19 +
 lib/cmdline/cmdline_parse.c                   |   4 +
 lib/cmdline/cmdline_parse_bool.c              |   1 +
 lib/cmdline/cmdline_parse_etheraddr.c         |   3 +
 lib/cmdline/cmdline_parse_ipaddr.c            |   3 +
 lib/cmdline/cmdline_parse_num.c               |   3 +
 lib/cmdline/cmdline_parse_portlist.c          |   3 +
 lib/cmdline/cmdline_parse_string.c            |   5 +
 lib/cmdline/cmdline_rdline.c                  |  15 +
 lib/cmdline/cmdline_socket.c                  |   3 +
 lib/cmdline/cmdline_vt100.c                   |   2 +
 lib/cmdline/version.map                       |  82 ---
 lib/compressdev/rte_comp.c                    |   6 +
 lib/compressdev/rte_compressdev.c             |  25 +
 lib/compressdev/rte_compressdev_pmd.c         |   3 +
 lib/compressdev/version.map                   |  40 --
 lib/cryptodev/cryptodev_pmd.c                 |   7 +
 lib/cryptodev/cryptodev_trace_points.c        |   3 +
 lib/cryptodev/rte_cryptodev.c                 |  83 +++
 lib/cryptodev/version.map                     | 114 ----
 lib/dispatcher/rte_dispatcher.c               |  13 +
 lib/dispatcher/version.map                    |  20 -
 lib/distributor/rte_distributor.c             |   9 +
 lib/distributor/version.map                   |  15 -
 lib/dmadev/rte_dmadev.c                       |  19 +
 lib/dmadev/rte_dmadev_trace_points.c          |   7 +
 lib/dmadev/version.map                        |  47 --
 lib/eal/arm/rte_cpuflags.c                    |   3 +
 lib/eal/arm/rte_hypervisor.c                  |   1 +
 lib/eal/arm/rte_power_intrinsics.c            |   4 +
 lib/eal/common/eal_common_bus.c               |  10 +
 lib/eal/common/eal_common_class.c             |   4 +
 lib/eal/common/eal_common_config.c            |   7 +
 lib/eal/common/eal_common_cpuflags.c          |   1 +
 lib/eal/common/eal_common_debug.c             |   2 +
 lib/eal/common/eal_common_dev.c               |  19 +
 lib/eal/common/eal_common_devargs.c           |   9 +
 lib/eal/common/eal_common_errno.c             |   2 +
 lib/eal/common/eal_common_fbarray.c           |  26 +
 lib/eal/common/eal_common_hexdump.c           |   2 +
 lib/eal/common/eal_common_hypervisor.c        |   1 +
 lib/eal/common/eal_common_interrupts.c        |  27 +
 lib/eal/common/eal_common_launch.c            |   5 +
 lib/eal/common/eal_common_lcore.c             |  17 +
 lib/eal/common/eal_common_lcore_var.c         |   1 +
 lib/eal/common/eal_common_mcfg.c              |  20 +
 lib/eal/common/eal_common_memory.c            |  29 +
 lib/eal/common/eal_common_memzone.c           |   9 +
 lib/eal/common/eal_common_options.c           |   4 +
 lib/eal/common/eal_common_proc.c              |   8 +
 lib/eal/common/eal_common_string_fns.c        |   3 +
 lib/eal/common/eal_common_tailqs.c            |   3 +
 lib/eal/common/eal_common_thread.c            |  14 +
 lib/eal/common/eal_common_timer.c             |   4 +
 lib/eal/common/eal_common_trace.c             |  15 +
 lib/eal/common/eal_common_trace_ctf.c         |   1 +
 lib/eal/common/eal_common_trace_points.c      |  18 +
 lib/eal/common/eal_common_trace_utils.c       |   1 +
 lib/eal/common/eal_common_uuid.c              |   4 +
 lib/eal/common/rte_bitset.c                   |   1 +
 lib/eal/common/rte_keepalive.c                |   6 +
 lib/eal/common/rte_malloc.c                   |  22 +
 lib/eal/common/rte_random.c                   |   4 +
 lib/eal/common/rte_reciprocal.c               |   2 +
 lib/eal/common/rte_service.c                  |  31 +
 lib/eal/common/rte_version.c                  |   7 +
 lib/eal/freebsd/eal.c                         |  22 +
 lib/eal/freebsd/eal_alarm.c                   |   2 +
 lib/eal/freebsd/eal_dev.c                     |   4 +
 lib/eal/freebsd/eal_interrupts.c              |  19 +
 lib/eal/freebsd/eal_memory.c                  |   3 +
 lib/eal/freebsd/eal_thread.c                  |   2 +
 lib/eal/freebsd/eal_timer.c                   |   1 +
 lib/eal/include/rte_function_versioning.h     |  96 ++-
 lib/eal/linux/eal.c                           |   7 +
 lib/eal/linux/eal_alarm.c                     |   2 +
 lib/eal/linux/eal_dev.c                       |   4 +
 lib/eal/linux/eal_interrupts.c                |  19 +
 lib/eal/linux/eal_memory.c                    |   3 +
 lib/eal/linux/eal_thread.c                    |   2 +
 lib/eal/linux/eal_timer.c                     |   4 +
 lib/eal/linux/eal_vfio.c                      |  16 +
 lib/eal/loongarch/rte_cpuflags.c              |   3 +
 lib/eal/loongarch/rte_hypervisor.c            |   1 +
 lib/eal/loongarch/rte_power_intrinsics.c      |   4 +
 lib/eal/ppc/rte_cpuflags.c                    |   3 +
 lib/eal/ppc/rte_hypervisor.c                  |   1 +
 lib/eal/ppc/rte_power_intrinsics.c            |   4 +
 lib/eal/riscv/rte_cpuflags.c                  |   3 +
 lib/eal/riscv/rte_hypervisor.c                |   1 +
 lib/eal/riscv/rte_power_intrinsics.c          |   4 +
 lib/eal/unix/eal_debug.c                      |   2 +
 lib/eal/unix/eal_filesystem.c                 |   1 +
 lib/eal/unix/eal_firmware.c                   |   1 +
 lib/eal/unix/eal_unix_memory.c                |   4 +
 lib/eal/unix/eal_unix_timer.c                 |   1 +
 lib/eal/unix/rte_thread.c                     |  13 +
 lib/eal/version.map                           | 451 --------------
 lib/eal/windows/eal.c                         |  11 +
 lib/eal/windows/eal_alarm.c                   |   2 +
 lib/eal/windows/eal_debug.c                   |   1 +
 lib/eal/windows/eal_dev.c                     |   4 +
 lib/eal/windows/eal_interrupts.c              |  19 +
 lib/eal/windows/eal_memory.c                  |   7 +
 lib/eal/windows/eal_mp.c                      |   6 +
 lib/eal/windows/eal_thread.c                  |   1 +
 lib/eal/windows/eal_timer.c                   |   1 +
 lib/eal/windows/rte_thread.c                  |  14 +
 lib/eal/x86/rte_cpuflags.c                    |   3 +
 lib/eal/x86/rte_hypervisor.c                  |   1 +
 lib/eal/x86/rte_power_intrinsics.c            |   4 +
 lib/eal/x86/rte_spinlock.c                    |   1 +
 lib/efd/rte_efd.c                             |   7 +
 lib/efd/version.map                           |  13 -
 lib/ethdev/ethdev_driver.c                    |  24 +
 lib/ethdev/ethdev_linux_ethtool.c             |   3 +
 lib/ethdev/ethdev_private.c                   |   2 +
 lib/ethdev/ethdev_trace_points.c              |   6 +
 lib/ethdev/rte_ethdev.c                       | 168 +++++
 lib/ethdev/rte_ethdev_cman.c                  |   4 +
 lib/ethdev/rte_flow.c                         |  64 ++
 lib/ethdev/rte_mtr.c                          |  21 +
 lib/ethdev/rte_tm.c                           |  31 +
 lib/ethdev/version.map                        | 378 ------------
 lib/eventdev/eventdev_private.c               |   2 +
 lib/eventdev/eventdev_trace_points.c          |  11 +
 lib/eventdev/rte_event_crypto_adapter.c       |  15 +
 lib/eventdev/rte_event_dma_adapter.c          |  15 +
 lib/eventdev/rte_event_eth_rx_adapter.c       |  23 +
 lib/eventdev/rte_event_eth_tx_adapter.c       |  17 +
 lib/eventdev/rte_event_ring.c                 |   4 +
 lib/eventdev/rte_event_timer_adapter.c        |  11 +
 lib/eventdev/rte_eventdev.c                   |  46 ++
 lib/eventdev/version.map                      | 179 ------
 lib/fib/rte_fib.c                             |  10 +
 lib/fib/rte_fib6.c                            |   9 +
 lib/fib/version.map                           |  31 -
 lib/gpudev/gpudev.c                           |  32 +
 lib/gpudev/version.map                        |  44 --
 lib/graph/graph.c                             |  16 +
 lib/graph/graph_debug.c                       |   1 +
 lib/graph/graph_stats.c                       |   4 +
 lib/graph/node.c                              |  11 +
 lib/graph/rte_graph_model_mcore_dispatch.c    |   3 +
 lib/graph/rte_graph_worker.c                  |   3 +
 lib/graph/version.map                         |  61 --
 lib/gro/rte_gro.c                             |   6 +
 lib/gro/version.map                           |  12 -
 lib/gso/rte_gso.c                             |   1 +
 lib/gso/version.map                           |   7 -
 lib/hash/rte_cuckoo_hash.c                    |  27 +
 lib/hash/rte_fbk_hash.c                       |   3 +
 lib/hash/rte_hash_crc.c                       |   2 +
 lib/hash/rte_thash.c                          |  12 +
 lib/hash/rte_thash_gf2_poly_math.c            |   1 +
 lib/hash/rte_thash_gfni.c                     |   2 +
 lib/hash/version.map                          |  66 --
 lib/ip_frag/rte_ip_frag_common.c              |   5 +
 lib/ip_frag/rte_ipv4_fragmentation.c          |   2 +
 lib/ip_frag/rte_ipv4_reassembly.c             |   1 +
 lib/ip_frag/rte_ipv6_fragmentation.c          |   1 +
 lib/ip_frag/rte_ipv6_reassembly.c             |   1 +
 lib/ip_frag/version.map                       |  16 -
 lib/ipsec/ipsec_sad.c                         |   6 +
 lib/ipsec/ipsec_telemetry.c                   |   2 +
 lib/ipsec/sa.c                                |   4 +
 lib/ipsec/ses.c                               |   1 +
 lib/ipsec/version.map                         |  23 -
 lib/jobstats/rte_jobstats.c                   |  14 +
 lib/jobstats/version.map                      |  20 -
 lib/kvargs/rte_kvargs.c                       |   8 +
 lib/kvargs/version.map                        |  14 -
 lib/latencystats/rte_latencystats.c           |   5 +
 lib/latencystats/version.map                  |  11 -
 lib/log/log.c                                 |  22 +
 lib/log/log_color.c                           |   1 +
 lib/log/log_internal.h                        |   3 -
 lib/log/log_syslog.c                          |   1 +
 lib/log/log_timestamp.c                       |   1 +
 lib/log/version.map                           |  37 --
 lib/lpm/rte_lpm.c                             |   8 +
 lib/lpm/rte_lpm6.c                            |  10 +
 lib/lpm/version.map                           |  24 -
 lib/mbuf/rte_mbuf.c                           |  17 +
 lib/mbuf/rte_mbuf_dyn.c                       |   9 +
 lib/mbuf/rte_mbuf_pool_ops.c                  |   5 +
 lib/mbuf/rte_mbuf_ptype.c                     |   8 +
 lib/mbuf/version.map                          |  45 --
 lib/member/rte_member.c                       |  13 +
 lib/member/version.map                        |  19 -
 lib/mempool/mempool_trace_points.c            |  10 +
 lib/mempool/rte_mempool.c                     |  27 +
 lib/mempool/rte_mempool_ops.c                 |   4 +
 lib/mempool/rte_mempool_ops_default.c         |   4 +
 lib/mempool/version.map                       |  65 --
 lib/meson.build                               |  62 +-
 lib/meter/rte_meter.c                         |   6 +
 lib/meter/version.map                         |  12 -
 lib/metrics/rte_metrics.c                     |   8 +
 lib/metrics/rte_metrics_telemetry.c           |  11 +
 lib/metrics/version.map                       |  26 -
 lib/mldev/mldev_utils.c                       |   2 +
 lib/mldev/mldev_utils_neon.c                  |  18 +
 lib/mldev/mldev_utils_neon_bfloat16.c         |   2 +
 lib/mldev/mldev_utils_scalar.c                |  18 +
 lib/mldev/mldev_utils_scalar_bfloat16.c       |   2 +
 lib/mldev/rte_mldev.c                         |  37 ++
 lib/mldev/rte_mldev_pmd.c                     |   2 +
 lib/mldev/version.map                         |  74 ---
 lib/net/net_crc.h                             |  15 -
 lib/net/rte_arp.c                             |   1 +
 lib/net/rte_ether.c                           |   3 +
 lib/net/rte_net.c                             |   2 +
 lib/net/rte_net_crc.c                         |  29 +-
 lib/net/version.map                           |  23 -
 lib/node/ethdev_ctrl.c                        |   2 +
 lib/node/ip4_lookup.c                         |   1 +
 lib/node/ip4_reassembly.c                     |   1 +
 lib/node/ip4_rewrite.c                        |   1 +
 lib/node/ip6_lookup.c                         |   1 +
 lib/node/ip6_rewrite.c                        |   1 +
 lib/node/udp4_input.c                         |   2 +
 lib/node/version.map                          |  25 -
 lib/pcapng/rte_pcapng.c                       |   7 +
 lib/pcapng/version.map                        |  13 -
 lib/pci/rte_pci.c                             |   3 +
 lib/pci/version.map                           |   9 -
 lib/pdcp/rte_pdcp.c                           |   5 +
 lib/pdcp/version.map                          |  16 -
 lib/pdump/rte_pdump.c                         |   9 +
 lib/pdump/version.map                         |  15 -
 lib/pipeline/rte_pipeline.c                   |  23 +
 lib/pipeline/rte_port_in_action.c             |   8 +
 lib/pipeline/rte_swx_ctl.c                    |  17 +
 lib/pipeline/rte_swx_ipsec.c                  |   7 +
 lib/pipeline/rte_swx_pipeline.c               |  73 +++
 lib/pipeline/rte_table_action.c               |  16 +
 lib/pipeline/version.map                      | 172 ------
 lib/port/rte_port_ethdev.c                    |   3 +
 lib/port/rte_port_eventdev.c                  |   3 +
 lib/port/rte_port_fd.c                        |   3 +
 lib/port/rte_port_frag.c                      |   2 +
 lib/port/rte_port_ras.c                       |   2 +
 lib/port/rte_port_ring.c                      |   6 +
 lib/port/rte_port_sched.c                     |   2 +
 lib/port/rte_port_source_sink.c               |   2 +
 lib/port/rte_port_sym_crypto.c                |   3 +
 lib/port/rte_swx_port_ethdev.c                |   2 +
 lib/port/rte_swx_port_fd.c                    |   2 +
 lib/port/rte_swx_port_ring.c                  |   2 +
 lib/port/rte_swx_port_source_sink.c           |   3 +
 lib/port/version.map                          |  50 --
 lib/power/power_common.c                      |   8 +
 lib/power/rte_power_cpufreq.c                 |  18 +
 lib/power/rte_power_pmd_mgmt.c                |  10 +
 lib/power/rte_power_qos.c                     |   2 +
 lib/power/rte_power_uncore.c                  |  14 +
 lib/power/version.map                         |  71 ---
 lib/rawdev/rte_rawdev.c                       |  30 +
 lib/rawdev/version.map                        |  36 --
 lib/rcu/rte_rcu_qsbr.c                        |  11 +
 lib/rcu/version.map                           |  17 -
 lib/regexdev/rte_regexdev.c                   |  26 +
 lib/regexdev/version.map                      |  40 --
 lib/reorder/rte_reorder.c                     |  11 +
 lib/reorder/version.map                       |  27 -
 lib/rib/rte_rib.c                             |  14 +
 lib/rib/rte_rib6.c                            |  14 +
 lib/rib/version.map                           |  34 --
 lib/ring/rte_ring.c                           |  11 +
 lib/ring/rte_soring.c                         |   3 +
 lib/ring/soring.c                             |  16 +
 lib/ring/version.map                          |  42 --
 lib/sched/rte_approx.c                        |   1 +
 lib/sched/rte_pie.c                           |   2 +
 lib/sched/rte_red.c                           |   6 +
 lib/sched/rte_sched.c                         |  15 +
 lib/sched/version.map                         |  30 -
 lib/security/rte_security.c                   |  20 +
 lib/security/version.map                      |  37 --
 lib/stack/rte_stack.c                         |   3 +
 lib/stack/version.map                         |   9 -
 lib/table/rte_swx_table_em.c                  |   2 +
 lib/table/rte_swx_table_learner.c             |  10 +
 lib/table/rte_swx_table_selector.c            |   6 +
 lib/table/rte_swx_table_wm.c                  |   1 +
 lib/table/rte_table_acl.c                     |   1 +
 lib/table/rte_table_array.c                   |   1 +
 lib/table/rte_table_hash_cuckoo.c             |   1 +
 lib/table/rte_table_hash_ext.c                |   1 +
 lib/table/rte_table_hash_key16.c              |   2 +
 lib/table/rte_table_hash_key32.c              |   2 +
 lib/table/rte_table_hash_key8.c               |   2 +
 lib/table/rte_table_hash_lru.c                |   1 +
 lib/table/rte_table_lpm.c                     |   1 +
 lib/table/rte_table_lpm_ipv6.c                |   1 +
 lib/table/rte_table_stub.c                    |   1 +
 lib/table/version.map                         |  53 --
 lib/telemetry/telemetry.c                     |   3 +
 lib/telemetry/telemetry_data.c                |  17 +
 lib/telemetry/telemetry_legacy.c              |   1 +
 lib/telemetry/version.map                     |  40 --
 lib/timer/rte_timer.c                         |  18 +
 lib/timer/version.map                         |  24 -
 lib/vhost/socket.c                            |  16 +
 lib/vhost/vdpa.c                              |  11 +
 lib/vhost/version.map                         | 111 ----
 lib/vhost/vhost.c                             |  41 ++
 lib/vhost/vhost_crypto.c                      |   6 +
 lib/vhost/vhost_user.c                        |   2 +
 lib/vhost/virtio_net.c                        |   7 +
 526 files changed, 4661 insertions(+), 6528 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 delete mode 100644 buildtools/map_to_win.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100755 devtools/check-symbol-change.sh
 delete mode 100755 devtools/check-symbol-maps.sh
 delete mode 100755 devtools/update-abi.sh
 delete mode 100755 devtools/update_version_map_abi.py
 delete mode 100644 drivers/baseband/acc/version.map
 delete mode 100644 drivers/baseband/fpga_5gnr_fec/version.map
 delete mode 100644 drivers/baseband/fpga_lte_fec/version.map
 delete mode 100644 drivers/bus/auxiliary/version.map
 delete mode 100644 drivers/bus/cdx/version.map
 delete mode 100644 drivers/bus/dpaa/version.map
 delete mode 100644 drivers/bus/fslmc/version.map
 delete mode 100644 drivers/bus/ifpga/version.map
 delete mode 100644 drivers/bus/pci/version.map
 delete mode 100644 drivers/bus/platform/version.map
 delete mode 100644 drivers/bus/uacce/version.map
 delete mode 100644 drivers/bus/vdev/version.map
 delete mode 100644 drivers/bus/vmbus/version.map
 delete mode 100644 drivers/common/cnxk/version.map
 delete mode 100644 drivers/common/cpt/version.map
 delete mode 100644 drivers/common/dpaax/version.map
 delete mode 100644 drivers/common/ionic/version.map
 delete mode 100644 drivers/common/mlx5/version.map
 delete mode 100644 drivers/common/mvep/version.map
 delete mode 100644 drivers/common/nfp/version.map
 delete mode 100644 drivers/common/nitrox/version.map
 delete mode 100644 drivers/common/octeontx/version.map
 delete mode 100644 drivers/common/sfc_efx/version.map
 delete mode 100644 drivers/crypto/cnxk/version.map
 delete mode 100644 drivers/crypto/dpaa2_sec/version.map
 delete mode 100644 drivers/crypto/dpaa_sec/version.map
 delete mode 100644 drivers/crypto/octeontx/version.map
 delete mode 100644 drivers/crypto/scheduler/version.map
 delete mode 100644 drivers/dma/cnxk/version.map
 delete mode 100644 drivers/event/cnxk/version.map
 delete mode 100644 drivers/event/dlb2/version.map
 delete mode 100644 drivers/mempool/cnxk/version.map
 delete mode 100644 drivers/mempool/dpaa/version.map
 delete mode 100644 drivers/mempool/dpaa2/version.map
 delete mode 100644 drivers/net/atlantic/version.map
 delete mode 100644 drivers/net/bnxt/version.map
 delete mode 100644 drivers/net/bonding/version.map
 delete mode 100644 drivers/net/cnxk/version.map
 delete mode 100644 drivers/net/dpaa/version.map
 delete mode 100644 drivers/net/dpaa2/version.map
 delete mode 100644 drivers/net/intel/i40e/version.map
 delete mode 100644 drivers/net/intel/iavf/version.map
 delete mode 100644 drivers/net/intel/ice/version.map
 delete mode 100644 drivers/net/intel/idpf/version.map
 delete mode 100644 drivers/net/intel/ipn3ke/version.map
 delete mode 100644 drivers/net/intel/ixgbe/version.map
 delete mode 100644 drivers/net/mlx5/version.map
 delete mode 100644 drivers/net/octeontx/version.map
 delete mode 100644 drivers/net/ring/version.map
 delete mode 100644 drivers/net/softnic/version.map
 delete mode 100644 drivers/net/vhost/version.map
 delete mode 100644 drivers/power/kvm_vm/version.map
 delete mode 100644 drivers/raw/cnxk_rvu_lf/version.map
 delete mode 100644 drivers/raw/ifpga/version.map
 delete mode 100644 drivers/version.map
 delete mode 100644 lib/acl/version.map
 delete mode 100644 lib/argparse/version.map
 delete mode 100644 lib/bbdev/version.map
 delete mode 100644 lib/bitratestats/version.map
 delete mode 100644 lib/bpf/version.map
 delete mode 100644 lib/cfgfile/version.map
 delete mode 100644 lib/cmdline/version.map
 delete mode 100644 lib/compressdev/version.map
 delete mode 100644 lib/cryptodev/version.map
 delete mode 100644 lib/dispatcher/version.map
 delete mode 100644 lib/distributor/version.map
 delete mode 100644 lib/dmadev/version.map
 delete mode 100644 lib/eal/version.map
 delete mode 100644 lib/efd/version.map
 delete mode 100644 lib/ethdev/version.map
 delete mode 100644 lib/eventdev/version.map
 delete mode 100644 lib/fib/version.map
 delete mode 100644 lib/gpudev/version.map
 delete mode 100644 lib/graph/version.map
 delete mode 100644 lib/gro/version.map
 delete mode 100644 lib/gso/version.map
 delete mode 100644 lib/hash/version.map
 delete mode 100644 lib/ip_frag/version.map
 delete mode 100644 lib/ipsec/version.map
 delete mode 100644 lib/jobstats/version.map
 delete mode 100644 lib/kvargs/version.map
 delete mode 100644 lib/latencystats/version.map
 delete mode 100644 lib/log/version.map
 delete mode 100644 lib/lpm/version.map
 delete mode 100644 lib/mbuf/version.map
 delete mode 100644 lib/member/version.map
 delete mode 100644 lib/mempool/version.map
 delete mode 100644 lib/meter/version.map
 delete mode 100644 lib/metrics/version.map
 delete mode 100644 lib/mldev/version.map
 delete mode 100644 lib/net/version.map
 delete mode 100644 lib/node/version.map
 delete mode 100644 lib/pcapng/version.map
 delete mode 100644 lib/pci/version.map
 delete mode 100644 lib/pdcp/version.map
 delete mode 100644 lib/pdump/version.map
 delete mode 100644 lib/pipeline/version.map
 delete mode 100644 lib/port/version.map
 delete mode 100644 lib/power/version.map
 delete mode 100644 lib/rawdev/version.map
 delete mode 100644 lib/rcu/version.map
 delete mode 100644 lib/regexdev/version.map
 delete mode 100644 lib/reorder/version.map
 delete mode 100644 lib/rib/version.map
 delete mode 100644 lib/ring/version.map
 delete mode 100644 lib/sched/version.map
 delete mode 100644 lib/security/version.map
 delete mode 100644 lib/stack/version.map
 delete mode 100644 lib/table/version.map
 delete mode 100644 lib/telemetry/version.map
 delete mode 100644 lib/timer/version.map
 delete mode 100644 lib/vhost/version.map

-- 
2.48.1
#34 lore raw

RFC v4 1/8 lib: remove incorrect exported symbols

Declaring inline helpers in version.map is unnecessary. There is no exported symbol and this will probably be treated as an error by MSVC linker.

eal_log_journal has no implementation and can be removed.

---
 lib/eventdev/version.map | 12 ------------
 lib/graph/version.map    | 17 -----------------
 lib/ipsec/version.map    |  4 ----
 lib/log/log_internal.h   |  3 ---
 lib/log/version.map      |  1 -
 lib/pdcp/version.map     |  4 ----
 lib/regexdev/version.map |  2 --
 lib/vhost/version.map    |  1 -
 8 files changed, 44 deletions(-)
lib/eventdev/version.map +0 -12
index 44687255cb..bff08d6a62 100644
@@ -102,9 +102,6 @@ DPDK_25 {
 	rte_event_timer_adapter_stats_get;
 	rte_event_timer_adapter_stats_reset;
 	rte_event_timer_adapter_stop;
-	rte_event_timer_arm_burst;
-	rte_event_timer_arm_tmo_tick_burst;
-	rte_event_timer_cancel_burst;
 	rte_event_vector_pool_create;
 
 	local: *;
@@ -149,9 +146,7 @@ EXPERIMENTAL {
 	__rte_eventdev_trace_port_profile_switch;
 
 	# added in 24.11
-	rte_event_port_preschedule_modify;
 	__rte_eventdev_trace_port_preschedule_modify;
-	rte_event_port_preschedule;
 	__rte_eventdev_trace_port_preschedule;
 
 	# added in 25.03
@@ -166,14 +161,7 @@ INTERNAL {
 	event_dev_probing_finish;
 	rte_event_logtype;
 	rte_event_pmd_allocate;
-	rte_event_pmd_get_named_dev;
-	rte_event_pmd_is_valid_dev;
-	rte_event_pmd_pci_probe;
-	rte_event_pmd_pci_probe_named;
-	rte_event_pmd_pci_remove;
 	rte_event_pmd_release;
 	rte_event_pmd_selftest_seqn_dynfield_offset;
-	rte_event_pmd_vdev_init;
-	rte_event_pmd_vdev_uninit;
 	rte_eventdevs;
 };
lib/graph/version.map +0 -17
index 44fadc00fd..d03d44434d 100644
@@ -27,9 +27,7 @@ DPDK_25 {
 	rte_graph_node_get;
 	rte_graph_node_get_by_name;
 	rte_graph_obj_dump;
-	rte_graph_walk;
 	rte_graph_worker_model_get;
-	rte_graph_worker_model_no_check_get;
 	rte_graph_worker_model_set;
 	rte_node_clone;
 	rte_node_dump;
@@ -37,25 +35,10 @@ DPDK_25 {
 	rte_node_edge_get;
 	rte_node_edge_shrink;
 	rte_node_edge_update;
-	rte_node_enqueue;
-	rte_node_enqueue_next;
-	rte_node_enqueue_x1;
-	rte_node_enqueue_x2;
-	rte_node_enqueue_x4;
 	rte_node_from_name;
 	rte_node_id_to_name;
 	rte_node_list_dump;
 	rte_node_max_count;
-	rte_node_next_stream_get;
-	rte_node_next_stream_move;
-	rte_node_next_stream_put;
 
 	local: *;
 };
-
-EXPERIMENTAL {
-	global:
-
-	# added in 24.11
-	rte_node_xstat_increment;
-};
lib/ipsec/version.map +0 -4
index 308f9d2e0d..47e3df5bb6 100644
@@ -1,9 +1,6 @@
 DPDK_25 {
 	global:
 
-	rte_ipsec_pkt_crypto_group;
-	rte_ipsec_pkt_crypto_prepare;
-	rte_ipsec_pkt_process;
 	rte_ipsec_sa_fini;
 	rte_ipsec_sa_init;
 	rte_ipsec_sa_size;
@@ -14,7 +11,6 @@ DPDK_25 {
 	rte_ipsec_sad_destroy;
 	rte_ipsec_sad_find_existing;
 	rte_ipsec_sad_lookup;
-	rte_ipsec_ses_from_crypto;
 	rte_ipsec_session_prepare;
 	rte_ipsec_telemetry_sa_add;
 	rte_ipsec_telemetry_sa_del;
lib/log/log_internal.h +0 -3
index bba7041ea3..525e1397fd 100644
@@ -29,9 +29,6 @@ int eal_log_save_pattern(const char *pattern, uint32_t level);
 __rte_internal
 int eal_log_syslog(const char *name);
 
-__rte_internal
-int eal_log_journal(const char *opt);
-
 /*
  * Convert log level to string.
  */
lib/log/version.map +0 -1
index 09d8a4289b..603be493b3 100644
@@ -27,7 +27,6 @@ INTERNAL {
 
 	eal_log_color;
 	eal_log_init;
-	eal_log_journal; # WINDOWS_NO_EXPORT
 	eal_log_level2str;
 	eal_log_save_pattern;
 	eal_log_save_regexp;
lib/pdcp/version.map +0 -4
index 9c02303c45..72b2d4729b 100644
@@ -3,13 +3,9 @@ EXPERIMENTAL {
 
 	# added in 23.07
 	rte_pdcp_control_pdu_create;
-	rte_pdcp_en_from_cop;
 	rte_pdcp_entity_establish;
 	rte_pdcp_entity_release;
 	rte_pdcp_entity_suspend;
-	rte_pdcp_pkt_post_process;
-	rte_pdcp_pkt_pre_process;
-	rte_pdcp_pkt_crypto_group;
 	rte_pdcp_t_reordering_expiry_handle;
 
 	local: *;
lib/regexdev/version.map +0 -2
index 4c0435180c..713a800ca4 100644
@@ -7,9 +7,7 @@ EXPERIMENTAL {
 	rte_regexdev_close;
 	rte_regexdev_configure;
 	rte_regexdev_count;
-	rte_regexdev_dequeue_burst;
 	rte_regexdev_dump;
-	rte_regexdev_enqueue_burst;
 	rte_regexdev_get_dev_id;
 	rte_regexdev_info_get;
 	rte_regexdev_queue_pair_setup;
lib/vhost/version.map +0 -1
index 8333e100ed..c044bb714e 100644
@@ -61,7 +61,6 @@ DPDK_25 {
 	rte_vhost_set_last_inflight_io_packed;
 	rte_vhost_set_last_inflight_io_split;
 	rte_vhost_set_vring_base;
-	rte_vhost_va_from_guest_pa;
 	rte_vhost_vring_call;
 	rte_vhost_vring_call_nonblock;
 	rte_vhost_vring_stats_get;
Signature · 1 line
2.48.1
#35 lore raw

RFC v4 2/8 drivers: remove incorrect exported symbols

In reply to David Marchand

Declaring inline helpers in version.map is unnecessary. There is no exported symbol and this will probably be treated as an error by MSVC linker.

rte_dpaa2_dev_type is an enum token.
roc_se_ctx_swap has no implementation (leftover from a previous rework) and can be removed.

---
 drivers/bus/dpaa/version.map    | 1 -
 drivers/bus/fslmc/version.map   | 2 --
 drivers/common/cnxk/roc_se.h    | 1 -
 drivers/common/cnxk/version.map | 2 --
 4 files changed, 6 deletions(-)
drivers/bus/dpaa/version.map +0 -1
index a17d57632e..8f09b72757 100644
@@ -18,7 +18,6 @@ INTERNAL {
 	dpaa_update_link_speed;
 	dpaa_intr_disable;
 	dpaa_intr_enable;
-	dpaa_seqn;
 	dpaa_svr_family;
 	dpaa_update_link_status;
 	fman_dealloc_bufs_mask_hi;
drivers/bus/fslmc/version.map +0 -2
index 2c36895285..ba3c7f36e3 100644
@@ -22,7 +22,6 @@ INTERNAL {
 	dpaa2_get_mcp_ptr;
 	dpaa2_io_portal;
 	dpaa2_seqn_dynfield_offset;
-	dpaa2_seqn;
 	dpaa2_svr_family;
 	dpbp_disable;
 	dpbp_enable;
@@ -108,7 +107,6 @@ INTERNAL {
 	qbman_swp_push_set;
 	qbman_swp_release;
 	rte_dpaa2_alloc_dpci_dev;
-	rte_dpaa2_dev_type;
 	rte_dpaa2_free_dpci_dev;
 	rte_dpaa2_intr_disable;
 	rte_dpaa2_intr_enable;
drivers/common/cnxk/roc_se.h +0 -1
index ede8d69c0e..f2c4056169 100644
@@ -405,7 +405,6 @@ int __roc_api roc_se_auth_key_set(struct roc_se_ctx *se_ctx, roc_se_auth_type ty
 int __roc_api roc_se_ciph_key_set(struct roc_se_ctx *se_ctx, roc_se_cipher_type type,
 				  const uint8_t *key, uint16_t key_len);
 
-void __roc_api roc_se_ctx_swap(struct roc_se_ctx *se_ctx);
 void __roc_api roc_se_ctx_init(struct roc_se_ctx *se_ctx);
 
 void __roc_api roc_se_hmac_opad_ipad_gen(roc_se_auth_type auth_type, const uint8_t *key,
drivers/common/cnxk/version.map +0 -2
index cdbfc1d39a..7f40dcced2 100644
@@ -164,7 +164,6 @@ INTERNAL {
 	roc_mcs_custom_tag_cfg_get;
 	roc_mcs_dev_init;
 	roc_mcs_dev_fini;
-	roc_mcs_dev_get;
 	roc_mcs_event_cb_register;
 	roc_mcs_event_cb_unregister;
 	roc_mcs_flowid_entry_enable;
@@ -546,7 +545,6 @@ INTERNAL {
 	roc_tim_lf_enable;
 	roc_tim_lf_free;
 	roc_tim_lf_interval;
-	roc_se_ctx_swap;
 	roc_ree_af_reg_read;
 	roc_ree_af_reg_write;
 	roc_ree_config_lf;
Signature · 1 line
2.48.1
#36 lore raw

RFC v4 3/8 eal: rework function versioning macros

In reply to David Marchand

For versioning symbols:
- MSVC uses pragmas on the symbol,
- GNU linker uses special asm directives,

To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function.

This has the advantage of hiding all the ugly details in the macros. Now versioning a symbol is just a call to a single macro:
- RTE_VERSION_SYMBOL (resp. RTE_VERSION_EXPERIMENTAL_SYMBOL), for keeping an old implementation code under a versioned function (resp. experimental function),
- RTE_DEFAULT_SYMBOL, for declaring the new default versioned function, and handling the static link special case, instead of BIND_DEFAULT_SYMBOL + MAP_STATIC_SYMBOL,

Update lib/net accordingly.

---
Changes since RFC v3:
- fixed documentation and simplified examples,

Changes since RFC v1:
- renamed and prefixed macros,
- reindented in prevision of second patch,

---
 doc/guides/contributing/abi_versioning.rst | 189 +++++----------------
 lib/eal/include/rte_function_versioning.h  |  96 ++++-------
 lib/net/net_crc.h                          |  15 --
 lib/net/rte_net_crc.c                      |  28 +--
 4 files changed, 88 insertions(+), 240 deletions(-)
doc/guides/contributing/abi_versioning.rst +47 -142
index 7afd1c1886..21f8f8cd14 100644
@@ -138,27 +138,20 @@ macros are used in conjunction with the ``version.map`` file for
 a given library to allow multiple versions of a symbol to exist in a shared
 library so that older binaries need not be immediately recompiled.
 
-The macros exported are:
+The macros are:
 
-* ``VERSION_SYMBOL(b, e, n)``: Creates a symbol version table entry binding
-  versioned symbol ``b@DPDK_n`` to the internal function ``be``.
+* ``RTE_VERSION_SYMBOL(ver, type, name, args)``: Creates a symbol version table
+  entry binding symbol ``<name>@DPDK_<ver>`` to the internal function name
+  ``<name>_v<ver>``.
 
-* ``BIND_DEFAULT_SYMBOL(b, e, n)``: Creates a symbol version entry instructing
-  the linker to bind references to symbol ``b`` to the internal symbol
-  ``be``.
+* ``RTE_DEFAULT_SYMBOL(ver, type, name, args)``: Creates a symbol version entry
+  instructing the linker to bind references to symbol ``<name>`` to the internal
+  symbol ``<name>_v<ver>``.
 
-* ``MAP_STATIC_SYMBOL(f, p)``: Declare the prototype ``f``, and map it to the
-  fully qualified function ``p``, so that if a symbol becomes versioned, it
-  can still be mapped back to the public symbol name.
-
-* ``__vsym``:  Annotation to be used in a declaration of the internal symbol
-  ``be`` to signal that it is being used as an implementation of a particular
-  version of symbol ``b``.
-
-* ``VERSION_SYMBOL_EXPERIMENTAL(b, e)``: Creates a symbol version table entry
-  binding versioned symbol ``b@EXPERIMENTAL`` to the internal function ``be``.
-  The macro is used when a symbol matures to become part of the stable ABI, to
-  provide an alias to experimental until the next major ABI version.
+* ``RTE_VERSION_EXPERIMENTAL_SYMBOL(type, name, args)``:  Similar to RTE_VERSION_SYMBOL
+  but for experimental API symbols. The macro is used when a symbol matures
+  to become part of the stable ABI, to provide an alias to experimental
+  until the next major ABI version.
 
 .. _example_abi_macro_usage:
 
@@ -176,8 +169,8 @@ Assume we have a function as follows
   * Create an acl context object for apps to
   * manipulate
   */
- struct rte_acl_ctx *
- rte_acl_create(const struct rte_acl_param *param)
+ int
+ rte_acl_create(struct rte_acl_param *param)
  {
         ...
  }
@@ -194,8 +187,8 @@ private, is safe), but it also requires modifying the code as follows
   * Create an acl context object for apps to
   * manipulate
   */
- struct rte_acl_ctx *
- rte_acl_create(const struct rte_acl_param *param, int debug)
+ int
+ rte_acl_create(struct rte_acl_param *param, int debug)
  {
         ...
  }
@@ -277,86 +270,49 @@ list of exported symbols when DPDK is compiled as a shared library.
 
 Next, we need to specify in the code which function maps to the rte_acl_create
 symbol at which versions.  First, at the site of the initial symbol definition,
-we need to update the function so that it is uniquely named, and not in conflict
-with the public symbol name
+we wrap the function with ``RTE_VERSION_SYMBOL``, passing the current ABI version,
+the function return type, the function name and its arguments.
 
 .. code-block:: c
 
- -struct rte_acl_ctx *
- -rte_acl_create(const struct rte_acl_param *param)
- +struct rte_acl_ctx * __vsym
- +rte_acl_create_v21(const struct rte_acl_param *param)
+ -int
+ -rte_acl_create(struct rte_acl_param *param)
+ +RTE_VERSION_SYMBOL(21, int, rte_acl_create, (struct rte_acl_param *param))
  {
         size_t sz;
         struct rte_acl_ctx *ctx;
         ...
-
-Note that the base name of the symbol was kept intact, as this is conducive to
-the macros used for versioning symbols and we have annotated the function as
-``__vsym``, an implementation of a versioned symbol . That is our next step,
-mapping this new symbol name to the initial symbol name at version node 21.
-Immediately after the function, we add the VERSION_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ }
 
 Remembering to also add the rte_function_versioning.h header to the requisite c
 file where these changes are being made. The macro instructs the linker to
 create a new symbol ``rte_acl_create@DPDK_21``, which matches the symbol created
-in older builds, but now points to the above newly named function. We have now
-mapped the original rte_acl_create symbol to the original function (but with a
-new name).
+in older builds, but now points to the above newly named function ``rte_acl_create_v21``.
+We have now mapped the original rte_acl_create symbol to the original function
+(but with a new name).
 
 Please see the section :ref:`Enabling versioning macros
 <enabling_versioning_macros>` to enable this macro in the meson/ninja build.
-Next, we need to create the new ``v22`` version of the symbol. We create a new
-function name, with the ``v22`` suffix, and implement it appropriately.
+
+Next, we need to create the new version of the symbol. We create a new
+function name and implement it appropriately, then wrap it in a call to ``RTE_DEFAULT_SYMBOL``.
 
 .. code-block:: c
 
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
+   RTE_DEFAULT_SYMBOL(22, int, rte_acl_create, (struct rte_acl_param *param, int debug))
    {
-        struct rte_acl_ctx *ctx = rte_acl_create_v21(param);
+        int ret = rte_acl_create_v21(param);
 
-        ctx->debug = debug;
+        if (debug) {
+        ...
+        }
 
-        return ctx;
+        return ret;
    }
 
-This code serves as our new API call. Its the same as our old call, but adds the
-new parameter in place. Next we need to map this function to the new default
-symbol ``rte_acl_create@DPDK_22``. To do this, immediately after the function,
-we add the BIND_DEFAULT_SYMBOL macro.
-
-.. code-block:: c
-
-   #include <rte_function_versioning.h>
-
-   ...
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
-
 The macro instructs the linker to create the new default symbol
-``rte_acl_create@DPDK_22``, which points to the above newly named function.
-
-We finally modify the prototype of the call in the public header file,
-such that it contains both versions of the symbol and the public API.
-
-.. code-block:: c
-
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v21(const struct rte_acl_param *param);
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug);
-
+``rte_acl_create@DPDK_22``, which points to the function named ``rte_acl_create_v22``
+(declared by the macro).
 
 And that's it, on the next shared library rebuild, there will be two versions of
 rte_acl_create, an old DPDK_21 version, used by previously built applications,
@@ -365,43 +321,10 @@ and a new DPDK_22 version, used by future built applications.
 .. note::
 
    **Before you leave**, please take care reviewing the sections on
-   :ref:`mapping static symbols <mapping_static_symbols>`,
    :ref:`enabling versioning macros <enabling_versioning_macros>`,
    and :ref:`ABI deprecation <abi_deprecation>`.
 
 
-.. _mapping_static_symbols:
-
-Mapping static symbols
-______________________
-
-Now we've taken what was a public symbol, and duplicated it into two uniquely
-and differently named symbols. We've then mapped each of those back to the
-public symbol ``rte_acl_create`` with different version tags. This only applies
-to dynamic linking, as static linking has no notion of versioning. That leaves
-this code in a position of no longer having a symbol simply named
-``rte_acl_create`` and a static build will fail on that missing symbol.
-
-To correct this, we can simply map a function of our choosing back to the public
-symbol in the static build with the ``MAP_STATIC_SYMBOL`` macro.  Generally the
-assumption is that the most recent version of the symbol is the one you want to
-map.  So, back in the C file where, immediately after ``rte_acl_create_v22`` is
-defined, we add this
-
-
-.. code-block:: c
-
-   struct rte_acl_ctx * __vsym
-   rte_acl_create_v22(const struct rte_acl_param *param, int debug)
-   {
-        ...
-   }
-   MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
-
-That tells the compiler that, when building a static library, any calls to the
-symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
-
-
 .. _enabling_versioning_macros:
 
 Enabling versioning macros
@@ -444,8 +367,8 @@ Assume we have an experimental function ``rte_acl_create`` as follows:
     * manipulate
     */
    __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   int
+   rte_acl_create(struct rte_acl_param *param)
    {
    ...
    }
@@ -478,8 +401,8 @@ When we promote the symbol to the stable ABI, we simply strip the
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   int
+   rte_acl_create(struct rte_acl_param *param)
    {
           ...
    }
@@ -519,26 +442,15 @@ and ``DPDK_22`` version nodes.
     * Create an acl context object for apps to
     * manipulate
     */
-   struct rte_acl_ctx *
-   rte_acl_create(const struct rte_acl_param *param)
+   RTE_DEFAULT_SYMBOL(22, int, rte_acl_create, (struct rte_acl_param *param))
    {
    ...
    }
 
-   __rte_experimental
-   struct rte_acl_ctx *
-   rte_acl_create_e(const struct rte_acl_param *param)
-   {
-      return rte_acl_create(param);
-   }
-   VERSION_SYMBOL_EXPERIMENTAL(rte_acl_create, _e);
-
-   struct rte_acl_ctx *
-   rte_acl_create_v22(const struct rte_acl_param *param)
+   RTE_VERSION_EXPERIMENTAL_SYMBOL(int, rte_acl_create, (struct rte_acl_param *param))
    {
       return rte_acl_create(param);
    }
-   BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
 
 In the map file, we map the symbol to both the ``EXPERIMENTAL``
 and ``DPDK_22`` version nodes.
@@ -564,13 +476,6 @@ and ``DPDK_22`` version nodes.
         rte_acl_create;
    };
 
-.. note::
-
-   Please note, similar to :ref:`symbol versioning <example_abi_macro_usage>`,
-   when aliasing to experimental you will also need to take care of
-   :ref:`mapping static symbols <mapping_static_symbols>`.
-
-
 .. _abi_deprecation:
 
 Deprecating part of a public API
@@ -616,10 +521,10 @@ Next remove the corresponding versioned export.
 
 .. code-block:: c
 
- -VERSION_SYMBOL(rte_acl_create, _v21, 21);
+ -RTE_VERSION_SYMBOL(21, int, rte_acl_create, (struct rte_acl_param *param))
 
 
-Note that the internal function definition could also be removed, but its used
+Note that the internal function definition must also be removed, but it is used
 in our example by the newer version ``v22``, so we leave it in place and declare
 it as static. This is a coding style choice.
 
@@ -663,16 +568,16 @@ In the case of our map above, it would transform to look as follows
         local: *;
  };
 
-Then any uses of BIND_DEFAULT_SYMBOL that pointed to the old node should be
+Then any uses of RTE_DEFAULT_SYMBOL that pointed to the old node should be
 updated to point to the new version node in any header files for all affected
 symbols.
 
 .. code-block:: c
 
- -BIND_DEFAULT_SYMBOL(rte_acl_create, _v21, 21);
- +BIND_DEFAULT_SYMBOL(rte_acl_create, _v22, 22);
+ -RTE_DEFAULT_SYMBOL(21, int, rte_acl_create, (struct rte_acl_param *param, int debug))
+ +RTE_DEFAULT_SYMBOL(22, int, rte_acl_create, (struct rte_acl_param *param, int debug))
 
-Lastly, any VERSION_SYMBOL macros that point to the old version nodes
+Lastly, any RTE_VERSION_SYMBOL macros that point to the old version nodes
 should be removed, taking care to preserve any code that is shared
 with the new version node.
 
lib/eal/include/rte_function_versioning.h +34 -62

122 lines not on this page · raw message

lib/net/net_crc.h +0 -15
index 4930e2f0b3..320b0edca8 100644
@@ -7,21 +7,6 @@
 
 #include "rte_net_crc.h"
 
-void
-rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg);
-
-struct rte_net_crc *
-rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
-	enum rte_net_crc_type type);
-
-uint32_t
-rte_net_crc_calc_v25(const void *data,
-	uint32_t data_len, enum rte_net_crc_type type);
-
-uint32_t
-rte_net_crc_calc_v26(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len);
-
 /*
  * Different implementations of CRC
  */
lib/net/rte_net_crc.c +7 -21
index 2fb3eec231..1943d46295 100644
@@ -345,8 +345,7 @@ handlers_init(enum rte_net_crc_alg alg)
 
 /* Public API */
 
-void
-rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
+RTE_VERSION_SYMBOL(25, void, rte_net_crc_set_alg, (enum rte_net_crc_alg alg))
 {
 	handlers = NULL;
 	if (max_simd_bitwidth == 0)
@@ -373,10 +372,9 @@ rte_net_crc_set_alg_v25(enum rte_net_crc_alg alg)
 	if (handlers == NULL)
 		handlers = handlers_scalar;
 }
-VERSION_SYMBOL(rte_net_crc_set_alg, _v25, 25);
 
-struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
-	enum rte_net_crc_type type)
+RTE_DEFAULT_SYMBOL(26, struct rte_net_crc *, rte_net_crc_set_alg, (enum rte_net_crc_alg alg,
+	enum rte_net_crc_type type))
 {
 	uint16_t max_simd_bitwidth;
 	struct rte_net_crc *crc;
@@ -414,20 +412,14 @@ struct rte_net_crc *rte_net_crc_set_alg_v26(enum rte_net_crc_alg alg,
 	}
 	return crc;
 }
-BIND_DEFAULT_SYMBOL(rte_net_crc_set_alg, _v26, 26);
-MAP_STATIC_SYMBOL(struct rte_net_crc *rte_net_crc_set_alg(
-	enum rte_net_crc_alg alg, enum rte_net_crc_type type),
-	rte_net_crc_set_alg_v26);
 
 void rte_net_crc_free(struct rte_net_crc *crc)
 {
 	rte_free(crc);
 }
 
-uint32_t
-rte_net_crc_calc_v25(const void *data,
-	uint32_t data_len,
-	enum rte_net_crc_type type)
+RTE_VERSION_SYMBOL(25, uint32_t, rte_net_crc_calc, (const void *data, uint32_t data_len,
+	enum rte_net_crc_type type))
 {
 	uint32_t ret;
 	rte_net_crc_handler f_handle;
@@ -437,18 +429,12 @@ rte_net_crc_calc_v25(const void *data,
 
 	return ret;
 }
-VERSION_SYMBOL(rte_net_crc_calc, _v25, 25);
 
-uint32_t
-rte_net_crc_calc_v26(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len)
+RTE_DEFAULT_SYMBOL(26, uint32_t, rte_net_crc_calc, (const struct rte_net_crc *ctx,
+	const void *data, const uint32_t data_len))
 {
 	return handlers_dpdk26[ctx->alg].f[ctx->type](data, data_len);
 }
-BIND_DEFAULT_SYMBOL(rte_net_crc_calc, _v26, 26);
-MAP_STATIC_SYMBOL(uint32_t rte_net_crc_calc(const struct rte_net_crc *ctx,
-	const void *data, const uint32_t data_len),
-	rte_net_crc_calc_v26);
 
 /* Call initialisation helpers for all crc algorithm handlers */
 RTE_INIT(rte_net_crc_init)
Signature · 1 line
2.48.1
#37 lore raw

RFC v4 4/8 buildtools: display version when listing symbols

In reply to David Marchand

Display the version when a symbol was introduced.
This is needed for scripting the conversion from static to dynamically generated version maps.
It is also useful when listing experimental symbols.

---
 buildtools/map-list-symbol.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
buildtools/map-list-symbol.sh +1 -1
index 43f276c05f..eb98451d8e 100755
@@ -73,7 +73,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1;
+				print "'$file' "current_section" "$1" "current_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
Signature · 1 line
2.48.1
#38 lore raw

RFC v4 5/8 build: generate symbol maps

In reply to David Marchand

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v3:
- polished python,
- fixed doc updates not belonging to this patch,
- renamed map files,
- changed msvc->mslinker as link mode,
- added parsing of AVX sources,

Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

---
 MAINTAINERS                                |   2 +
 buildtools/gen-version-map.py              | 106 ++++++++++
 buildtools/map-list-symbol.sh              |  10 +-
 buildtools/meson.build                     |   1 +
 config/meson.build                         |   4 +-
 config/rte_export.h                        |  16 ++
 devtools/check-symbol-change.py            |  90 +++++++++
 devtools/check-symbol-maps.sh              |  14 --
 devtools/checkpatches.sh                   |   2 +-
 doc/guides/contributing/abi_versioning.rst | 221 ++-------------------
 drivers/meson.build                        |  96 +++++----
 drivers/version.map                        |   3 -
 lib/meson.build                            |  89 ++++++---
 13 files changed, 363 insertions(+), 291 deletions(-)
 create mode 100755 buildtools/gen-version-map.py
 create mode 100644 config/rte_export.h
 create mode 100755 devtools/check-symbol-change.py
 delete mode 100644 drivers/version.map
MAINTAINERS +2 -0
index 82f6e2f917..63754e76e9 100644
@@ -95,6 +95,7 @@ F: devtools/check-maintainers.sh
 F: devtools/check-forbidden-tokens.awk
 F: devtools/check-git-log.sh
 F: devtools/check-spdx-tag.sh
+F: devtools/check-symbol-change.py
 F: devtools/check-symbol-change.sh
 F: devtools/check-symbol-maps.sh
 F: devtools/checkpatches.sh
@@ -127,6 +128,7 @@ F: config/
 F: buildtools/check-symbols.sh
 F: buildtools/chkincs/
 F: buildtools/call-sphinx-build.py
+F: buildtools/gen-version-map.py
 F: buildtools/get-cpu-count.py
 F: buildtools/get-numa-count.py
 F: buildtools/list-dir-globs.py
buildtools/gen-version-map.py new file +106 -0

106 lines not on this page · raw message

buildtools/map-list-symbol.sh +7 -3
index eb98451d8e..0829df4be5 100755
@@ -62,10 +62,14 @@ for file in $@; do
 		if (current_section == "") {
 			next;
 		}
+		symbol_version = current_version
+		if (/^[^}].*[^:*]; # added in /) {
+			symbol_version = $5
+		}
 		if ("'$version'" != "") {
-			if ("'$version'" == "unset" && current_version != "") {
+			if ("'$version'" == "unset" && symbol_version != "") {
 				next;
-			} else if ("'$version'" != "unset" && "'$version'" != current_version) {
+			} else if ("'$version'" != "unset" && "'$version'" != symbol_version) {
 				next;
 			}
 		}
@@ -73,7 +77,7 @@ for file in $@; do
 		if ("'$symbol'" == "all" || $1 == "'$symbol'") {
 			ret = 0;
 			if ("'$quiet'" == "") {
-				print "'$file' "current_section" "$1" "current_version;
+				print "'$file' "current_section" "$1" "symbol_version;
 			}
 			if ("'$symbol'" != "all") {
 				exit 0;
buildtools/meson.build +1 -0
index 4e2c1217a2..b745e9afa4 100644
@@ -16,6 +16,7 @@ else
     py3 = ['meson', 'runpython']
 endif
 echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
+gen_version_map = py3 + files('gen-version-map.py')
 list_dir_globs = py3 + files('list-dir-globs.py')
 map_to_win_cmd = py3 + files('map_to_win.py')
 sphinx_wrapper = py3 + files('call-sphinx-build.py')
config/meson.build +3 -1
index f31fef216c..f2d5401ea2 100644
@@ -300,11 +300,13 @@ if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false
     dpdk_extra_ldflags += '-latomic'
 endif
 
-# add -include rte_config to cflags
+# add -include some headers to cflags
 if is_ms_compiler
     add_project_arguments('/FI', 'rte_config.h', language: 'c')
+    add_project_arguments('/FI', 'rte_export.h', language: 'c')
 else
     add_project_arguments('-include', 'rte_config.h', language: 'c')
+    add_project_arguments('-include', 'rte_export.h', language: 'c')
 endif
 
 # enable extra warnings and disable any unwanted warnings
config/rte_export.h new file +16 -0
new file mode 100644
index 0000000000..83d871fe11
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2025 Red Hat, Inc.
+ */
+
+#ifndef RTE_EXPORT_H
+#define RTE_EXPORT_H
+
+/* *Internal* macros for exporting symbols, used by the build system.
+ * For RTE_EXPORT_EXPERIMENTAL_SYMBOL, ver indicates the
+ * version this symbol was introduced in.
+ */
+#define RTE_EXPORT_EXPERIMENTAL_SYMBOL(a, ver)
+#define RTE_EXPORT_INTERNAL_SYMBOL(a)
+#define RTE_EXPORT_SYMBOL(a)
+
+#endif /* RTE_EXPORT_H */
devtools/check-symbol-change.py new file +90 -0

90 lines not on this page · raw message

devtools/check-symbol-maps.sh +0 -14
index 6121f78ec6..fcd3931e5d 100755
@@ -60,20 +60,6 @@ if [ -n "$local_miss_maps" ] ; then
     ret=1
 fi
 
-find_empty_maps ()
-{
-    for map in $@ ; do
-        [ $(buildtools/map-list-symbol.sh $map | wc -l) != '0' ] || echo $map
-    done
-}
-
-empty_maps=$(find_empty_maps $@)
-if [ -n "$empty_maps" ] ; then
-    echo "Found empty maps:"
-    echo "$empty_maps"
-    ret=1
-fi
-
 find_bad_format_maps ()
 {
     abi_version=$(cut -d'.' -f 1 ABI_VERSION)
devtools/checkpatches.sh +1 -1
index c9088bb403..9180c2b070 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
doc/guides/contributing/abi_versioning.rst +20 -201

333 lines not on this page · raw message

drivers/meson.build +59 -37

121 lines not on this page · raw message

drivers/version.map deleted +0 -3
deleted file mode 100644
index 17cc97bda6..0000000000
@@ -1,3 +0,0 @@
-DPDK_25 {
-	local: *;
-};
lib/meson.build +58 -31

117 lines not on this page · raw message

Signature · 1 line
2.48.1
#39 lore raw

Re: [RFC v4 5/8] build: generate symbol maps

Quoted 23 lines · On Mon, 17 Mar 2025 16:43:01 +0100 David Marchand <[email protected]>…

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v3:
- polished python,
- fixed doc updates not belonging to this patch,
- renamed map files,
- changed msvc->mslinker as link mode,
- added parsing of AVX sources,

Quoted 4 lines

Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

Looks like a good idea.
Is there any way to make symbols in drivers local by default? Right now if a driver defines a non-static function it will be visible in other code when DPDK application is statically linked.

This can lead to problems where exports are missing or accidental name conflicts. Gcc has -fvisiblity=hidden not sure about others.

#40 lore raw

Re: [RFC v4 5/8] build: generate symbol maps

Quoted 32 lines · Stephen Hemminger
Quoted 23 lines · On Mon, 17 Mar 2025 16:43:01 +0100 David Marchand <[email protected]>…

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v3:
- polished python,
- fixed doc updates not belonging to this patch,
- renamed map files,
- changed msvc->mslinker as link mode,
- added parsing of AVX sources,

Quoted 4 lines

Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

Quoted 7 lines

Looks like a good idea.
Is there any way to make symbols in drivers local by default? Right now if a driver defines a non-static function it will be visible in other code when DPDK application is statically linked.

This can lead to problems where exports are missing or accidental name conflicts. Gcc has -fvisiblity=hidden not sure about others.

This could be interesting, though it is a step further the current series.

- For clang, I would expect -fvisibility is supported.

- There is one warning I am not too fond of, in gcc manual:
Be aware that headers from outside your project, in
particular system headers and headers from any other library you use, may not be expecting to be compiled with visibility other than the default. You may need to explicitly
say "#pragma GCC visibility push(default)" before including
any such headers.

I also see that this requires annotating symbol at the declaration level. That would require to parse headers instead of sources (which seems more appropriate as we are talking about symbol exports).

I have some doubt though wrt base driver code, that we are not supposed to update...
The current RTE_EXPORT_* macros of this series were not doing anything to the symbol themselves, and could be located anywhere as long as meson could parse them.

- Not sure what the default for MSVC is, André?

Signature · 1 line
David Marchand
#41 lore raw

Re: [RFC v4 5/8] build: generate symbol maps

Quoted 59 lines · David Marchand
Quoted 32 lines · Stephen Hemminger
Quoted 23 lines · On Mon, 17 Mar 2025 16:43:01 +0100 David Marchand <[email protected]>…

Rather than maintain a file in parallel of the code, symbols to be exported can be marked with a token RTE_EXPORT_*SYMBOL.

From those marks, the build framework generates map files only for symbols actually compiled (which means that the WINDOWS_NO_EXPORT hack becomes unnecessary).

The build framework directly creates a map file in the format that the linker expects (rather than converting from GNU linker to MSVC linker).

Empty maps are allowed again as a replacement for drivers/version.map.

The symbol check is updated to only support the new format.

---
Changes since RFC v3:
- polished python,
- fixed doc updates not belonging to this patch,
- renamed map files,
- changed msvc->mslinker as link mode,
- added parsing of AVX sources,

Quoted 4 lines

Changes since RFC v2:
- because of MSVC limitations wrt macro passed via cmdline, used an internal header for defining RTE_EXPORT_* macros,
- updated documentation and tooling,

Quoted 7 lines

Looks like a good idea.
Is there any way to make symbols in drivers local by default? Right now if a driver defines a non-static function it will be visible in other code when DPDK application is statically linked.

This can lead to problems where exports are missing or accidental name conflicts. Gcc has -fvisiblity=hidden not sure about others.

This could be interesting, though it is a step further the current series.

- For clang, I would expect -fvisibility is supported.

- There is one warning I am not too fond of, in gcc manual:
Be aware that headers from outside your project, in
particular system headers and headers from any other library you use, may not be expecting to be compiled with visibility other than the default. You may need to explicitly
say "#pragma GCC visibility push(default)" before including
any such headers.

I also see that this requires annotating symbol at the declaration level. That would require to parse headers instead of sources (which seems more appropriate as we are talking about symbol exports).

Quoted 9 lines

I have some doubt though wrt base driver code, that we are not supposed to update...
The current RTE_EXPORT_* macros of this series were not doing anything to the symbol themselves, and could be located anywhere as long as meson could parse them.

- Not sure what the default for MSVC is, André?

My understanding is that "-fvisiblity=hidden" only has effect on dynamic linking. For static linking a similar goal can be achieved with ld's option --exclude-libs
(https://sourceware.org/binutils/docs/ld/Options.html).

The default for msvc is hidden. Only functions that are explicitly exported with __declspec(dllexport) modifier or through a .def file are visible externally.

It seems this matches exactly the behavior you would get by using -fvisiblity=hidden with gcc/clang.
--
Andre Muezerie

Quoted 3 lines
Signature · 2 lines
-- 
David Marchand