|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
39 #define BIER_IMP_ID_HLEN_SHIFT 24
140 u32 indent = va_arg(*args,
u32);
146 s =
format(s,
"bier-imp:[%d]: tbl:[%U] hdr:[%U]",
223 u32 indent = va_arg(*ap,
u32);
292 .path =
"show bier imp",
293 .short_help =
"show bier imp [index]",
index_t dpoi_index
the index of objects of that type
#define DPO_INVALID
An initialiser for DPOs declared on the stack.
void bier_table_contribute_forwarding(index_t bti, dpo_id_t *dpo)
static void bier_hdr_hton(bier_hdr_t *bier_hdr)
static clib_error_t * show_bier_imp(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define FOR_EACH_FIB_IP_PROTOCOL(_item)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P with alignment A.
static bier_imp_t * bier_imp_get(index_t bii)
#define pool_put(P, E)
Free an object E in pool P.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void bier_imp_dpo_unlock(dpo_id_t *dpo)
void bier_imp_unlock(index_t bii)
u32 bier_bp_t
A bit positon as assigned to egress PEs.
static_always_inline void * clib_memcpy_fast(void *restrict dst, const void *restrict src, size_t n)
u8 * format_bier_bit_string(u8 *string, va_list *args)
static void bier_imp_dpo_mem_show(void)
static void bier_hdr_ntoh(bier_hdr_t *bier_hdr)
const static dpo_vft_t bier_imp_vft
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
u16 bbs_len
The length of the string in BYTES.
#define pool_foreach(VAR, POOL)
Iterate through pool.
bier_imposition : The BIER imposition object
static void bier_bit_string_init(bier_bit_string_t *bbs, bier_hdr_len_id_t len, bier_bit_mask_bucket_t *buckets)
void dpo_stack(dpo_type_t child_type, dpo_proto_t child_proto, dpo_id_t *dpo, const dpo_id_t *parent)
Stack one DPO object on another, and thus establish a child-parent relationship.
static u8 * format_bier_imp_dpo(u8 *s, va_list *ap)
bier_table_id_t bi_tbl
The BIER table into which to forward the post imposed packet.
static index_t bier_imp_get_index(bier_imp_t *bi)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static void bier_imp_dpo_lock(dpo_id_t *dpo)
void fib_show_memory_usage(const char *name, u32 in_use_elts, u32 allocd_elts, size_t size_elt)
Show the memory usage for a type.
static bier_hdr_len_id_t bier_hdr_get_len_id(const bier_hdr_t *bier_hdr)
enum bier_show_flags_t_ bier_show_flags_t
Flags to control show output.
#define VLIB_CLI_COMMAND(x,...)
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
void bier_imp_contribute_forwarding(index_t bii, dpo_proto_t proto, dpo_id_t *dpo)
dpo_lock_fn_t dv_lock
A reference counting lock function.
const static char *const bier_imp_ip6_nodes[]
index_t bier_imp_add_or_lock(const bier_table_id_t *bti, bier_bp_t sender, const bier_bit_string_t *bs)
#define CLIB_CACHE_LINE_BYTES
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
bier_hdr_len_id_t bti_hdr_len
The size of the bit string processed by this table.
dpo_proto_t fib_proto_to_dpo(fib_protocol_t fib_proto)
const static char *const bier_imp_ip4_nodes[]
u8 * format_dpo_id(u8 *s, va_list *args)
Format a DPO_id_t oject.
bier_hdr_t bi_hdr
The Header to impose.
u8 * format_bier_hdr(u8 *s, va_list *ap)
Format a BIER header.
void bier_imp_lock(index_t bii)
static void bier_hdr_init(bier_hdr_t *bier_hdr, bier_hdr_version_t version, bier_hdr_proto_id_t proto, bier_hdr_len_id_t len, bier_hdr_entropy_t entropy, bier_bp_t src)
#define pool_len(p)
Number of elements in pool vector.
u8 bi_bits[BIER_HDR_BUCKETS_1024]
The bit string.
description fragment has unexpected format
static void bier_imp_lock_i(bier_imp_t *bi)
index_t bier_table_lock(const bier_table_id_t *btid)
#define VLIB_INIT_FUNCTION(x)
clib_error_t * bier_imp_db_module_init(vlib_main_t *vm)
void bier_table_unlock(const bier_table_id_t *bti)
static uword pool_elts(void *v)
Number of active elements in a pool.
u8 * format_bier_imp(u8 *s, va_list *args)
bier_bit_mask_bucket_t * bbs_buckets
The buckets in the string.
dpo_id_t bi_dpo[FIB_PROTOCOL_IP_MAX]
The DPO contributed from the resolving BIER table.
A virtual function table regisitered for a DPO type.
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static vlib_cli_command_t show_bier_imp_node
(constructor) VLIB_CLI_COMMAND (show_bier_imp_node)
u8 * format_bier_table_id(u8 *s, va_list *ap)
Format a BIER table ID.
const static char *const *const bier_imp_nodes[DPO_PROTO_NUM]
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
void dpo_set(dpo_id_t *dpo, dpo_type_t type, dpo_proto_t proto, index_t index)
Set/create a DPO ID The DPO will be locked.
bier_imp_t * bier_imp_pool
bier_imposition : The BIER imposition object
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
u32 bi_locks
number of locks
void dpo_reset(dpo_id_t *dpo)
reset a DPO ID The DPO will be unlocked.
A Variable length BitString.
void dpo_register(dpo_type_t type, const dpo_vft_t *vft, const char *const *const *nodes)
For a given DPO type Register:
vl_api_wireguard_peer_flags_t flags