72 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
79 if (b1->
flags & VLIB_BUFFER_IS_TRACED)
100 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
123 u32 n_left_from, n_left_to_next, * from, * to_next;
128 while (n_left_from > 0)
131 to_next, n_left_to_next);
133 while (n_left_from > 0 && n_left_to_next > 0)
195 .name =
"ip4-mfib-forward-lookup",
196 .vector_size =
sizeof (
u32),
214 .name =
"ip6-mfib-forward-lookup",
215 .vector_size =
sizeof (
u32),
333 u32 n_left_from, n_left_to_next, * from, * to_next;
345 while (n_left_from > 0)
348 to_next, n_left_to_next);
350 while (n_left_from > 0 && n_left_to_next > 0)
368 error0 = IP4_ERROR_NONE;
444 error0 = IP4_ERROR_RPF_FAILURE;
447 b0->
error = error0 ? error_node->
errors[error0] : 0;
449 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
466 to_next, n_left_to_next,
485 .name =
"ip4-mfib-forward-rpf",
486 .vector_size =
sizeof (
u32),
505 .name =
"ip6-mfib-forward-rpf",
506 .vector_size =
sizeof (
u32),
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
fib_entry_flag_t lb_fib_entry_flags
Flags from the load-balance's associated fib_entry_t.
enum mfib_entry_flags_t_ mfib_entry_flags_t
u32 * mfib_index_by_sw_if_index
Table index indexed by software interface.
static u8 * format_mfib_forward_rpf_trace(u8 *s, va_list *args)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static uword mfib_forward_lookup(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, 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)
fib_node_index_t ip6_mfib_table_fwd_lookup(const ip6_mfib_t *mfib, const ip6_address_t *src, const ip6_address_t *grp)
#define VLIB_NODE_FN(node)
vlib_error_t * errors
Vector of errors for this node.
static ip4_mfib_t * ip4_mfib_get(u32 index)
Get the FIB at the given index.
u32 ip4_fib_table_get_index_for_sw_if_index(u32 sw_if_index)
u32 * mfib_index_by_sw_if_index
Table index indexed by software interface.
#define vlib_prefetch_buffer_with_index(vm, bi, type)
Prefetch buffer metadata by buffer index The first 64 bytes of buffer contains most header informatio...
description fragment has unexpected format
#define clib_atomic_fetch_or(a, b)
enum mfib_forward_lookup_next_t_ mfib_forward_lookup_next_t
vlib_node_registration_t ip6_mfib_forward_rpf_node
(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_rpf_node)
vlib_error_t error
Error code for buffers to be enqueued to error handler.
vlib_node_registration_t ip6_mfib_forward_lookup_node
(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_lookup_node)
struct mfib_forward_rpf_trace_t_ mfib_forward_rpf_trace_t
dpo_id_t mfe_rep
The DPO used for forwarding; replicate, drop, etc.
vlib_node_registration_t ip4_input_node
Global ip4 input node.
vlib_node_registration_t ip6_input_node
(constructor) VLIB_REGISTER_NODE (ip6_input_node)
static u8 * format_mfib_forward_lookup_trace(u8 *s, va_list *args)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static void mfib_forward_lookup_trace(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
static mfib_entry_t * mfib_entry_get(fib_node_index_t index)
#define VLIB_REGISTER_NODE(x,...)
mfib_itf_flags_t itf_flags
mfib_forward_lookup_next_t_
mfib_itf_flags_t mfi_flags
Forwarding Flags on the entry - checked in the data-path.
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
static int mfib_forward_connected_check(vlib_buffer_t *b0, u32 sw_if_index, int is_v4)
u32 fib_node_index_t
A typedef of a node index.
mfib_entry_flags_t mfe_flags
Route flags.
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Release pointer to next frame vector data.
vlib_main_t vlib_node_runtime_t * node
static load_balance_t * load_balance_get(index_t lbi)
An interface associated with a particular MFIB entry.
fib_node_index_t ip4_mfib_table_lookup(const ip4_mfib_t *mfib, const ip4_address_t *src, const ip4_address_t *grp, u32 len)
The IPv4 Multicast-FIB.
static index_t ip4_fib_forwarding_lookup(u32 fib_index, const ip4_address_t *addr)
fib_rpf_id_t mfe_rpf_id
RPF-ID used when the packets ingress not from an interface.
vlib_node_registration_t ip4_mfib_forward_rpf_node
(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_rpf_node)
#define vec_elt(v, i)
Get vector value at index i.
static mfib_itf_t * mfib_entry_get_itf(const mfib_entry_t *mfe, u32 sw_if_index)
index_t dpoi_index
the index of objects of that type
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
VLIB buffer representation.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
u8 * format_mfib_itf_flags(u8 *s, va_list *args)
void mfib_signal_push(const mfib_entry_t *mfe, mfib_itf_t *mfi, vlib_buffer_t *b0)
vlib_node_registration_t ip4_mfib_forward_lookup_node
(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_lookup_node)
enum mfib_itf_flags_t_ mfib_itf_flags_t
static uword mfib_forward_rpf(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_v4)
enum mfib_forward_rpf_next_t_ mfib_forward_rpf_next_t
static ip6_mfib_t * ip6_mfib_get(u32 index)
Get the FIB at the given index.
u32 mfi_sw_if_index
The SW IF index that this MFIB interface represents.
ip4_main_t ip4_main
Global ip4 main structure.
u16 flags
Copy of main node flags.
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
u16 dpoi_next_node
The next VLIB node to follow.
#define VLIB_NODE_FLAG_TRACE
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
vl_api_interface_index_t sw_if_index
struct mfib_forward_lookup_trace_t_ mfib_forward_lookup_trace_t