FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
bier_lookup.c File Reference
+ Include dependency graph for bier_lookup.c:

Go to the source code of this file.

Data Structures

struct  bier_lookup_main_t_
 Struct maintining the per-worker thread data for BIER lookups. More...
 
struct  bier_lookup_trace_t_
 Packet trace recoed for a BIER lookup. More...
 

Macros

#define bier_error(n, s)   s,
 
#define foreach_bier_lookup_next
 
#define bier_error(n, s)   BIER_LOOKUP_ERROR_##n,
 

Typedefs

typedef struct bier_lookup_main_t_ bier_lookup_main_t
 Struct maintining the per-worker thread data for BIER lookups. More...
 
typedef struct bier_lookup_trace_t_ bier_lookup_trace_t
 Packet trace recoed for a BIER lookup. More...
 

Enumerations

enum  bier_lookup_next_t { BIER_LOOKUP_N_NEXT }
 
enum  bier_lookup_error_t { BIER_LOOKUP_N_ERROR }
 

Functions

static uword bier_lookup (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_bier_lookup_trace (u8 *s, va_list *args)
 
clib_error_tbier_lookup_module_init (vlib_main_t *vm)
 

Variables

static bier_lookup_main_t bier_lookup_main
 Single instance of the lookup main. More...
 
static char * bier_lookup_error_strings []
 
vlib_node_registration_t bier_lookup_node
 (constructor) VLIB_REGISTER_NODE (bier_lookup_node) More...
 

Macro Definition Documentation

#define bier_error (   n,
 
)    s,

Definition at line 61 of file bier_lookup.c.

#define bier_error (   n,
 
)    BIER_LOOKUP_ERROR_##n,

Definition at line 61 of file bier_lookup.c.

#define foreach_bier_lookup_next
Value:
_(DROP, "bier-drop") \
_(OUTPUT, "bier-output")
DROP
Definition: error.def:41

Definition at line 49 of file bier_lookup.c.

Typedef Documentation

Struct maintining the per-worker thread data for BIER lookups.

Packet trace recoed for a BIER lookup.

Enumeration Type Documentation

Enumerator
BIER_LOOKUP_N_ERROR 

Definition at line 60 of file bier_lookup.c.

Enumerator
BIER_LOOKUP_N_NEXT 

Definition at line 53 of file bier_lookup.c.

Function Documentation

static uword bier_lookup ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 80 of file bier_lookup.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* bier_lookup_module_init ( vlib_main_t vm)

Definition at line 348 of file bier_lookup.c.

+ Here is the call graph for this function:

static u8* format_bier_lookup_trace ( u8 s,
va_list *  args 
)
static

Definition at line 317 of file bier_lookup.c.

+ Here is the call graph for this function:

Variable Documentation

char* bier_lookup_error_strings[]
static
Initial value:
= {
#define bier_error(n,s)
}

Definition at line 40 of file bier_lookup.c.

bier_lookup_main_t bier_lookup_main
static

Single instance of the lookup main.

Definition at line 38 of file bier_lookup.c.

vlib_node_registration_t bier_lookup_node
Initial value:
= {
.function = bier_lookup,
.name = "bier-lookup",
.vector_size = sizeof (u32),
.n_errors = BIER_LOOKUP_N_ERROR,
.error_strings = bier_lookup_error_strings,
.format_trace = format_bier_lookup_trace,
.n_next_nodes = BIER_LOOKUP_N_NEXT,
.next_nodes = {
[BIER_LOOKUP_NEXT_DROP] = "bier-drop",
[BIER_LOOKUP_NEXT_OUTPUT] = "bier-output",
},
}
static uword bier_lookup(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: bier_lookup.c:80
static u8 * format_bier_lookup_trace(u8 *s, va_list *args)
Definition: bier_lookup.c:317
unsigned int u32
Definition: types.h:88
static char * bier_lookup_error_strings[]
Definition: bier_lookup.c:40

(constructor) VLIB_REGISTER_NODE (bier_lookup_node)

Definition at line 67 of file bier_lookup.c.