FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
punt_node.c File Reference
+ Include dependency graph for punt_node.c:

Go to the source code of this file.

Data Structures

struct  punt_trace_t_
 

Macros

#define foreach_punt_error
 

Typedefs

typedef enum punt_error_t_ punt_error_t
 
typedef enum punt_next_t_ punt_next_t
 
typedef struct punt_trace_t_ punt_trace_t
 

Enumerations

enum  punt_error_t_ { PUNT_N_ERRORS }
 
enum  punt_next_t_ { PUNT_NEXT_DROP, PUNT_N_NEXT }
 

Functions

static u8format_punt_trace (u8 *s, va_list *args)
 
static u32 punt_replicate (vlib_main_t *vm, vlib_node_runtime_t *node, u32 thread_index, vlib_buffer_t *b0, u32 bi0, vlib_punt_reason_t pr0, u32 *next_index, u32 *n_left_to_next, u32 **to_next, u32 *n_dispatched)
 
static u32 punt_dispatch_one (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_combined_counter_main_t *cm, u32 thread_index, u32 bi0, u32 *next_index, u32 *n_left_to_next, u32 **to_next, u32 *n_dispatched)
 
VLIB_NODE_FN() punt_dispatch_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tpunt_node_init (vlib_main_t *vm)
 

Variables

static char * punt_error_strings []
 
u32 ** punt_clones
 Per-thread clone vectors. More...
 
vlib_node_registration_t punt_dispatch_node
 (constructor) VLIB_REGISTER_NODE (punt_dispatch_node) More...
 

Macro Definition Documentation

◆ foreach_punt_error

#define foreach_punt_error
Value:
_(DISPATCHED, "dispatched") \
_(NO_REASON, "No such punt reason") \
_(NO_REG, "No registrations") \
_(REP_FAIL, "Replication Failure")

Definition at line 18 of file punt_node.c.

Typedef Documentation

◆ punt_error_t

◆ punt_next_t

typedef enum punt_next_t_ punt_next_t

◆ punt_trace_t

typedef struct punt_trace_t_ punt_trace_t

Enumeration Type Documentation

◆ punt_error_t_

Enumerator
PUNT_N_ERRORS 

Definition at line 24 of file punt_node.c.

◆ punt_next_t_

Enumerator
PUNT_NEXT_DROP 
PUNT_N_NEXT 

Definition at line 38 of file punt_node.c.

Function Documentation

◆ format_punt_trace()

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

Definition at line 59 of file punt_node.c.

+ Here is the call graph for this function:

◆ punt_dispatch_node()

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

Definition at line 199 of file punt_node.c.

+ Here is the call graph for this function:

◆ punt_dispatch_one()

static u32 punt_dispatch_one ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_combined_counter_main_t cm,
u32  thread_index,
u32  bi0,
u32 next_index,
u32 n_left_to_next,
u32 **  to_next,
u32 n_dispatched 
)
inlinestatic

Definition at line 137 of file punt_node.c.

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

◆ punt_node_init()

clib_error_t* punt_node_init ( vlib_main_t vm)

Definition at line 300 of file punt_node.c.

+ Here is the call graph for this function:

◆ punt_replicate()

static u32 punt_replicate ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  thread_index,
vlib_buffer_t b0,
u32  bi0,
vlib_punt_reason_t  pr0,
u32 next_index,
u32 n_left_to_next,
u32 **  to_next,
u32 n_dispatched 
)
inlinestatic

Definition at line 71 of file punt_node.c.

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

Variable Documentation

◆ punt_clones

u32** punt_clones

Per-thread clone vectors.

Definition at line 53 of file punt_node.c.

◆ punt_dispatch_node

vlib_node_registration_t punt_dispatch_node
Initial value:
= {
.name = "punt-dispatch",
.vector_size = sizeof (u32),
.format_trace = format_punt_trace,
.n_errors = PUNT_N_ERRORS,
.error_strings = punt_error_strings,
.n_next_nodes = PUNT_N_NEXT,
.next_nodes = {
[PUNT_NEXT_DROP] = "drop",
},
}
static char * punt_error_strings[]
Definition: punt_node.c:32
static u8 * format_punt_trace(u8 *s, va_list *args)
Definition: punt_node.c:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (punt_dispatch_node)

Definition at line 284 of file punt_node.c.

◆ punt_error_strings

char* punt_error_strings[]
static
Initial value:
= {
#define _(v,s)
}
#define foreach_punt_error
Definition: punt_node.c:18

Definition at line 32 of file punt_node.c.