FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
defs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define vlib_foreach_rx_tx(v)   for (v = 0; v < VLIB_N_RX_TX; v++)
 
#define VLIB_N_DIR   VLIB_N_RX_TX
 
#define FOREACH_VLIB_DIR(_dir)   for (_dir = VLIB_RX; _dir <= VLIB_TX; _dir++)
 

Typedefs

typedef vlib_rx_or_tx_t vlib_dir_t
 

Enumerations

enum  vlib_rx_or_tx_t { VLIB_RX, VLIB_TX, VLIB_N_RX_TX = 2 }
 
enum  vlib_read_or_write_t { VLIB_READ, VLIB_WRITE }
 
enum  vlib_up_or_down_t { VLIB_DOWN = 0, VLIB_UP = 1 }
 
enum  vlib_enable_or_disable_t { VLIB_DISABLE = 0, VLIB_ENABLE = 1 }
 

Macro Definition Documentation

◆ FOREACH_VLIB_DIR

#define FOREACH_VLIB_DIR (   _dir)    for (_dir = VLIB_RX; _dir <= VLIB_TX; _dir++)

Definition at line 58 of file defs.h.

◆ vlib_foreach_rx_tx

#define vlib_foreach_rx_tx (   v)    for (v = 0; v < VLIB_N_RX_TX; v++)

Definition at line 52 of file defs.h.

◆ VLIB_N_DIR

#define VLIB_N_DIR   VLIB_N_RX_TX

Definition at line 57 of file defs.h.

Typedef Documentation

◆ vlib_dir_t

Definition at line 55 of file defs.h.

Enumeration Type Documentation

◆ vlib_enable_or_disable_t

Enumerator
VLIB_DISABLE 
VLIB_ENABLE 

Definition at line 76 of file defs.h.

◆ vlib_read_or_write_t

Enumerator
VLIB_READ 
VLIB_WRITE 

Definition at line 62 of file defs.h.

◆ vlib_rx_or_tx_t

Enumerator
VLIB_RX 
VLIB_TX 
VLIB_N_RX_TX 

Definition at line 44 of file defs.h.

◆ vlib_up_or_down_t

Enumerator
VLIB_DOWN 
VLIB_UP 

Definition at line 69 of file defs.h.