FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
handoff_trace.c File Reference
+ Include dependency graph for handoff_trace.c:

Go to the source code of this file.

Data Structures

struct  handoff_trace_t
 

Macros

#define foreach_handoff_trace_error   _(BUGS, "Warning: packets sent to the handoff trace node!")
 

Enumerations

enum  handoff_trace_error_t { HANDOFF_TRACE_N_ERROR }
 
enum  tplaceholder_next_t { HANDOFF_TRACE_NEXT_DROP, HANDOFF_TRACE_N_NEXT }
 

Functions

static u8format_handoff_trace (u8 *s, va_list *args)
 
static uword handoff_trace_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
int vlib_add_handoff_trace (vlib_main_t *vm, vlib_buffer_t *b)
 

Variables

static vlib_node_registration_t handoff_trace_node
 (constructor) VLIB_REGISTER_NODE (handoff_trace_node) More...
 
static char * handoff_trace_error_strings []
 

Macro Definition Documentation

◆ foreach_handoff_trace_error

#define foreach_handoff_trace_error   _(BUGS, "Warning: packets sent to the handoff trace node!")

Definition at line 43 of file handoff_trace.c.

Enumeration Type Documentation

◆ handoff_trace_error_t

Enumerator
HANDOFF_TRACE_N_ERROR 

Definition at line 46 of file handoff_trace.c.

◆ tplaceholder_next_t

Enumerator
HANDOFF_TRACE_NEXT_DROP 
HANDOFF_TRACE_N_NEXT 

Definition at line 72 of file handoff_trace.c.

Function Documentation

◆ format_handoff_trace()

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

Definition at line 30 of file handoff_trace.c.

◆ handoff_trace_node_fn()

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

Definition at line 61 of file handoff_trace.c.

+ Here is the call graph for this function:

◆ vlib_add_handoff_trace()

int vlib_add_handoff_trace ( vlib_main_t vm,
vlib_buffer_t b 
)

Definition at line 100 of file handoff_trace.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ handoff_trace_error_strings

char* handoff_trace_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 54 of file handoff_trace.c.

◆ handoff_trace_node

static vlib_node_registration_t handoff_trace_node
static
Initial value:
=
{
.name = "handoff_trace",
.function = handoff_trace_node_fn,
.vector_size = sizeof (u32),
.format_trace = format_handoff_trace,
.n_next_nodes = HANDOFF_TRACE_N_NEXT,
.next_nodes = {
[HANDOFF_TRACE_NEXT_DROP] = "error-drop",
},
.error_strings = handoff_trace_error_strings,
}

(constructor) VLIB_REGISTER_NODE (handoff_trace_node)

Definition at line 41 of file handoff_trace.c.

foreach_handoff_trace_error
#define foreach_handoff_trace_error
Definition: handoff_trace.c:43
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
HANDOFF_TRACE_NEXT_DROP
@ HANDOFF_TRACE_NEXT_DROP
Definition: handoff_trace.c:74
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
handoff_trace_node_fn
static uword handoff_trace_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: handoff_trace.c:61
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295
handoff_trace_error_strings
static char * handoff_trace_error_strings[]
Definition: handoff_trace.c:54
u32
unsigned int u32
Definition: types.h:88
format_handoff_trace
static u8 * format_handoff_trace(u8 *s, va_list *args)
Definition: handoff_trace.c:30
HANDOFF_TRACE_N_NEXT
@ HANDOFF_TRACE_N_NEXT
Definition: handoff_trace.c:75
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123