|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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,
87 to_next, n_left_to_next);
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",
u16 dpoi_next_node
The next VLIB node to follow.
index_t dpoi_index
the index of objects of that type
static void bier_hdr_hton(bier_hdr_t *bier_hdr)
nat44_ei_hairpin_src_next_t next_index
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 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
static uword bier_output(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
struct bier_output_trace_t_ bier_output_trace_t
Packet trace record for a BIER output.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void bier_bit_string_logical_and_string(const bier_bit_string_t *src, bier_bit_string_t *dest)
Packet trace record for a BIER output.
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
static char * bier_output_error_strings[]
mpls_label_t bfm_label
The MPLS label to paint on the header during forwarding.
bier_fmask_flags_t bfm_flags
operational/state flags on the fmask
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
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...
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
static void bier_bit_string_init_from_hdr(bier_hdr_t *bier_hdr, bier_bit_string_t *bit_string)
vnet_feature_config_main_t * cm
struct _vlib_node_registration vlib_node_registration_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.
description fragment has unexpected format
A collection of combined counters.
vlib_put_next_frame(vm, node, next_index, 0)
dpo_id_t bfm_dpo
The index into the adj table for the adj that this fmask resolves via.
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...
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 u8 * format_bier_output_trace(u8 *s, va_list *args)
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
u32 mpls_label_t
A label value only, i.e.
vlib_combined_counter_main_t bier_fmask_counters
Stats for each BIER fmask object.
#define foreach_bier_output_next
vlib_node_registration_t bier_output_node
Forward declaration.
#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).
A Variable length BitString.
static bier_fmask_t * bier_fmask_get(u32 index)
vlib_increment_combined_counter(ccm, ti, sw_if_index, n_buffers, n_bytes)
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)