FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
node.c File Reference

2 x LACP graph nodes: an "interior" node to process incoming announcements, and a "process" node to periodically send announcements. More...

+ Include dependency graph for node.c:

Go to the source code of this file.

Enumerations

enum  lacp_next_t { LACP_INPUT_NEXT_NORMAL, LACP_INPUT_N_NEXT }
 

Functions

static uword lacp_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void lacp_elog_start_event (void)
 
static void lacp_elog_stop_event (void)
 
static uword lacp_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
void lacp_create_periodic_process (void)
 

Variables

lacp_state_struct lacp_state_array []
 
static char * lacp_error_strings []
 
static vlib_node_registration_t lacp_input_node
 (constructor) VLIB_REGISTER_NODE (lacp_input_node) More...
 

Detailed Description

2 x LACP graph nodes: an "interior" node to process incoming announcements, and a "process" node to periodically send announcements.

The interior node is neither pipelined nor dual-looped, because it would be very unusual to see more than one LACP packet in a given input frame. So, it's a very simple / straighforward example.

Definition in file node.c.

Enumeration Type Documentation

◆ lacp_next_t

Enumerator
LACP_INPUT_NEXT_NORMAL 
LACP_INPUT_N_NEXT 

Definition at line 55 of file node.c.

Function Documentation

◆ lacp_create_periodic_process()

void lacp_create_periodic_process ( void  )

Definition at line 229 of file node.c.

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

◆ lacp_elog_start_event()

static void lacp_elog_start_event ( void  )
static

Definition at line 135 of file node.c.

+ Here is the caller graph for this function:

◆ lacp_elog_stop_event()

static void lacp_elog_stop_event ( void  )
static

Definition at line 155 of file node.c.

+ Here is the caller graph for this function:

◆ lacp_node_fn()

static uword lacp_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 66 of file node.c.

+ Here is the call graph for this function:

◆ lacp_process()

static uword lacp_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 178 of file node.c.

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

Variable Documentation

◆ lacp_error_strings

char* lacp_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_lacp_error
Definition: node.h:61

Definition at line 44 of file node.c.

◆ lacp_input_node

vlib_node_registration_t lacp_input_node
static
Initial value:
= {
.function = lacp_node_fn,
.name = "lacp-input",
.vector_size = sizeof (u32),
.n_errors = LACP_N_ERROR,
.error_strings = lacp_error_strings,
.format_trace = lacp_input_format_trace,
.n_next_nodes = LACP_INPUT_N_NEXT,
.next_nodes = {
[LACP_INPUT_NEXT_NORMAL] = "error-drop",
},
}
u8 * lacp_input_format_trace(u8 *s, va_list *args)
Definition: input.c:250
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * lacp_error_strings[]
Definition: node.c:44
static uword lacp_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:66

(constructor) VLIB_REGISTER_NODE (lacp_input_node)

Definition at line 116 of file node.c.

◆ lacp_state_array

lacp_state_struct lacp_state_array[]
Initial value:
= {
#define _(b, s, n)
{.str = NULL}
}
#define foreach_lacp_state_flag
Definition: protocol.h:75

Definition at line 21 of file node.c.