FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
bier_input.c File Reference
+ Include dependency graph for bier_input.c:

Go to the source code of this file.

Data Structures

struct  bier_input_trace_t_
 Packet trace record for BIER input. More...
 

Macros

#define bier_error(n, s)   BIER_INPUT_ERROR_##n,
 
#define bier_error(n, s)   s,
 

Typedefs

typedef enum bier_input_next_t_ bier_input_next_t
 
typedef struct bier_input_trace_t_ bier_input_trace_t
 Packet trace record for BIER input. More...
 

Enumerations

enum  bier_input_error_t { BIER_INPUT_N_ERROR, BIER_INPUT_N_ERROR }
 
enum  bier_input_next_t_ { BIER_INPUT_NEXT_BIER_LOOKUP, BIER_INPUT_NEXT_DROP, BIER_INPUT_N_NEXT }
 

Functions

static int bier_hdr_validate (bier_hdr_t *bier_hdr, bier_hdr_len_id_t expected_length)
 
static uword bier_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_bier_input_trace (u8 *s, va_list *args)
 

Variables

static char * bier_error_strings []
 
vlib_node_registration_t bier_input_node
 (constructor) VLIB_REGISTER_NODE (bier_input_node) More...
 

Macro Definition Documentation

◆ bier_error [1/2]

#define bier_error (   n,
 
)    BIER_INPUT_ERROR_##n,

Definition at line 22 of file bier_input.c.

◆ bier_error [2/2]

#define bier_error (   n,
 
)    s,

Definition at line 22 of file bier_input.c.

Typedef Documentation

◆ bier_input_next_t

◆ bier_input_trace_t

Packet trace record for BIER input.

Enumeration Type Documentation

◆ bier_input_error_t

Enumerator
BIER_INPUT_N_ERROR 
BIER_INPUT_N_ERROR 

Definition at line 21 of file bier_input.c.

◆ bier_input_next_t_

Enumerator
BIER_INPUT_NEXT_BIER_LOOKUP 
BIER_INPUT_NEXT_DROP 
BIER_INPUT_N_NEXT 

Definition at line 34 of file bier_input.c.

Function Documentation

◆ bier_hdr_validate()

static int bier_hdr_validate ( bier_hdr_t bier_hdr,
bier_hdr_len_id_t  expected_length 
)
static

Definition at line 52 of file bier_input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bier_input()

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

Definition at line 69 of file bier_input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_bier_input_trace()

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

Definition at line 148 of file bier_input.c.

+ Here is the call graph for this function:

Variable Documentation

◆ bier_error_strings

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

Definition at line 28 of file bier_input.c.

◆ bier_input_node

vlib_node_registration_t bier_input_node
Initial value:
= {
.function = bier_input,
.name = "bier-input",
.vector_size = sizeof (u32),
.n_errors = BIER_INPUT_N_ERROR,
.error_strings = bier_error_strings,
.n_next_nodes = BIER_INPUT_N_NEXT,
.next_nodes = {
[BIER_INPUT_NEXT_BIER_LOOKUP] = "bier-lookup",
[BIER_INPUT_NEXT_DROP] = "bier-drop",
},
.format_trace = format_bier_input_trace,
}
static uword bier_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: bier_input.c:69
unsigned int u32
Definition: types.h:88
static u8 * format_bier_input_trace(u8 *s, va_list *args)
Definition: bier_input.c:148
static char * bier_error_strings[]
Definition: bier_input.c:28

(constructor) VLIB_REGISTER_NODE (bier_input_node)

Definition at line 40 of file bier_input.c.