FD.io VPP  v20.09-64-g4f7b92f0a
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)
 
void 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.

+ Here is the call graph for this function:

◆ 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()

void 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)
}
#define foreach_handoff_trace_error
Definition: handoff_trace.c:43

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,
}
static u8 * format_handoff_trace(u8 *s, va_list *args)
Definition: handoff_trace.c:30
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:305
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * handoff_trace_error_strings[]
Definition: handoff_trace.c:54
#define ARRAY_LEN(x)
Definition: clib.h:67
static uword handoff_trace_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: handoff_trace.c:61

(constructor) VLIB_REGISTER_NODE (handoff_trace_node)

Definition at line 41 of file handoff_trace.c.