DPDK  19.08.2
Macros | Functions
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_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_VERSION_NUM (   a,
  b,
  c,
 
)    ((a) << 24 | (b) << 16 | (c) << 8 | (d))

Macro to compute a version number usable for comparisons

Definition at line 25 of file rte_version.h.

#define RTE_VERSION
Value:
RTE_VER_YEAR, \
RTE_VER_MONTH, \
RTE_VER_MINOR, \
RTE_VER_RELEASE)
#define RTE_VERSION_NUM(a, b, c, d)
Definition: rte_version.h:25

All version numbers in one to compare with RTE_VERSION_NUM()

Definition at line 30 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 42 of file rte_version.h.