Go to the source code of this file.
|
static uword | mpls_eth_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static u8 * | format_mpls_eth_tunnel_name (u8 *s, va_list *args) |
|
static u8 * | format_mpls_eth_device (u8 *s, va_list *args) |
|
| VNET_DEVICE_CLASS (mpls_eth_device_class) |
|
| VLIB_DEVICE_TX_FUNCTION_MULTIARCH (mpls_eth_device_class, mpls_eth_interface_tx) |
|
u8 | mpls_sw_interface_is_enabled (u32 sw_if_index) |
|
void | mpls_sw_interface_enable_disable (mpls_main_t *mm, u32 sw_if_index, u8 is_enable) |
|
u8 * | format_mpls_encap_index (u8 *s, va_list *args) |
|
u8 * | format_mpls_ethernet_tunnel (u8 *s, va_list *args) |
|
static clib_error_t * | show_mpls_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | mpls_interface_init (vlib_main_t *vm) |
|
static u8 * | mpls_ethernet_rewrite (mpls_main_t *mm, mpls_eth_tunnel_t *t) |
|
int | vnet_mpls_ethernet_add_del_tunnel (u8 *dst, ip4_address_t *intfc, u32 mask_width, u32 inner_fib_id, u32 tx_sw_if_index, u32 *tunnel_sw_if_index, u8 l2_only, u8 is_add) |
|
static clib_error_t * | create_mpls_ethernet_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
int | vnet_mpls_policy_tunnel_add_rewrite (mpls_main_t *mm, mpls_encap_t *e, u32 policy_tunnel_index) |
|
int | vnet_mpls_ethernet_add_del_policy_tunnel (u8 *dst, ip4_address_t *intfc, u32 mask_width, u32 inner_fib_id, u32 tx_sw_if_index, u32 *tunnel_sw_if_index, u32 classify_table_index, u32 *new_tunnel_index, u8 l2_only, u8 is_add) |
|
static clib_error_t * | create_mpls_ethernet_policy_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | mpls_interface_enable_disable (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
#define MPLS_ETH_OUTPUT_NEXT_OUTPUT 1 |
u8* format_mpls_encap_index |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static u8* format_mpls_eth_device |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_mpls_eth_tunnel_name |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
u8* format_mpls_ethernet_tunnel |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
void mpls_sw_interface_enable_disable |
( |
mpls_main_t * |
mm, |
|
|
u32 |
sw_if_index, |
|
|
u8 |
is_enable |
|
) |
| |
u8 mpls_sw_interface_is_enabled |
( |
u32 |
sw_if_index | ) |
|
VNET_DEVICE_CLASS |
( |
mpls_eth_device_class |
| ) |
|
int vnet_mpls_ethernet_add_del_policy_tunnel |
( |
u8 * |
dst, |
|
|
ip4_address_t * |
intfc, |
|
|
u32 |
mask_width, |
|
|
u32 |
inner_fib_id, |
|
|
u32 |
tx_sw_if_index, |
|
|
u32 * |
tunnel_sw_if_index, |
|
|
u32 |
classify_table_index, |
|
|
u32 * |
new_tunnel_index, |
|
|
u8 |
l2_only, |
|
|
u8 |
is_add |
|
) |
| |
int vnet_mpls_ethernet_add_del_tunnel |
( |
u8 * |
dst, |
|
|
ip4_address_t * |
intfc, |
|
|
u32 |
mask_width, |
|
|
u32 |
inner_fib_id, |
|
|
u32 |
tx_sw_if_index, |
|
|
u32 * |
tunnel_sw_if_index, |
|
|
u8 |
l2_only, |
|
|
u8 |
is_add |
|
) |
| |
Initial value:= {
.path = "create mpls ethernet policy tunnel",
.short_help =
"create mpls ethernet policy tunnel [del] dst <mac-addr> intfc <addr>/<mw>\n"
" classify-table-index <nn>",
}
static clib_error_t * create_mpls_ethernet_policy_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_policy_tunnel_command)
Definition at line 1070 of file interface.c.
Initial value:= {
.path = "create mpls ethernet tunnel",
.short_help =
"create mpls ethernet tunnel [del] dst <mac-addr> intfc <addr>/<mw>",
}
static clib_error_t * create_mpls_ethernet_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_tunnel_command)
Definition at line 746 of file interface.c.
Initial value:= {
.path = "set interface mpls",
.short_help = "Enable/Disable an interface for MPLS forwarding",
}
static clib_error_t * mpls_interface_enable_disable(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command)
Definition at line 1113 of file interface.c.
Initial value:= {
.path = "show mpls tunnel",
.short_help = "show mpls tunnel",
}
static clib_error_t * show_mpls_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_mpls_tunnel_command)
Definition at line 390 of file interface.c.