1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
7 * Definitions of DPDK version numbers
10 #ifndef _RTE_VERSION_H_
11 #define _RTE_VERSION_H_
20 #include <rte_common.h>
23 * Macro to compute a version number usable for comparisons
25 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
28 * All version numbers in one to compare with RTE_VERSION_NUM()
30 #define RTE_VERSION RTE_VERSION_NUM( \
37 * Function returning version string
41 static inline const char *
44 static char version[32];
47 if (strlen(RTE_VER_SUFFIX) == 0)
48 snprintf(version, sizeof(version), "%s %d.%02d.%d",
54 snprintf(version, sizeof(version), "%s %d.%02d.%d%s%d",
68 #endif /* RTE_VERSION_H */