FD.io VPP  v19.04.1-1-ge4a0f9f
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)
 
VLIB_NODE_FN() li_hit_node (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 64 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:

VLIB_NODE_FN() li_hit_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 70 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 58 of file node.c.

Initial value:
= {
.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
unsigned int u32
Definition: types.h:88
static char * li_hit_error_strings[]
Definition: node.c:58
#define ARRAY_LEN(x)
Definition: clib.h:62

(constructor) VLIB_REGISTER_NODE (li_hit_node)

Definition at line 264 of file node.c.