|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
98 else if (
unformat (input,
"disable"))
126 .path =
"set interface l2 l2-emulation",
128 "set interface l2 l2-emulation <interface-name> [disable|enable]\n",
165 .path =
"show interface l2 l2-emulation",
166 .short_help =
"show interface l2 l2-emulation\n",
void ip4_sw_interface_enable_disable(u32 sw_if_index, u32 is_enable)
l2_emulation_t * l2_emulations
Per-interface vector of emulation configs.
vlib_main_t vlib_node_runtime_t * node
#define clib_error_return(e, args...)
__clib_export void l2_emulation_disable(u32 sw_if_index)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static clib_error_t * l2_emulation_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
static vlib_cli_command_t l2_emulation_cli_node
(constructor) VLIB_CLI_COMMAND (l2_emulation_cli_node)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vnet_main_t * vnet_get_main(void)
#define vec_foreach_index(var, v)
Iterate over vector indices.
u8 enabled
Enabled or Disabled.
static clib_error_t * l2_emulation_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
static clib_error_t * l2_emulation_init(vlib_main_t *vm)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
#define vec_validate_init_empty(V, I, INIT)
Make sure vector is long enough for given index and initialize empty space (no header,...
#define VLIB_INIT_FUNCTION(x)
static const l2_emulation_t ezero
A zero'd out struct we can use in the vec_validate.
void ip6_sw_interface_enable_disable(u32 sw_if_index, u32 is_enable)
l2_emulation_main_t l2_emulation_main
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static vlib_cli_command_t l2_emulation_show_node
(constructor) VLIB_CLI_COMMAND (l2_emulation_show_node)
VNET_SW_INTERFACE_ADD_DEL_FUNCTION(l2_emulation_interface_add_del)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
Grouping of global data for the L2 emulation feature.
Per-interface L2 configuration.
u32 l2_input_feat_next[32]
Next nodes for L2 output features.
vl_api_interface_index_t sw_if_index
u32 l2_emulation_node_index
static clib_error_t * l2_emulation_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static void feat_bitmap_init_next_nodes(vlib_main_t *vm, u32 node_index, u32 num_features, char **feat_names, u32 *next_nodes)
Initialize the feature next-node indexes of a graph node.
__clib_export void l2_emulation_enable(u32 sw_if_index)
L2 Emulation is a feautre that is applied to L2 ports to 'extract' IP packets from the L2 path and in...