|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
21 #define bier_error(n,s) BIER_INPUT_ERROR_##n,
28 #define bier_error(n,s) s,
134 to_next, n_left_to_next);
153 bift0 = clib_net_to_host_u32(*biftp0);
178 to_next, n_left_to_next,
186 BIER_INPUT_ERROR_PKTS_VALID,
205 .name =
"bier-bift-input",
207 .vector_size =
sizeof (
u32),
220 u32 hdr_len,
set, sub_domain;
222 set = hdr_len = sub_domain = ~0;
225 if (
unformat (input,
"sd %d", &sub_domain)) {
229 }
else if (
unformat (input,
"bsl %d", &hdr_len)) {
288 .path =
"show bier bift",
289 .short_help =
"show bier bift [set <value>] [sd <value>] [bsl <value>]",
int dpo_is_drop(const dpo_id_t *dpo)
The Drop DPO will drop all packets, no questions asked.
u16 dpoi_next_node
The next VLIB node to follow.
bier_bift_id_t bier_bift_id_encode(bier_table_set_id_t set, bier_table_sub_domain_id_t sd, bier_hdr_len_id_t bsl)
Encode a BIFT-ID as per draft-wijnandsxu-bier-non-mpls-bift-encoding-00.txt.
index_t dpoi_index
the index of objects of that type
#define BIER_BIFT_N_ENTRIES
nat44_ei_hairpin_src_next_t next_index
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static const dpo_id_t * bier_bift_dp_lookup(bier_bift_id_t key_host_order)
bier_bfit_table_t * bier_bift_table
Global BIFT table.
static void clib_mem_free(void *p)
vlib_main_t vlib_node_runtime_t * node
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static u32 vnet_mpls_uc_get_label(mpls_label_t label_exp_s_ttl)
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
u8 * format_bier_bift_id(u8 *s, va_list *ap)
struct bier_bift_input_trace_t_ bier_bift_input_trace_t
Packet trace record for BIER input.
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
void bier_bift_id_decode(bier_bift_id_t id, bier_table_set_id_t *set, bier_table_sub_domain_id_t *sd, bier_hdr_len_id_t *bsl)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static vlib_cli_command_t show_bier_bift_command
(constructor) VLIB_CLI_COMMAND (show_bier_bift_command)
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
void udp_register_dst_port(vlib_main_t *vm, udp_dst_port_t dst_port, u32 node_index, u8 is_ip4)
void udp_unregister_dst_port(vlib_main_t *vm, udp_dst_port_t dst_port, u8 is_ip4)
#define VLIB_CLI_COMMAND(x,...)
void dpo_stack_from_node(u32 child_node_index, dpo_id_t *dpo, const dpo_id_t *parent)
Stack one DPO object on another, and thus establish a child parent relationship.
static char * bier_error_strings[]
void bier_bift_table_entry_remove(bier_bift_id_t id)
#define CLIB_CACHE_LINE_BYTES
struct _vlib_node_registration vlib_node_registration_t
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
u8 * format_dpo_id(u8 *s, va_list *args)
Format a DPO_id_t oject.
enum bier_hdr_len_id_t_ bier_hdr_len_id_t
bier_hdr_len_id_t enumerator
clib_error_t * show_bier_bift_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static uword bier_bift_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
#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.
u8 * format_bier_hdr_len_id(u8 *s, va_list *ap)
Format the header length field.
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
static bier_hdr_len_id_t bier_hdr_bit_len_to_id(u32 bytes)
dpo_id_t bblt_dpos[BIER_BIFT_N_ENTRIES]
Forwarding information for each BIFT ID.
u32 bier_bift_id_t
The BIER universal 'label'.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
const dpo_id_t * drop_dpo_get(dpo_proto_t proto)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
void bier_bift_table_entry_add(bier_bift_id_t id, const dpo_id_t *dpo)
static vlib_main_t * vlib_get_main(void)
vlib_node_registration_t bier_bift_input_node
Forward declare the node.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
u32 bblt_n_entries
The number of entries in the table.
static void * clib_mem_alloc_aligned(uword size, uword align)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
static u32 vnet_mpls_uc_get_ttl(mpls_label_t label_exp_s_ttl)
static u8 * format_bier_bift_input_trace(u8 *s, va_list *args)
#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).
void dpo_reset(dpo_id_t *dpo)
reset a DPO ID The DPO will be unlocked.
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,...)