eal/windows: export version function
authorWilliam Tu <u9012063@gmail.com>
Thu, 5 Aug 2021 17:48:19 +0000 (17:48 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 30 Sep 2021 20:47:23 +0000 (22:47 +0200)
When OVS inits, it calls rte_version to get the DPDK's version.
The patch fixes the error below by exposing rte_version symbol.
libopenvswitch.a(dpdk.c.obj) : error LNK2019: unresolved external symbol
rte_version referenced in function dpdk_init

Fixes: 5b637a848195 ("eal: fix querying DPDK version at runtime")
Cc: stable@dpdk.org
Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/version.map

index b436359..d800090 100644 (file)
@@ -267,7 +267,7 @@ DPDK_22 {
        rte_uuid_is_null; # WINDOWS_NO_EXPORT
        rte_uuid_parse; # WINDOWS_NO_EXPORT
        rte_uuid_unparse; # WINDOWS_NO_EXPORT
-       rte_version; # WINDOWS_NO_EXPORT
+       rte_version;
        rte_vfio_clear_group; # WINDOWS_NO_EXPORT
        rte_vfio_container_create; # WINDOWS_NO_EXPORT
        rte_vfio_container_destroy; # WINDOWS_NO_EXPORT