FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | l2_input_config_t |
struct | l2input_main_t |
Macros | |
#define | L2INPUT_BVI ((u32) (~0-1)) |
#define | foreach_l2input_feat |
#define | MODE_L3 0 |
#define | MODE_L2_BRIDGE 1 |
#define | MODE_L2_XC 2 |
#define | MODE_L2_CLASSIFY 3 |
#define | MODE_ERROR_ETH 1 |
#define | MODE_ERROR_BVI_DEF 2 |
Enumerations | |
enum | l2input_feat_t { L2INPUT_N_FEAT } |
enum | l2input_feat_masks_t { L2INPUT_FEAT_NONE = 0, L2INPUT_VALID_MASK } |
Variables | |
l2input_main_t | l2input_main |
vlib_node_registration_t | l2input_node |
(constructor) VLIB_REGISTER_NODE (l2input_node) More... | |
#define foreach_l2input_feat |
Definition at line 102 of file l2_input.h.
#define L2INPUT_BVI ((u32) (~0-1)) |
Definition at line 97 of file l2_input.h.
#define MODE_ERROR_BVI_DEF 2 |
Definition at line 226 of file l2_input.h.
#define MODE_ERROR_ETH 1 |
Definition at line 225 of file l2_input.h.
#define MODE_L2_BRIDGE 1 |
Definition at line 221 of file l2_input.h.
#define MODE_L2_CLASSIFY 3 |
Definition at line 223 of file l2_input.h.
#define MODE_L2_XC 2 |
Definition at line 222 of file l2_input.h.
#define MODE_L3 0 |
Definition at line 220 of file l2_input.h.
enum l2input_feat_masks_t |
Enumerator | |
---|---|
L2INPUT_FEAT_NONE | |
L2INPUT_VALID_MASK |
Definition at line 141 of file l2_input.h.
enum l2input_feat_t |
Enumerator | |
---|---|
L2INPUT_N_FEAT |
Definition at line 130 of file l2_input.h.
static_always_inline u8 bd_feature_arp_term | ( | l2_bridge_domain_t * | bd_config | ) |
static_always_inline u8 bd_feature_arp_ufwd | ( | l2_bridge_domain_t * | bd_config | ) |
Definition at line 197 of file l2_input.h.
static_always_inline u8 bd_feature_flood | ( | l2_bridge_domain_t * | bd_config | ) |
static_always_inline u8 bd_feature_forward | ( | l2_bridge_domain_t * | bd_config | ) |
static_always_inline u8 bd_feature_learn | ( | l2_bridge_domain_t * | bd_config | ) |
static_always_inline u8 bd_feature_uu_flood | ( | l2_bridge_domain_t * | bd_config | ) |
Definition at line 68 of file l2_input.c.
static_always_inline l2_bridge_domain_t* l2input_bd_config | ( | u32 | bd_index | ) |
static_always_inline l2_bridge_domain_t* l2input_bd_config_from_index | ( | l2input_main_t * | l2im, |
u32 | bd_index | ||
) |
Definition at line 77 of file l2_input.h.
char** l2input_get_feat_names | ( | void | ) |
Return an array of strings containing graph node names of each feature.
Definition at line 62 of file l2_input.c.
void l2input_interface_mac_change | ( | u32 | sw_if_index, |
const u8 * | old_address, | ||
const u8 * | new_address | ||
) |
Definition at line 551 of file l2_input.c.
u32 l2input_intf_bitmap_enable | ( | u32 | sw_if_index, |
l2input_feat_masks_t | feature_bitmap, | ||
u32 | enable | ||
) |
Enable (or disable) the feature in the bitmap for the given interface.
Definition at line 527 of file l2_input.c.
l2_input_config_t* l2input_intf_config | ( | u32 | sw_if_index | ) |
Masks for eliminating features that do not apply to a packet.
Get a pointer to the config for the given interface
Masks for eliminating features that do not apply to a packet.
Definition at line 517 of file l2_input.c.
Definition at line 541 of file l2_input.c.
u32 set_int_l2_mode | ( | vlib_main_t * | vm, |
vnet_main_t * | vnet_main, | ||
u32 | mode, | ||
u32 | sw_if_index, | ||
u32 | bd_index, | ||
l2_bd_port_type_t | port_type, | ||
u32 | shg, | ||
u32 | xc_sw_if_index | ||
) |
Set the subinterface to run in l2 or l3 mode.
For L3 mode, just the sw_if_index is specified. For bridged mode, the bd id and bvi flag are also specified. For xconnect mode, the peer sw_if_index is also specified. Return 0 if ok, or non-0 if there was an error.
Definition at line 580 of file l2_input.c.
STATIC_ASSERT | ( | L2INPUT_N_FEAT<= | 32, |
"too many l2 input features" | |||
) |
STATIC_ASSERT | ( | (u64) | L2INPUT_VALID_MASK = =(1ull<< L2INPUT_N_FEAT) - 1 , |
"" | |||
) |
|
inlinestatic |
Definition at line 276 of file l2_input.h.
|
inlinestatic |
Definition at line 236 of file l2_input.h.
l2input_main_t l2input_main |
vlib_node_registration_t l2input_node |
(constructor) VLIB_REGISTER_NODE (l2input_node)
Definition at line 465 of file l2_input.c.