FD.io VPP  v17.07-30-g839fa73
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 45 of file node.c.

Enumeration Type Documentation

Enumerator
LI_HIT_N_ERROR 

Definition at line 50 of file node.c.

Enumerator
LI_HIT_NEXT_ETHERNET 
LI_HIT_N_NEXT 

Definition at line 63 of file node.c.

Function Documentation

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

Definition at line 32 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 69 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:45

Definition at line 57 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:32
static char * li_hit_error_strings[]
Definition: node.c:57
#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:69

(constructor) VLIB_REGISTER_NODE (li_hit_node)

Definition at line 25 of file node.c.