DPDK: Data Plane Development Kit

18.02.0-rc0
rte_version.h File Reference
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <rte_common.h>

Go to the source code of this file.

Macros

#define RTE_VER_PREFIX   "DPDK"
#define RTE_VER_YEAR   18
#define RTE_VER_MONTH   02
#define RTE_VER_MINOR   0
#define RTE_VER_SUFFIX   "-rc"
#define RTE_VER_RELEASE   0
#define RTE_VERSION_NUM(a, b, c, d)   ((a) << 24 | (b) << 16 | (c) << 8 | (d))
#define RTE_VERSION

Functions

static const char * rte_version (void)

Detailed Description

Definitions of DPDK version numbers

Definition in file rte_version.h.

Macro Definition Documentation

#define RTE_VER_PREFIX   "DPDK"

String that appears before the version number

Definition at line 54 of file rte_version.h.

#define RTE_VER_YEAR   18

Major version/year number i.e. the yy in yy.mm.z

Definition at line 59 of file rte_version.h.

#define RTE_VER_MONTH   02

Minor version/month number i.e. the mm in yy.mm.z

Definition at line 64 of file rte_version.h.

#define RTE_VER_MINOR   0

Patch level number i.e. the z in yy.mm.z

Definition at line 69 of file rte_version.h.

#define RTE_VER_SUFFIX   "-rc"

Extra string to be appended to version number

Definition at line 74 of file rte_version.h.

#define RTE_VER_RELEASE   0

Patch release number 0-15 = release candidates 16 = release

Definition at line 81 of file rte_version.h.

#define RTE_VERSION_NUM (   a,
  b,
  c,
 
)    ((a) << 24 | (b) << 16 | (c) << 8 | (d))

Macro to compute a version number usable for comparisons

Definition at line 86 of file rte_version.h.

#define RTE_VERSION
Value:

All version numbers in one to compare with RTE_VERSION_NUM()

Definition at line 91 of file rte_version.h.

Function Documentation

static const char* rte_version ( void  )
inlinestatic

Function returning version string

Returns
string
Examples:
examples/ethtool/lib/rte_ethtool.c.

Definition at line 103 of file rte_version.h.