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

Go to the source code of this file.

Data Structures

struct  li_hit_trace_t
 

Macros

#define foreach_li_hit_error
 

Enumerations

enum  li_hit_error_t { LI_HIT_N_ERROR }
 
enum  li_hit_next_t { LI_HIT_NEXT_ETHERNET, LI_HIT_N_NEXT }
 

Functions

static u8format_li_hit_trace (u8 *s, va_list *args)
 
static uword li_hit_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t li_hit_node
 (constructor) VLIB_REGISTER_NODE (li_hit_node) More...
 
static char * li_hit_error_strings []
 

Macro Definition Documentation

#define foreach_li_hit_error
Value:
_(HITS, "LI packets processed") \
_(NO_COLLECTOR, "No collector configured") \
_(BUFFER_ALLOCATION_FAILURE, "Buffer allocation failure")

Definition at line 47 of file node.c.

Enumeration Type Documentation

Enumerator
LI_HIT_N_ERROR 

Definition at line 52 of file node.c.

Enumerator
LI_HIT_NEXT_ETHERNET 
LI_HIT_N_NEXT 

Definition at line 66 of file node.c.

Function Documentation

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

Definition at line 34 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 73 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* li_hit_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_li_hit_error
Definition: node.c:47

Definition at line 60 of file node.c.

Initial value:
= {
.function = li_hit_node_fn,
.name = "li-hit",
.vector_size = sizeof (u32),
.format_trace = format_li_hit_trace,
.error_strings = li_hit_error_strings,
.n_next_nodes = LI_HIT_N_NEXT,
.next_nodes = {
[LI_HIT_NEXT_ETHERNET] = "ethernet-input-not-l2",
},
}
static u8 * format_li_hit_trace(u8 *s, va_list *args)
Definition: node.c:34
static char * li_hit_error_strings[]
Definition: node.c:60
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword li_hit_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:73

(constructor) VLIB_REGISTER_NODE (li_hit_node)

Definition at line 25 of file node.c.