|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __BIER_TABLE_H__
17 #define __BIER_TABLE_H__
29 struct bier_route_update_t_;
90 "BIER table fits on 2 cache lines");
u16 bt_locks
Number of locks on the table.
index_t * bt_fmasks
f-masks in the ECMP table This is a vector sized to the appropriate number of entries given the table...
void(* bier_tables_walk_fn_t)(const bier_table_t *bt, void *ctx)
Types and functions to walk all the BIER Tables.
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
const bier_table_id_t * bier_table_get_id(index_t bti)
void bier_table_route_path_add(const bier_table_id_t *bti, bier_bp_t bp, fib_route_path_t *brp)
u8 * format_bier_table_entry(u8 *s, va_list *args)
bier_table_t * bier_table_pool
Memory pool of all the allocated tables.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
index_t bier_table_add_or_lock(const bier_table_id_t *id, mpls_label_t ll)
u32 bier_bp_t
A bit positon as assigned to egress PEs.
index_t bier_table_lock(const bier_table_id_t *id)
STATIC_ASSERT((sizeof(bier_table_t)<=2 *CLIB_CACHE_LINE_BYTES), "BIER table fits on 2 cache lines")
void bier_tables_walk(bier_tables_walk_fn_t fn, void *ctx)
u8 * format_bier_table(u8 *s, va_list *args)
int bier_table_is_main(const bier_table_t *bt)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
mpls_label_t bt_ll
Save the MPLS local label associated with the table.
u32 fib_node_index_t
A typedef of a node index.
static bier_table_t * bier_table_get(index_t bti)
void bier_table_route_delete(const bier_table_id_t *bti, bier_bp_t b)
enum bier_show_flags_t_ bier_show_flags_t
Flags to control show output.
void bier_table_ecmp_set_fmask(index_t bti, bier_bp_t bp, index_t bfmi)
#define CLIB_CACHE_LINE_BYTES
fib_node_index_t bt_lfei
The index of the lfib entry created for this table.
fib_node_index_t bt_pl
The path-list used for the ECMP-tables.
index_t * bt_entries
Entries in the table This is a vector sized to the appropriate number of entries given the table's su...
static const index_t bier_table_lookup(const bier_table_t *bt, bier_bp_t bp)
struct bier_table_t_ bier_table_t
A BIER Table is the bit-indexed forwarding table.
A representation of a path as described by a route producer.
index_t bier_table_ecmp_create_and_lock(const bier_table_id_t *id)
void bier_table_route_path_remove(const bier_table_id_t *bti, bier_bp_t bp, fib_route_path_t *brp)
void bier_table_walk(const bier_table_id_t *id, bier_table_walk_fn_t fn, void *ctx)
void bier_table_unlock(const bier_table_id_t *id)
#define BIER_BP_TO_INDEX(bp)
void bier_table_ecmp_unlock(index_t bti)
bier_table_id_t bt_id
The identity/key or the table.
void(* bier_table_ecmp_walk_fn_t)(index_t btei, void *ctx)
Types and functions to walk the ECMP tables of a main table.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
A BIER Table is the bit-indexed forwarding table.
u32 mpls_label_t
A label value only, i.e.
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
required for pool_get_aligned.
void bier_table_route_path_update(const bier_table_id_t *bti, bier_bp_t bp, fib_route_path_t *brp)
void bier_table_ecmp_walk(index_t bti, bier_table_ecmp_walk_fn_t fn, void *ctx)
void bier_table_contribute_forwarding(index_t bti, dpo_id_t *dpo)
void(* bier_table_walk_fn_t)(const bier_table_t *bt, const bier_entry_t *be, void *ctx)
Types and functions to walk all the entries in one BIER Table.
static const index_t bier_table_fwd_lookup(const bier_table_t *bt, bier_bp_t bp)
void bier_table_show_all(vlib_main_t *vm, bier_show_flags_t flags)
vl_api_wireguard_peer_flags_t flags