|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
72 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
79 if (b1->
flags & VLIB_BUFFER_IS_TRACED)
100 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
131 to_next, n_left_to_next);
186 return frame->n_vectors;
197 .name =
"ip4-mfib-forward-lookup",
198 .vector_size =
sizeof (
u32),
216 .name =
"ip6-mfib-forward-lookup",
217 .vector_size =
sizeof (
u32),
350 to_next, n_left_to_next);
370 error0 = IP4_ERROR_NONE;
446 error0 = IP4_ERROR_RPF_FAILURE;
449 b0->
error = error0 ? error_node->
errors[error0] : 0;
451 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
468 to_next, n_left_to_next,
475 return frame->n_vectors;
487 .name =
"ip4-mfib-forward-rpf",
488 .vector_size =
sizeof (
u32),
507 .name =
"ip6-mfib-forward-rpf",
508 .vector_size =
sizeof (
u32),
vlib_node_registration_t ip4_mfib_forward_lookup_node
(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_lookup_node)
u16 dpoi_next_node
The next VLIB node to follow.
vnet_interface_main_t * im
index_t dpoi_index
the index of objects of that type
@ MFIB_FORWARD_LOOKUP_NEXT_RPF
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
static ip6_mfib_t * ip6_mfib_get(u32 index)
Get the FIB at the given index.
ip4_main_t ip4_main
Global ip4 main structure.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
vlib_main_t vlib_node_runtime_t * node
@ FIB_ENTRY_FLAG_ATTACHED
u32 ip4_fib_table_get_index_for_sw_if_index(u32 sw_if_index)
static uword mfib_forward_lookup(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_v4)
mfib_itf_flags_t mfi_flags
Forwarding Flags on the entry - checked in the data-path.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
enum mfib_entry_flags_t_ mfib_entry_flags_t
u32 mfi_sw_if_index
The SW IF index that this MFIB interface represents.
static u8 * format_mfib_forward_rpf_trace(u8 *s, va_list *args)
dpo_id_t mfe_rep
The DPO used for forwarding; replicate, drop, etc.
#define clib_atomic_fetch_or(a, b)
enum mfib_forward_lookup_next_t_ mfib_forward_lookup_next_t
#define vec_elt(v, i)
Get vector value at index i.
static void mfib_forward_itf_signal(vlib_main_t *vm, const mfib_entry_t *mfe, mfib_itf_t *mfi, vlib_buffer_t *b0)
u32 * fib_index_by_sw_if_index
Table index indexed by software interface.
vlib_error_t * errors
Vector of errors for this node.
static mfib_entry_t * mfib_entry_get(fib_node_index_t index)
vlib_error_t error
Error code for buffers to be enqueued to error handler.
void mfib_signal_push(const mfib_entry_t *mfe, mfib_itf_t *mfi, vlib_buffer_t *b0)
#define VLIB_NODE_FN(node)
vlib_node_registration_t ip6_mfib_forward_rpf_node
(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_rpf_node)
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
@ MFIB_FORWARD_LOOKUP_N_NEXT
fib_entry_flag_t lb_fib_entry_flags
Flags from the load-balance's associated fib_entry_t.
#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...
static ip4_mfib_t * ip4_mfib_get(u32 index)
Get the FIB at the given index.
u32 fib_node_index_t
A typedef of a node index.
mfib_entry_flags_t mfe_flags
Route flags.
mfib_forward_lookup_next_t_
u8 * format_mfib_itf_flags(u8 *s, va_list *args)
static u8 * format_mfib_forward_lookup_trace(u8 *s, va_list *args)
enum mfib_itf_flags_t_ mfib_itf_flags_t
static void mfib_forward_lookup_trace(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u32 * fib_index_by_sw_if_index
vlib_node_registration_t ip6_mfib_forward_lookup_node
(constructor) VLIB_REGISTER_NODE (ip6_mfib_forward_lookup_node)
@ MFIB_ENTRY_FLAG_ACCEPT_ALL_ITF
struct _vlib_node_registration vlib_node_registration_t
@ MFIB_FORWARD_RPF_NEXT_DROP
enum mfib_forward_rpf_next_t_ mfib_forward_rpf_next_t
#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.
vlib_node_registration_t ip6_input_node
(constructor) VLIB_REGISTER_NODE (ip6_input_node)
@ MFIB_ITF_FLAG_DONT_PRESERVE
static int mfib_forward_connected_check(vlib_buffer_t *b0, u32 sw_if_index, int is_v4)
u32 * mfib_index_by_sw_if_index
Table index indexed by software interface.
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
u32 * mfib_index_by_sw_if_index
Table index indexed by software interface.
struct mfib_forward_lookup_trace_t_ mfib_forward_lookup_trace_t
static load_balance_t * load_balance_get(index_t lbi)
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.
@ MFIB_ITF_FLAG_SIGNAL_PRESENT
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
fib_node_index_t ip6_mfib_table_fwd_lookup(const ip6_mfib_t *mfib, const ip6_address_t *src, const ip6_address_t *grp)
An interface associated with a particular MFIB entry.
static void ip_lookup_set_buffer_fib_index(u32 *fib_index_by_sw_if_index, vlib_buffer_t *b)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static mfib_itf_t * mfib_entry_get_itf(const mfib_entry_t *mfe, u32 sw_if_index)
static uword mfib_forward_rpf(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_v4)
vlib_node_registration_t ip4_input_node
Global ip4 input node.
static index_t ip4_fib_forwarding_lookup(u32 fib_index, const ip4_address_t *addr)
mfib_itf_flags_t itf_flags
vlib_node_registration_t ip4_mfib_forward_rpf_node
(constructor) VLIB_REGISTER_NODE (ip4_mfib_forward_rpf_node)
@ MFIB_FORWARD_RPF_N_NEXT
struct mfib_forward_rpf_trace_t_ mfib_forward_rpf_trace_t
vl_api_interface_index_t sw_if_index
#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).
@ MFIB_ENTRY_FLAG_CONNECTED
fib_rpf_id_t mfe_rpf_id
RPF-ID used when the packets ingress not from an interface.
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
@ MFIB_ITF_FLAG_NEGATE_SIGNAL
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)