23 #define bier_error(n,s) s, 31 #define foreach_bier_output_next \ 35 #define _(s,n) BIER_OUTPUT_NEXT_##s, 42 #define bier_error(n,s) BIER_OUTPUT_ERROR_##n, 82 while (n_left_from > 0)
87 to_next, n_left_to_next);
89 while (n_left_from > 0 && n_left_to_next > 0)
119 cm, thread_index, bfmi0, 1,
171 to_next, n_left_to_next,
179 BIER_OUTPUT_ERROR_NONE,
191 s =
format (s,
" next [%d], BFM index %d label:%x",
198 .name =
"bier-output",
200 .vector_size =
sizeof (
u32),
207 [BIER_OUTPUT_NEXT_DROP] =
"bier-drop",
static void vlib_increment_combined_counter(vlib_combined_counter_main_t *cm, u32 thread_index, u32 index, u64 n_packets, u64 n_bytes)
Increment a combined counter.
static bier_fmask_t * bier_fmask_get(u32 index)
u32 mpls_label_t
A label value only, i.e.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static u8 * format_bier_output_trace(u8 *s, va_list *args)
bier_fmask_bits_t bfm_bits
The bits, and their ref counts, that are set on this mask This mask changes as BIER entries link to a...
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
#define foreach_bier_output_next
A Variable length BitString.
static void bier_hdr_hton(bier_hdr_t *bier_hdr)
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).
mpls_label_t bfm_label
The MPLS label to paint on the header during forwarding.
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
static char * bier_output_error_strings[]
vlib_node_registration_t bier_output_node
Forward declaration.
#define VLIB_REGISTER_NODE(x,...)
Packet trace recoed for a BIER output.
bier_fmask_flags_t bfm_flags
operational/state flags on the fmask
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_combined_counter_main_t bier_fmask_counters
Stats for each BIER fmask object.
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
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
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
index_t dpoi_index
the index of objects of that type
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
A collection of combined counters.
bier_bit_string_t bfmb_input_reset_string
each bit in the mask needs to be reference counted and set/cleared on the 0->1 and 1->0 transitions...
static void bier_bit_string_logical_and_string(const bier_bit_string_t *src, bier_bit_string_t *dest)
dpo_id_t bfm_dpo
The index into the adj table for the adj that this fmask resolves via.
static uword bier_output(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
u16 dpoi_next_node
The next VLIB node to follow.
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 void bier_bit_string_init_from_hdr(bier_hdr_t *bier_hdr, bier_bit_string_t *bit_string)
struct bier_output_trace_t_ bier_output_trace_t
Packet trace recoed for a BIER output.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.