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>
21 #include <rte_compat.h>
24 * Macro to compute a version number usable for comparisons
26 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
29 * All version numbers in one to compare with RTE_VERSION_NUM()
31 #define RTE_VERSION RTE_VERSION_NUM( \
38 * Function to return DPDK version prefix string
41 const char *rte_version_prefix(void);
44 * Function to return DPDK version year
47 unsigned int rte_version_year(void);
50 * Function to return DPDK version month
53 unsigned int rte_version_month(void);
56 * Function to return DPDK minor version number
59 unsigned int rte_version_minor(void);
62 * Function to return DPDK version suffix for any release candidates
65 const char *rte_version_suffix(void);
68 * Function to return DPDK version release candidate value
71 unsigned int rte_version_release(void);
74 * Function returning version string
78 const char *rte_version(void);
84 #endif /* RTE_VERSION_H */