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( \
32 rte_version_month(), \
33 rte_version_minor(), \
34 rte_version_release())
37 * Function to return DPDK version prefix string
39 const char *rte_version_prefix(void);
42 * Function to return DPDK version year
44 unsigned int rte_version_year(void);
47 * Function to return DPDK version month
49 unsigned int rte_version_month(void);
52 * Function to return DPDK minor version number
54 unsigned int rte_version_minor(void);
57 * Function to return DPDK version suffix for any release candidates
59 const char *rte_version_suffix(void);
62 * Function to return DPDK version release candidate value
64 unsigned int rte_version_release(void);
67 * Function returning version string
71 const char *rte_version(void);
77 #endif /* RTE_VERSION_H */