FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  llc_input_trace_t
 

Macros

#define foreach_llc_input_next
 

Enumerations

enum  llc_input_next_t { LLC_INPUT_N_NEXT }
 

Functions

static u8format_llc_input_trace (u8 *s, va_list *va)
 
static uword llc_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tllc_input_init (vlib_main_t *vm)
 
void llc_register_input_protocol (vlib_main_t *vm, llc_protocol_t protocol, u32 node_index)
 

Variables

static char * llc_error_strings []
 
vlib_node_registration_t llc_input_node
 (constructor) VLIB_REGISTER_NODE (llc_input_node) More...
 

Macro Definition Documentation

◆ foreach_llc_input_next

#define foreach_llc_input_next
Value:
_ (PUNT, "error-punt") \
_ (DROP, "error-drop")

Definition at line 43 of file node.c.

Enumeration Type Documentation

◆ llc_input_next_t

Enumerator
LLC_INPUT_N_NEXT 

Definition at line 47 of file node.c.

Function Documentation

◆ format_llc_input_trace()

static u8* format_llc_input_trace ( u8 s,
va_list *  va 
)
static

Definition at line 61 of file node.c.

◆ llc_input()

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

Definition at line 73 of file node.c.

+ Here is the call graph for this function:

◆ llc_input_init()

static clib_error_t* llc_input_init ( vlib_main_t vm)
static

Definition at line 272 of file node.c.

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

◆ llc_register_input_protocol()

void llc_register_input_protocol ( vlib_main_t vm,
llc_protocol_t  protocol,
u32  node_index 
)

Definition at line 296 of file node.c.

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

Variable Documentation

◆ llc_error_strings

char* llc_error_strings[]
static
Initial value:
= {
#define _(f,s)
}

Definition at line 242 of file node.c.

◆ llc_input_node

vlib_node_registration_t llc_input_node
Initial value:
= {
.function = llc_input,
.name = "llc-input",
.vector_size = sizeof (u32),
.n_errors = LLC_N_ERROR,
.error_strings = llc_error_strings,
.n_next_nodes = LLC_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_llc_input_trace,
.unformat_buffer = unformat_llc_header,
}

(constructor) VLIB_REGISTER_NODE (llc_input_node)

Definition at line 249 of file node.c.

DROP
DROP
Definition: error.def:41
foreach_llc_error
#define foreach_llc_error
Definition: llc.h:121
LLC_INPUT_N_NEXT
@ LLC_INPUT_N_NEXT
Definition: node.c:52
llc_error_strings
static char * llc_error_strings[]
Definition: node.c:242
format_llc_input_trace
static u8 * format_llc_input_trace(u8 *s, va_list *va)
Definition: node.c:61
format_llc_header_with_length
format_function_t format_llc_header_with_length
Definition: llc.h:163
unformat_llc_header
unformat_function_t unformat_llc_header
Definition: llc.h:169
foreach_llc_input_next
#define foreach_llc_input_next
Definition: node.c:43
LLC_N_ERROR
@ LLC_N_ERROR
Definition: llc.h:131
u32
unsigned int u32
Definition: types.h:88
llc_input
static uword llc_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:73