DPDK  24.07.0
Macros | Functions
rte_version.h File Reference
#include <string.h>
#include <stdio.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

const char * rte_version_prefix (void)
 
unsigned int rte_version_year (void)
 
unsigned int rte_version_month (void)
 
unsigned int rte_version_minor (void)
 
const char * rte_version_suffix (void)
 
unsigned int rte_version_release (void)
 
const char * rte_version (void)
 

Detailed Description

Definitions of DPDK version numbers

Definition in file rte_version.h.

Macro Definition Documentation

◆ RTE_VERSION_NUM

#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 23 of file rte_version.h.

◆ RTE_VERSION

#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:23

All version numbers in one to compare with RTE_VERSION_NUM()

Definition at line 28 of file rte_version.h.

Function Documentation

◆ rte_version_prefix()

const char* rte_version_prefix ( void  )

Function to return DPDK version prefix string

◆ rte_version_year()

unsigned int rte_version_year ( void  )

Function to return DPDK version year

◆ rte_version_month()

unsigned int rte_version_month ( void  )

Function to return DPDK version month

◆ rte_version_minor()

unsigned int rte_version_minor ( void  )

Function to return DPDK minor version number

◆ rte_version_suffix()

const char* rte_version_suffix ( void  )

Function to return DPDK version suffix for any release candidates

◆ rte_version_release()

unsigned int rte_version_release ( void  )

Function to return DPDK version release candidate value

◆ rte_version()

const char* rte_version ( void  )

Function returning version string

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