43 #define BIER_DISP_LOOKUP_N_NEXT (BIER_DISP_LOOKUP_NEXT_DISPATCH+1) 50 u32 n_left_from, next_index, * from, * to_next;
57 while (n_left_from > 0)
63 while (n_left_from > 0 && n_left_to_next > 0)
115 n_left_to_next, bi0, next0);
145 .name =
"bier-disp-lookup",
146 .vector_size =
sizeof (
u32),
vlib_node_registration_t bier_disp_lookup_node
(constructor) VLIB_REGISTER_NODE (bier_disp_lookup_node)
static uword bier_disp_lookup_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static u8 * format_bier_disp_lookup_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...
#define BIER_DISP_LOOKUP_N_NEXT
index_t bdti
BIER disp table.
bier_disp_lookup_next_t_
Next nodes from BIER disposition lookup.
struct bier_disp_lookup_trace_t_ bier_disp_lookup_trace_t
A struct to hold tracing information for the MPLS label imposition node.
u32 bier_bp_t
A bit positon as assigned to egress PEs.
A struct to hold tracing information for the MPLS label imposition node.
#define VLIB_NODE_FUNCTION_MULTIARCH(node, fn)
static bier_hdr_src_id_t bier_hdr_get_src_id(const bier_hdr_t *bier_hdr)
u16 bier_hdr_src_id_t
An identifier of the sender of BIER packets this is the source of the 'tree' - the BFIR...
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#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).
enum bier_disp_lookup_next_t_ bier_disp_lookup_next_t
Next nodes from BIER disposition lookup.
#define VLIB_REGISTER_NODE(x,...)
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.
static index_t bier_disp_table_lookup(index_t bdti, bier_hdr_src_id_t src)
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
bier_bp_t bp
BIER source BP used in the lookup - host order.
static uword bier_disp_lookup(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.