FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
interface.c File Reference
+ Include dependency graph for interface.c:

Go to the source code of this file.

Macros

#define MPLS_ETH_OUTPUT_NEXT_OUTPUT   1
 

Functions

static uword mpls_eth_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_mpls_eth_tunnel_name (u8 *s, va_list *args)
 
static u8format_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)
 
u8format_mpls_encap_index (u8 *s, va_list *args)
 
u8format_mpls_ethernet_tunnel (u8 *s, va_list *args)
 
static clib_error_tshow_mpls_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tmpls_interface_init (vlib_main_t *vm)
 
static u8mpls_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_tcreate_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_tcreate_mpls_ethernet_policy_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmpls_interface_enable_disable (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t show_mpls_tunnel_command
 (constructor) VLIB_CLI_COMMAND (show_mpls_tunnel_command) More...
 
static vlib_cli_command_t create_mpls_ethernet_tunnel_command
 (constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_tunnel_command) More...
 
static vlib_cli_command_t create_mpls_ethernet_policy_tunnel_command
 (constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_policy_tunnel_command) More...
 
static vlib_cli_command_t set_interface_ip_table_command
 (constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command) More...
 

Macro Definition Documentation

#define MPLS_ETH_OUTPUT_NEXT_OUTPUT   1

Definition at line 26 of file interface.c.

Function Documentation

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

Definition at line 973 of file interface.c.

+ Here is the call graph for this function:

static clib_error_t* create_mpls_ethernet_tunnel_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 657 of file interface.c.

+ Here is the call graph for this function:

u8* format_mpls_encap_index ( u8 s,
va_list *  args 
)

Definition at line 331 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_mpls_eth_device ( u8 s,
va_list *  args 
)
static

Definition at line 228 of file interface.c.

+ Here is the call graph for this function:

static u8* format_mpls_eth_tunnel_name ( u8 s,
va_list *  args 
)
static

Definition at line 222 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_mpls_ethernet_tunnel ( u8 s,
va_list *  args 
)

Definition at line 348 of file interface.c.

+ Here is the call graph for this function:

static uword mpls_eth_interface_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 29 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* mpls_ethernet_rewrite ( mpls_main_t mm,
mpls_eth_tunnel_t t 
)
static

Definition at line 410 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* mpls_interface_enable_disable ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1079 of file interface.c.

+ Here is the call graph for this function:

clib_error_t* mpls_interface_init ( vlib_main_t vm)

Definition at line 398 of file interface.c.

+ Here is the call graph for this function:

void mpls_sw_interface_enable_disable ( mpls_main_t mm,
u32  sw_if_index,
u8  is_enable 
)

Definition at line 275 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 mpls_sw_interface_is_enabled ( u32  sw_if_index)

Definition at line 264 of file interface.c.

static clib_error_t* show_mpls_tunnel_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 369 of file interface.c.

+ Here is the call graph for this function:

VLIB_DEVICE_TX_FUNCTION_MULTIARCH ( mpls_eth_device_class  ,
mpls_eth_interface_tx   
)

Definition at line 250 of file interface.c.

+ Here is the call graph for this function:

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 
)

Definition at line 805 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 
)

Definition at line 441 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_mpls_policy_tunnel_add_rewrite ( mpls_main_t mm,
mpls_encap_t e,
u32  policy_tunnel_index 
)

Definition at line 754 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t create_mpls_ethernet_policy_tunnel_command
static
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)
Definition: interface.c:973

(constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_policy_tunnel_command)

Definition at line 1070 of file interface.c.

vlib_cli_command_t create_mpls_ethernet_tunnel_command
static
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)
Definition: interface.c:657

(constructor) VLIB_CLI_COMMAND (create_mpls_ethernet_tunnel_command)

Definition at line 746 of file interface.c.

vlib_cli_command_t set_interface_ip_table_command
static
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)
Definition: interface.c:1079

(constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command)

Definition at line 1113 of file interface.c.

vlib_cli_command_t show_mpls_tunnel_command
static
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)
Definition: interface.c:369

(constructor) VLIB_CLI_COMMAND (show_mpls_tunnel_command)

Definition at line 390 of file interface.c.