eal: fix version macro
The macro RTE_VERSION was broken since updated with function calls. It is a build-time version number, and must be built with macros. For a run-time version number, there is the function rte_version(). Fixes: 5b637a848195 ("eal: fix querying DPDK version at runtime") Cc: stable@dpdk.org Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
7a04a4f67d
commit
6437522079
@ -28,10 +28,10 @@ extern "C" {
|
||||
* All version numbers in one to compare with RTE_VERSION_NUM()
|
||||
*/
|
||||
#define RTE_VERSION RTE_VERSION_NUM( \
|
||||
rte_version_year(), \
|
||||
rte_version_month(), \
|
||||
rte_version_minor(), \
|
||||
rte_version_release())
|
||||
RTE_VER_YEAR, \
|
||||
RTE_VER_MONTH, \
|
||||
RTE_VER_MINOR, \
|
||||
RTE_VER_RELEASE)
|
||||
|
||||
/**
|
||||
* Function to return DPDK version prefix string
|
||||
|
Loading…
x
Reference in New Issue
Block a user