Go to the source code of this file.
|
static_always_inline l2_bridge_domain_t * | l2input_bd_config_from_index (l2input_main_t *l2im, u32 bd_index) |
|
static_always_inline l2_bridge_domain_t * | l2input_bd_config (u32 bd_index) |
|
| STATIC_ASSERT (L2INPUT_N_FEAT<=32,"too many l2 input features") |
|
| STATIC_ASSERT ((u64) L2INPUT_VALID_MASK==(1ull<< L2INPUT_N_FEAT)-1,"") |
|
char ** | l2input_get_feat_names (void) |
| Return an array of strings containing graph node names of each feature. More...
|
|
u8 * | format_l2_input_features (u8 *s, va_list *args) |
|
static_always_inline u8 | bd_feature_flood (l2_bridge_domain_t *bd_config) |
|
static_always_inline u8 | bd_feature_uu_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_arp_term (l2_bridge_domain_t *bd_config) |
|
l2_input_config_t * | l2input_intf_config (u32 sw_if_index) |
| Masks for eliminating features that do not apply to a packet. More...
|
|
u32 | l2input_intf_bitmap_enable (u32 sw_if_index, u32 feature_bitmap, u32 enable) |
| Enable (or disable) the feature in the bitmap for the given interface. More...
|
|
u32 | l2input_set_bridge_features (u32 bd_index, u32 feat_mask, u32 feat_value) |
|
u32 | set_int_l2_mode (vlib_main_t *vm, vnet_main_t *vnet_main, u32 mode, u32 sw_if_index, u32 bd_index, u32 bvi, u32 shg, u32 xc_sw_if_index) |
| Set the subinterface to run in l2 or l3 mode. More...
|
|
static void | vnet_update_l2_len (vlib_buffer_t *b) |
|
static u32 | vnet_l2_compute_flow_hash (vlib_buffer_t *b) |
|
#define foreach_l2input_feat |
Value:_(
DROP,
"feature-bitmap-drop") \
_(XCONNECT, "l2-output") \
_(FLOOD, "l2-flood") \
_(ARP_TERM, "arp-term-l2bd") \
_(UU_FLOOD, "l2-flood") \
_(FWD, "l2-fwd") \
_(RW, "l2-rw") \
_(LEARN, "l2-learn") \
_(VTR, "l2-input-vtr") \
_(VPATH, "vpath-input-l2") \
_(ACL, "l2-input-acl") \
_(POLICER_CLAS, "l2-policer-classify") \
_(INPUT_CLASSIFY, "l2-input-classify") \
_(SPAN, "span-l2-input")
Definition at line 106 of file l2_input.h.
#define L2INPUT_BVI ((u32) (~0-1)) |
#define MODE_ERROR_BVI_DEF 2 |
#define MODE_L2_CLASSIFY 3 |
Enumerator |
---|
L2INPUT_VALID_MASK |
|
Definition at line 134 of file l2_input.h.
u8* format_l2_input_features |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
char** l2input_get_feat_names |
( |
void |
| ) |
|
Return an array of strings containing graph node names of each feature.
Definition at line 60 of file l2_input.c.
u32 l2input_intf_bitmap_enable |
( |
u32 |
sw_if_index, |
|
|
u32 |
feature_bitmap, |
|
|
u32 |
enable |
|
) |
| |
Enable (or disable) the feature in the bitmap for the given interface.
Definition at line 534 of file l2_input.c.
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 524 of file l2_input.c.
u32 l2input_set_bridge_features |
( |
u32 |
bd_index, |
|
|
u32 |
feat_mask, |
|
|
u32 |
feat_value |
|
) |
| |
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 565 of file l2_input.c.
STATIC_ASSERT |
( |
(u64) |
L2INPUT_VALID_MASK = =(1ull<< L2INPUT_N_FEAT)-1 , |
|
|
"" |
|
|
) |
| |
(constructor) VLIB_REGISTER_NODE (l2input_node)
Definition at line 472 of file l2_input.c.