22 #define bier_error(n,s) BIER_INPUT_ERROR_##n, 29 #define bier_error(n,s) s, 83 while (n_left_from > 0)
88 to_next, n_left_to_next);
90 while (n_left_from > 0 && n_left_to_next > 0)
121 b0->
error = node->
errors[BIER_INPUT_ERROR_INVALID_HEADER];
134 to_next, n_left_to_next,
142 BIER_INPUT_ERROR_PKTS_VALID,
154 s =
format (s,
" next [%d], BIER Table index %d",
161 .name =
"bier-input",
163 .vector_size =
sizeof (
u32),
static bier_hdr_len_id_t bier_hdr_get_len_id(const bier_hdr_t *bier_hdr)
static bier_table_t * bier_table_get(index_t bti)
vlib_error_t * errors
Vector of errors for this node.
bier_hdr_len_id_t bti_hdr_len
The size of the bit string processed by this table.
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).
vlib_error_t error
Error code for buffers to be enqueued to error handler.
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#define VLIB_REGISTER_NODE(x,...)
enum bier_hdr_len_id_t_ bier_hdr_len_id_t
bier_hdr_len_id_t enumerator
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.
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)
struct _vlib_node_registration vlib_node_registration_t
bier_table_id_t bt_id
The identity/key or the table.
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
A BIER Table is the bit-indexed forwarding table.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static bier_hdr_version_t bier_hdr_get_version(const bier_hdr_t *bier_hdr)
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.
static void bier_hdr_ntoh(bier_hdr_t *bier_hdr)