FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Macros

#define foreach_span_error   _(HITS, "SPAN incomming packets processed")
 

Enumerations

enum  span_error_t { SPAN_N_ERROR }
 

Functions

u8format_span_trace (u8 *s, va_list *args)
 
static_always_inline void span_mirror (vlib_main_t *vm, span_interface_t *si0, vlib_buffer_t *b0, vlib_frame_t **mirror_frames, int is_rx)
 
static_always_inline uword span_node_inline_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_rx)
 
static uword span_input_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword span_output_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t span_node
 
static char * span_error_strings []
 
vlib_node_registration_t span_input_node
 (constructor) VLIB_REGISTER_NODE (span_input_node) More...
 
vlib_node_registration_t span_output_node
 (constructor) VLIB_REGISTER_NODE (span_output_node) More...
 

Macro Definition Documentation

#define foreach_span_error   _(HITS, "SPAN incomming packets processed")

Definition at line 43 of file node.c.

Enumeration Type Documentation

Enumerator
SPAN_N_ERROR 

Definition at line 46 of file node.c.

Function Documentation

u8* format_span_trace ( u8 s,
va_list *  args 
)

Definition at line 29 of file node.c.

+ Here is the call graph for this function:

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

Definition at line 224 of file node.c.

+ Here is the call graph for this function:

static_always_inline void span_mirror ( vlib_main_t vm,
span_interface_t si0,
vlib_buffer_t b0,
vlib_frame_t **  mirror_frames,
int  is_rx 
)

Definition at line 61 of file node.c.

+ Here is the caller graph for this function:

static_always_inline uword span_node_inline_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_rx 
)

Definition at line 96 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 231 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* span_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_span_error
Definition: node.c:43

Definition at line 54 of file node.c.

vlib_node_registration_t span_input_node
Initial value:
= {
.function = span_input_node_fn,
.name = "span-input",
.vector_size = sizeof (u32),
.format_trace = format_span_trace,
.error_strings = span_error_strings,
.n_next_nodes = 0,
.next_nodes = {
[0] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
u8 * format_span_trace(u8 *s, va_list *args)
Definition: node.c:29
static char * span_error_strings[]
Definition: node.c:54
static uword span_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:224
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (span_input_node)

Definition at line 238 of file node.c.

Definition at line 25 of file node.c.

vlib_node_registration_t span_output_node
Initial value:
= {
.function = span_output_node_fn,
.name = "span-output",
.vector_size = sizeof (u32),
.format_trace = format_span_trace,
.error_strings = span_error_strings,
.n_next_nodes = 0,
.next_nodes = {
[0] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
u8 * format_span_trace(u8 *s, va_list *args)
Definition: node.c:29
static char * span_error_strings[]
Definition: node.c:54
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword span_output_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:231

(constructor) VLIB_REGISTER_NODE (span_output_node)

Definition at line 258 of file node.c.