|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __GBP_BRIDGE_DOMAIN_H__
17 #define __GBP_BRIDGE_DOMAIN_H__
@ GBP_BD_FLAG_DO_NOT_LEARN
gbp_bridge_domain_flags_t_
Bridge Domain Flags.
int(* gbp_bridge_domain_cb_t)(gbp_bridge_domain_t *gb, void *ctx)
u32 gb_rdi
Index of the Route-domain this BD is associated with.
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u32 gb_vni
The index of the BD's VNI interface on which packets from unkown endpoints arrive.
index_t gbp_bridge_domain_find_and_lock(u32 bd_id)
int gbp_bridge_domain_add_and_lock(u32 bd_id, u32 rd_id, gbp_bridge_domain_flags_t flags, u32 bvi_sw_if_index, u32 uu_fwd_sw_if_index, u32 bm_flood_sw_if_index)
int gbp_bridge_domain_delete(u32 bd_id)
void gbp_bridge_domain_walk(gbp_bridge_domain_cb_t bgpe, void *ctx)
static gbp_bridge_domain_t * gbp_bridge_domain_get(index_t i)
static gbp_scope_t gbp_bridge_domain_get_scope(u32 bd_index)
u32 gb_bd_id
Bridge-domain ID.
u32 gb_bvi_sw_if_index
The BD's BVI interface (obligatory)
vl_api_interface_index_t bvi_sw_if_index
gbp_scope_t * gbp_scope_by_bd_index
Map of BD index to contract scope.
vl_api_interface_index_t bm_flood_sw_if_index
u32 gb_locks
locks/references to the BD so it does not get deleted (from the API) whilst it is still being used
index_t gbp_bridge_domain_index(const gbp_bridge_domain_t *)
u32 gbp_bridge_domain_get_bd_id(index_t gbdi)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
void gbp_bridge_domain_unlock(index_t gbi)
struct gbp_bridge_domain_db_t gbp_bridge_domain_db_t
DB of bridge_domains.
gbp_bridge_domain_db_t gbp_bridge_domain_db
DB of bridge_domains.
u8 * format_gbp_bridge_domain_flags(u8 *s, va_list *args)
void gbp_bridge_domain_itf_del(index_t gbdi, u32 sw_if_index, l2_bd_port_type_t type)
gbp_itf_hdl_t gb_bm_flood_itf
The BD's interface to sned Broadcast and multicast packets.
gbp_bridge_domain_t * gbp_bridge_domain_pool
Pool of GBP bridge_domains.
@ GBP_BD_FLAG_UU_FWD_DROP
A bridge Domain Representation.
u8 * format_gbp_bridge_domain(u8 *s, va_list *args)
u32 gb_uu_fwd_sw_if_index
The BD's MAC spine-proxy interface (optional)
void gbp_bridge_domain_itf_add(index_t gbdi, u32 sw_if_index, l2_bd_port_type_t type)
enum gbp_bridge_domain_flags_t_ gbp_bridge_domain_flags_t
Bridge Domain Flags.
enum l2_bd_port_type_t_ l2_bd_port_type_t
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t uu_fwd_sw_if_index
gbp_bridge_domain_flags_t gb_flags
Flags conttrolling behaviour.
vl_api_fib_path_type_t type
struct gbp_bridge_domain_t_ gbp_bridge_domain_t
A bridge Domain Representation.
index_t * gbd_by_bd_index
static gbp_bridge_domain_t * gbp_bridge_domain_get_by_bd_index(u32 bd_index)
vl_api_wireguard_peer_flags_t flags