FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | l2_output_config_t |
struct | l2output_main_t |
Macros | |
#define | foreach_l2output_feat |
#define | foreach_l2output_error |
Enumerations | |
enum | l2output_feat_t { L2OUTPUT_N_FEAT } |
enum | l2output_feat_masks_t { foreach_l2output_feat } |
enum | l2output_next_t { L2OUTPUT_NEXT_DROP, L2OUTPUT_NEXT_BAD_INTF, L2OUTPUT_N_NEXT } |
enum | l2output_error_t { L2OUTPUT_N_ERROR } |
Functions | |
STATIC_ASSERT (L2OUTPUT_N_FEAT<=32,"too many l2 output features") | |
char ** | l2output_get_feat_names (void) |
u8 * | format_l2_output_features (u8 *s, va_list *args) |
void | l2output_create_output_node_mapping (vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index) |
The next set of functions is for use by output feature graph nodes. More... | |
l2_output_config_t * | l2output_intf_config (u32 sw_if_index) |
Get a pointer to the config for the given interface. More... | |
void | l2output_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... | |
Variables | |
l2output_main_t | l2output_main |
vlib_node_registration_t | l2output_node |
(constructor) VLIB_REGISTER_NODE (l2output_node) More... | |
#define foreach_l2output_error |
Definition at line 118 of file l2_output.h.
#define foreach_l2output_feat |
Definition at line 85 of file l2_output.h.
enum l2output_error_t |
Enumerator | |
---|---|
L2OUTPUT_N_ERROR |
Definition at line 133 of file l2_output.h.
Enumerator | |
---|---|
foreach_l2output_feat |
Definition at line 111 of file l2_output.h.
enum l2output_feat_t |
Enumerator | |
---|---|
L2OUTPUT_N_FEAT |
Definition at line 100 of file l2_output.h.
enum l2output_next_t |
Enumerator | |
---|---|
L2OUTPUT_NEXT_DROP | |
L2OUTPUT_NEXT_BAD_INTF | |
L2OUTPUT_N_NEXT |
Definition at line 126 of file l2_output.h.
Definition at line 44 of file l2_output.c.
void l2output_create_output_node_mapping | ( | vlib_main_t * | vlib_main, |
vnet_main_t * | vnet_main, | ||
u32 | sw_if_index | ||
) |
The next set of functions is for use by output feature graph nodes.
When the last bit has been cleared from the output feature bitmap, the next node is the output graph node for the TX sw_if_index. These functions help the feature nodes get that node index.
The next set of functions is for use by output feature graph nodes.
Definition at line 662 of file l2_output.c.
char** l2output_get_feat_names | ( | void | ) |
Enable (or disable) the feature in the bitmap for the given interface.
Definition at line 686 of file l2_output.c.
l2_output_config_t* l2output_intf_config | ( | u32 | sw_if_index | ) |
Get a pointer to the config for the given interface.
Definition at line 676 of file l2_output.c.
STATIC_ASSERT | ( | L2OUTPUT_N_FEAT<= | 32, |
"too many l2 output features" | |||
) |
l2output_main_t l2output_main |
Definition at line 66 of file l2_output.c.
vlib_node_registration_t l2output_node |
(constructor) VLIB_REGISTER_NODE (l2output_node)
Definition at line 501 of file l2_output.c.