FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
interface.c File Reference
+ Include dependency graph for interface.c:

Go to the source code of this file.

Functions

u8 mpls_sw_interface_is_enabled (u32 sw_if_index)
 
int mpls_sw_interface_enable_disable (mpls_main_t *mm, u32 sw_if_index, u8 is_enable, u8 is_api)
 
static clib_error_tmpls_interface_enable_disable (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void show_mpls_one_interface (vnet_main_t *vnm, vlib_main_t *vm, u32 sw_if_index, bool verbose)
 
static walk_rc_t show_mpls_interface_walk (vnet_main_t *vnm, vnet_sw_interface_t *si, void *ctx)
 
static clib_error_tshow_mpls_interface (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t set_interface_ip_table_command
 (constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command) More...
 
static vlib_cli_command_t show_mpls_interface_command
 (constructor) VLIB_CLI_COMMAND (show_mpls_interface_command) More...
 

Function Documentation

◆ mpls_interface_enable_disable()

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 92 of file interface.c.

+ Here is the call graph for this function:

◆ mpls_sw_interface_enable_disable()

int mpls_sw_interface_enable_disable ( mpls_main_t mm,
u32  sw_if_index,
u8  is_enable,
u8  is_api 
)

Definition at line 38 of file interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mpls_sw_interface_is_enabled()

u8 mpls_sw_interface_is_enabled ( u32  sw_if_index)

Definition at line 27 of file interface.c.

◆ show_mpls_interface()

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

Definition at line 176 of file interface.c.

+ Here is the call graph for this function:

◆ show_mpls_interface_walk()

static walk_rc_t show_mpls_interface_walk ( vnet_main_t vnm,
vnet_sw_interface_t si,
void *  ctx 
)
static

Definition at line 168 of file interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show_mpls_one_interface()

static void show_mpls_one_interface ( vnet_main_t vnm,
vlib_main_t vm,
u32  sw_if_index,
bool  verbose 
)
static

Definition at line 145 of file interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ set_interface_ip_table_command

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",
}

(constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command)

Definition at line 138 of file interface.c.

◆ show_mpls_interface_command

vlib_cli_command_t show_mpls_interface_command
static
Initial value:
= {
.path = "show mpls interface",
.function = show_mpls_interface,
.short_help = "Show MPLS interface forwarding",
}

(constructor) VLIB_CLI_COMMAND (show_mpls_interface_command)

Definition at line 207 of file interface.c.

show_mpls_interface
static clib_error_t * show_mpls_interface(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface.c:176
mpls_interface_enable_disable
static clib_error_t * mpls_interface_enable_disable(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface.c:92