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

Go to the source code of this file.

Data Structures

struct  mcast_prep_trace_t
 
struct  mcast_recycle_trace_t
 

Macros

#define foreach_mcast_prep_error   _(MCASTS, "Multicast Packets")
 
#define foreach_mcast_recycle_error   _(RECYCLES, "Multicast Recycles")
 

Enumerations

enum  mcast_prep_error_t { MCAST_PREP_N_ERROR }
 
enum  mcast_prep_next_t { MCAST_PREP_NEXT_DROP, MCAST_PREP_N_NEXT }
 
enum  mcast_recycle_error_t { MCAST_RECYCLE_N_ERROR }
 
enum  mcast_recycle_next_t { MCAST_RECYCLE_NEXT_DROP, MCAST_RECYCLE_N_NEXT }
 

Functions

static u8format_mcast_prep_trace (u8 *s, va_list *args)
 
static uword mcast_prep_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_mcast_recycle_trace (u8 *s, va_list *args)
 
static uword mcast_recycle_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void mcast_recycle_callback (vlib_main_t *vm, vlib_buffer_free_list_t *fl)
 
clib_error_tmcast_init (vlib_main_t *vm)
 

Variables

mcast_main_t mcast_main
 
vlib_node_registration_t mcast_prep_node
 (constructor) VLIB_REGISTER_NODE (mcast_prep_node) More...
 
vlib_node_registration_t mcast_recycle_node
 (constructor) VLIB_REGISTER_NODE (mcast_recycle_node) More...
 
static char * mcast_prep_error_strings []
 
static char * mcast_recycle_error_strings []
 

Macro Definition Documentation

#define foreach_mcast_prep_error   _(MCASTS, "Multicast Packets")

Definition at line 47 of file mcast.c.

#define foreach_mcast_recycle_error   _(RECYCLES, "Multicast Recycles")

Definition at line 269 of file mcast.c.

Enumeration Type Documentation

Enumerator
MCAST_PREP_N_ERROR 

Definition at line 50 of file mcast.c.

Enumerator
MCAST_PREP_NEXT_DROP 
MCAST_PREP_N_NEXT 

Definition at line 63 of file mcast.c.

Enumerator
MCAST_RECYCLE_N_ERROR 

Definition at line 272 of file mcast.c.

Enumerator
MCAST_RECYCLE_NEXT_DROP 
MCAST_RECYCLE_N_NEXT 

Definition at line 285 of file mcast.c.

Function Documentation

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

Definition at line 32 of file mcast.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 257 of file mcast.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* mcast_init ( vlib_main_t vm)

Definition at line 544 of file mcast.c.

+ Here is the call graph for this function:

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

Definition at line 69 of file mcast.c.

+ Here is the call graph for this function:

static void mcast_recycle_callback ( vlib_main_t vm,
vlib_buffer_free_list_t fl 
)
static

Definition at line 461 of file mcast.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 291 of file mcast.c.

+ Here is the call graph for this function:

Variable Documentation

mcast_main_t mcast_main

Definition at line 43 of file mcast.c.

char* mcast_prep_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_mcast_prep_error
Definition: mcast.c:47

Definition at line 57 of file mcast.c.

vlib_node_registration_t mcast_prep_node
Initial value:
= {
.function = mcast_prep_node_fn,
.name = "mcast_prep",
.vector_size = sizeof (u32),
.format_trace = format_mcast_prep_trace,
.error_strings = mcast_prep_error_strings,
.n_next_nodes = MCAST_PREP_N_NEXT,
.next_nodes = {
[MCAST_PREP_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_mcast_prep_trace(u8 *s, va_list *args)
Definition: mcast.c:32
static uword mcast_prep_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: mcast.c:69
#define ARRAY_LEN(x)
Definition: clib.h:59
static char * mcast_prep_error_strings[]
Definition: mcast.c:57
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (mcast_prep_node)

Definition at line 44 of file mcast.c.

char* mcast_recycle_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_mcast_recycle_error
Definition: mcast.c:269

Definition at line 279 of file mcast.c.

vlib_node_registration_t mcast_recycle_node
Initial value:
= {
.function = mcast_recycle_node_fn,
.name = "mcast-recycle",
.vector_size = sizeof (u32),
.format_trace = format_mcast_recycle_trace,
.error_strings = mcast_recycle_error_strings,
.n_next_nodes = MCAST_RECYCLE_N_NEXT,
.next_nodes = {
[MCAST_RECYCLE_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * mcast_recycle_error_strings[]
Definition: mcast.c:279
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword mcast_recycle_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: mcast.c:291
static u8 * format_mcast_recycle_trace(u8 *s, va_list *args)
Definition: mcast.c:257

(constructor) VLIB_REGISTER_NODE (mcast_recycle_node)

Definition at line 45 of file mcast.c.