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

__rte_experimental const char * rte_version_prefix (void)
 
__rte_experimental unsigned int rte_version_year (void)
 
__rte_experimental unsigned int rte_version_month (void)
 
__rte_experimental unsigned int rte_version_minor (void)
 
__rte_experimental const char * rte_version_suffix (void)
 
__rte_experimental 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 24 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:24

All version numbers in one to compare with RTE_VERSION_NUM()

Definition at line 29 of file rte_version.h.

Function Documentation

◆ rte_version_prefix()

__rte_experimental const char* rte_version_prefix ( void  )

Function to return DPDK version prefix string

◆ rte_version_year()

__rte_experimental unsigned int rte_version_year ( void  )

Function to return DPDK version year

◆ rte_version_month()

__rte_experimental unsigned int rte_version_month ( void  )

Function to return DPDK version month

◆ rte_version_minor()

__rte_experimental unsigned int rte_version_minor ( void  )

Function to return DPDK minor version number

◆ rte_version_suffix()

__rte_experimental const char* rte_version_suffix ( void  )

Function to return DPDK version suffix for any release candidates

◆ rte_version_release()

__rte_experimental 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.