FD.io VPP  v19.08.3-2-gbabecb413
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 maintaining the per-worker thread data for BIER lookups. More...
 
struct  bier_lookup_trace_t_
 Packet trace record 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 maintaining the per-worker thread data for BIER lookups. More...
 
typedef struct bier_lookup_trace_t_ bier_lookup_trace_t
 Packet trace record 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

◆ bier_error [1/2]

#define bier_error (   n,
 
)    s,

Definition at line 61 of file bier_lookup.c.

◆ bier_error [2/2]

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

Definition at line 61 of file bier_lookup.c.

◆ foreach_bier_lookup_next

#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

◆ bier_lookup_main_t

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

◆ bier_lookup_trace_t

Packet trace record for a BIER lookup.

Enumeration Type Documentation

◆ bier_lookup_error_t

Enumerator
BIER_LOOKUP_N_ERROR 

Definition at line 60 of file bier_lookup.c.

◆ bier_lookup_next_t

Enumerator
BIER_LOOKUP_N_NEXT 

Definition at line 53 of file bier_lookup.c.

Function Documentation

◆ bier_lookup()

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:

◆ bier_lookup_module_init()

clib_error_t* bier_lookup_module_init ( vlib_main_t vm)

Definition at line 347 of file bier_lookup.c.

+ Here is the call graph for this function:

◆ format_bier_lookup_trace()

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

Definition at line 316 of file bier_lookup.c.

+ Here is the call graph for this function:

Variable Documentation

◆ bier_lookup_error_strings

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

bier_lookup_main_t bier_lookup_main
static

Single instance of the lookup main.

Definition at line 38 of file bier_lookup.c.

◆ bier_lookup_node

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",
},
}
unsigned int u32
Definition: types.h:88
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:316
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.