Some functions were introduced in DPDK 21.05 to query the version parts
(prefix, year, month, minor, suffix, release) at runtime.
Per guidelines, these new public functions must be marked with
__rte_experimental and ABI versioned as EXPERIMENTAL.
Fixes:
5b637a848195 ("eal: fix querying DPDK version at runtime")
Cc: stable@dpdk.org
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
#include <string.h>
#include <stdio.h>
#include <rte_common.h>
+#include <rte_compat.h>
/**
* Macro to compute a version number usable for comparisons
/**
* Function to return DPDK version prefix string
*/
+__rte_experimental
const char *rte_version_prefix(void);
/**
* Function to return DPDK version year
*/
+__rte_experimental
unsigned int rte_version_year(void);
/**
* Function to return DPDK version month
*/
+__rte_experimental
unsigned int rte_version_month(void);
/**
* Function to return DPDK minor version number
*/
+__rte_experimental
unsigned int rte_version_minor(void);
/**
* Function to return DPDK version suffix for any release candidates
*/
+__rte_experimental
const char *rte_version_suffix(void);
/**
* Function to return DPDK version release candidate value
*/
+__rte_experimental
unsigned int rte_version_release(void);
/**
rte_uuid_parse;
rte_uuid_unparse;
rte_version;
- rte_version_minor;
- rte_version_month;
- rte_version_prefix;
- rte_version_release;
- rte_version_suffix;
- rte_version_year;
rte_vfio_clear_group;
rte_vfio_container_create;
rte_vfio_container_destroy;
rte_thread_tls_key_delete;
rte_thread_tls_value_get;
rte_thread_tls_value_set;
+
+ # added in 21.05
+ rte_version_minor;
+ rte_version_month;
+ rte_version_prefix;
+ rte_version_release;
+ rte_version_suffix;
+ rte_version_year;
};
INTERNAL {