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

Go to the source code of this file.

Data Structures

struct  mfib_forward_lookup_trace_t_
 
struct  mfib_forward_rpf_trace_t_
 

Typedefs

typedef struct mfib_forward_lookup_trace_t_ mfib_forward_lookup_trace_t
 
typedef enum mfib_forward_lookup_next_t_ mfib_forward_lookup_next_t
 
typedef struct mfib_forward_rpf_trace_t_ mfib_forward_rpf_trace_t
 
typedef enum mfib_forward_rpf_next_t_ mfib_forward_rpf_next_t
 

Enumerations

enum  mfib_forward_lookup_next_t_ { MFIB_FORWARD_LOOKUP_NEXT_RPF, MFIB_FORWARD_LOOKUP_N_NEXT }
 
enum  mfib_forward_rpf_next_t_ { MFIB_FORWARD_RPF_NEXT_DROP, MFIB_FORWARD_RPF_N_NEXT }
 

Functions

static u8format_mfib_forward_lookup_trace (u8 *s, va_list *args)
 
static void mfib_forward_lookup_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword mfib_forward_lookup (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_v4)
 
VLIB_NODE_FN() ip4_mfib_forward_lookup_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_mfib_forward_lookup_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_mfib_forward_rpf_trace (u8 *s, va_list *args)
 
static int mfib_forward_connected_check (vlib_buffer_t *b0, u32 sw_if_index, int is_v4)
 
static void mfib_forward_itf_signal (vlib_main_t *vm, const mfib_entry_t *mfe, mfib_itf_t *mfi, vlib_buffer_t *b0)
 
static uword mfib_forward_rpf (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_v4)
 
VLIB_NODE_FN() ip4_mfib_forward_rpf_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_mfib_forward_rpf_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t ip4_mfib_forward_lookup_node
 (constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_lookup_node) More...
 
vlib_node_registration_t ip6_mfib_forward_lookup_node
 (constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_lookup_node) More...
 
vlib_node_registration_t ip4_mfib_forward_rpf_node
 (constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_rpf_node) More...
 
vlib_node_registration_t ip6_mfib_forward_rpf_node
 (constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_rpf_node) More...
 

Typedef Documentation

◆ mfib_forward_lookup_next_t

◆ mfib_forward_lookup_trace_t

◆ mfib_forward_rpf_next_t

◆ mfib_forward_rpf_trace_t

Enumeration Type Documentation

◆ mfib_forward_lookup_next_t_

Enumerator
MFIB_FORWARD_LOOKUP_NEXT_RPF 
MFIB_FORWARD_LOOKUP_N_NEXT 

Definition at line 112 of file mfib_forward.c.

◆ mfib_forward_rpf_next_t_

Enumerator
MFIB_FORWARD_RPF_NEXT_DROP 
MFIB_FORWARD_RPF_N_NEXT 

Definition at line 234 of file mfib_forward.c.

Function Documentation

◆ format_mfib_forward_lookup_trace()

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

Definition at line 34 of file mfib_forward.c.

◆ format_mfib_forward_rpf_trace()

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

Definition at line 240 of file mfib_forward.c.

+ Here is the call graph for this function:

◆ ip4_mfib_forward_lookup_node()

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

Definition at line 189 of file mfib_forward.c.

+ Here is the call graph for this function:

◆ ip4_mfib_forward_rpf_node()

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

Definition at line 478 of file mfib_forward.c.

+ Here is the call graph for this function:

◆ ip6_mfib_forward_lookup_node()

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

Definition at line 208 of file mfib_forward.c.

+ Here is the call graph for this function:

◆ ip6_mfib_forward_rpf_node()

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

Definition at line 498 of file mfib_forward.c.

+ Here is the call graph for this function:

◆ mfib_forward_connected_check()

static int mfib_forward_connected_check ( vlib_buffer_t b0,
u32  sw_if_index,
int  is_v4 
)
static

Definition at line 254 of file mfib_forward.c.

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

◆ mfib_forward_itf_signal()

static void mfib_forward_itf_signal ( vlib_main_t vm,
const mfib_entry_t mfe,
mfib_itf_t mfi,
vlib_buffer_t b0 
)
static

Definition at line 288 of file mfib_forward.c.

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

◆ mfib_forward_lookup()

static uword mfib_forward_lookup ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_v4 
)
static

Definition at line 118 of file mfib_forward.c.

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

◆ mfib_forward_lookup_trace()

static void mfib_forward_lookup_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 46 of file mfib_forward.c.

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

◆ mfib_forward_rpf()

static uword mfib_forward_rpf ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_v4 
)
inlinestatic

Definition at line 330 of file mfib_forward.c.

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

Variable Documentation

◆ ip4_mfib_forward_lookup_node

vlib_node_registration_t ip4_mfib_forward_lookup_node
Initial value:
= {
.name = "ip4-mfib-forward-lookup",
.vector_size = sizeof (u32),
.n_next_nodes = MFIB_FORWARD_LOOKUP_N_NEXT,
.next_nodes = {
[MFIB_FORWARD_LOOKUP_NEXT_RPF] = "ip4-mfib-forward-rpf",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_lookup_node)

Definition at line 196 of file mfib_forward.c.

◆ ip4_mfib_forward_rpf_node

vlib_node_registration_t ip4_mfib_forward_rpf_node
Initial value:
= {
.name = "ip4-mfib-forward-rpf",
.vector_size = sizeof (u32),
.n_next_nodes = MFIB_FORWARD_RPF_N_NEXT,
.next_nodes = {
},
}

(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_rpf_node)

Definition at line 486 of file mfib_forward.c.

◆ ip6_mfib_forward_lookup_node

vlib_node_registration_t ip6_mfib_forward_lookup_node
Initial value:
= {
.name = "ip6-mfib-forward-lookup",
.vector_size = sizeof (u32),
.n_next_nodes = MFIB_FORWARD_LOOKUP_N_NEXT,
.next_nodes = {
[MFIB_FORWARD_LOOKUP_NEXT_RPF] = "ip6-mfib-forward-rpf",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_lookup_node)

Definition at line 215 of file mfib_forward.c.

◆ ip6_mfib_forward_rpf_node

vlib_node_registration_t ip6_mfib_forward_rpf_node
Initial value:
= {
.name = "ip6-mfib-forward-rpf",
.vector_size = sizeof (u32),
.n_next_nodes = MFIB_FORWARD_RPF_N_NEXT,
.next_nodes = {
},
}

(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_rpf_node)

Definition at line 506 of file mfib_forward.c.

MFIB_FORWARD_LOOKUP_NEXT_RPF
@ MFIB_FORWARD_LOOKUP_NEXT_RPF
Definition: mfib_forward.c:113
format_mfib_forward_rpf_trace
static u8 * format_mfib_forward_rpf_trace(u8 *s, va_list *args)
Definition: mfib_forward.c:240
MFIB_FORWARD_LOOKUP_N_NEXT
@ MFIB_FORWARD_LOOKUP_N_NEXT
Definition: mfib_forward.c:114
format_mfib_forward_lookup_trace
static u8 * format_mfib_forward_lookup_trace(u8 *s, va_list *args)
Definition: mfib_forward.c:34
MFIB_FORWARD_RPF_NEXT_DROP
@ MFIB_FORWARD_RPF_NEXT_DROP
Definition: mfib_forward.c:235
u32
unsigned int u32
Definition: types.h:88
MFIB_FORWARD_RPF_N_NEXT
@ MFIB_FORWARD_RPF_N_NEXT
Definition: mfib_forward.c:236