FD.io VPP  v19.08.3-2-gbabecb413
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

◆ foreach_li_hit_error

#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

◆ li_hit_error_t

Enumerator
LI_HIT_N_ERROR 

Definition at line 50 of file node.c.

◆ li_hit_next_t

Enumerator
LI_HIT_NEXT_ETHERNET 
LI_HIT_N_NEXT 

Definition at line 64 of file node.c.

Function Documentation

◆ format_li_hit_trace()

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:

◆ li_hit_node()

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

◆ li_hit_error_strings

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.

◆ li_hit_node

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
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * li_hit_error_strings[]
Definition: node.c:58
#define ARRAY_LEN(x)
Definition: clib.h:63

(constructor) VLIB_REGISTER_NODE (li_hit_node)

Definition at line 264 of file node.c.