summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2012-12-20 00:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:45 +0200
commit594f3c1cea092afc62cd5d4c867968cff595542c (patch)
tree75d0a37d1ca2dfac6e749da5e4a729e62604a65a
parent1d8d954b80b933a45d0f6a331653feb28e163246 (diff)
downloaddpdk-594f3c1cea092afc62cd5d4c867968cff595542c.zip
dpdk-594f3c1cea092afc62cd5d4c867968cff595542c.tar.gz
dpdk-594f3c1cea092afc62cd5d4c867968cff595542c.tar.xz
set version to 1.3.0v1.3.0r0
Signed-off-by: Intel
-rw-r--r--lib/librte_eal/common/include/rte_version.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/lib/librte_eal/common/include/rte_version.h b/lib/librte_eal/common/include/rte_version.h
index 2463f75..045bef7 100644
--- a/lib/librte_eal/common/include/rte_version.h
+++ b/lib/librte_eal/common/include/rte_version.h
@@ -48,6 +48,11 @@ extern "C" {
#include <rte_common.h>
/**
+ * String that appears before the version number
+ */
+#define RTE_VER_PREFIX "RTE"
+
+/**
* Major version number i.e. the x in x.y.z
*/
#define RTE_VER_MAJOR 1
@@ -55,14 +60,18 @@ extern "C" {
/**
* Minor version number i.e. the y in x.y.z
*/
-#define RTE_VER_MINOR 2
+#define RTE_VER_MINOR 3
/**
* Patch level number i.e. the z in x.y.z
*/
-#define RTE_VER_PATCH_LEVEL 3
+#define RTE_VER_PATCH_LEVEL 0
-#define RTE_VER_PREFIX "RTE"
+/**
+ * Extra string to be appended to version number,
+ * for example: pre1, EAR, final etc.
+ */
+#define RTE_VER_SUFFIX ""
/**
* Function returning string of version number: "RTE x.y.z"
@@ -71,10 +80,17 @@ extern "C" {
*/
static inline const char *
rte_version(void) {
- return RTE_VER_PREFIX" "
- RTE_STR(RTE_VER_MAJOR)"."
- RTE_STR(RTE_VER_MINOR)"."
- RTE_STR(RTE_VER_PATCH_LEVEL);
+ if (sizeof(RTE_VER_SUFFIX) > sizeof(""))
+ return RTE_VER_PREFIX" "
+ RTE_STR(RTE_VER_MAJOR)"."
+ RTE_STR(RTE_VER_MINOR)"."
+ RTE_STR(RTE_VER_PATCH_LEVEL)
+ "-"RTE_VER_SUFFIX;
+ else
+ return RTE_VER_PREFIX" "
+ RTE_STR(RTE_VER_MAJOR)"."
+ RTE_STR(RTE_VER_MINOR)"."
+ RTE_STR(RTE_VER_PATCH_LEVEL);
}
#ifdef __cplusplus