|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
18 #ifndef included_l2bd_h
19 #define included_l2bd_h
50 #define L2_FLOOD_MEMBER_NORMAL 0
51 #define L2_FLOOD_MEMBER_BVI 1
122 #define L2_BD_ID_MAX ((1<<24)-1)
222 const ip46_address_t * ip_addr,
void bd_set_learn_limit(vlib_main_t *vm, u32 bd_index, u32 learn_limit)
Set learn limit for the bridge domain.
void bd_set_mac_age(vlib_main_t *vm, u32 bd_index, u8 age)
Set the mac age for the bridge domain.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u32 bd_add_bd_index(bd_main_t *bdm, u32 bd_id)
Create a bridge domain.
int bd_add_del(l2_bridge_domain_add_del_args_t *args)
void bd_add_member(l2_bridge_domain_t *bd_config, l2_flood_member_t *member)
u32 bd_set_flags(vlib_main_t *vm, u32 bd_index, bd_flags_t flags, u32 enable)
Set the learn/forward/flood flags for the bridge domain.
walk_rc_t(* bd_input_walk_fn_t)(u32 bd_index, u32 sw_if_index)
Walk all the input interfaces in the BD.
u32 bd_input_walk(u32 bd_index, bd_input_walk_fn_t fn, void *data)
static u32 bd_find_or_add_bd_index(bd_main_t *bdm, u32 bd_id)
Get or create a bridge domain.
u32 bd_add_del_ip_mac(u32 bd_index, ip46_type_t type, const ip46_address_t *ip_addr, const mac_address_t *mac, u8 is_add)
Add/delete IP address to MAC address mapping.
enum bd_flags_t_ bd_flags_t
u32 bd_remove_member(l2_bridge_domain_t *bd_config, u32 sw_if_index)
u32 bd_find_index(bd_main_t *bdm, u32 bd_id)
Get a bridge domain.
static u32 bd_is_valid(l2_bridge_domain_t *bd_config)
void bd_validate(l2_bridge_domain_t *bd_config)
Init bridge domain if not done already.
void bd_flush_ip_mac(u32 bd_index)
Flush IP address to MAC address mapping tables in a BD.
l2_bridge_domain_t * bd_get(u32 bd_index)
l2_bridge_domain_t * bd_get_by_table_id(u32 table_id)
l2_flood_member_t * members
enum l2_bd_port_type_t_ l2_bd_port_type_t
vl_api_interface_index_t sw_if_index
enum walk_rc_t_ walk_rc_t
Walk return code.
uword * bd_index_by_bd_id
vl_api_fib_path_type_t type
vl_api_wireguard_peer_flags_t flags