FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
lisp_gpe.c File Reference

Common utility functions for IPv4, IPv6 and L2 LISP-GPE tunnels. More...

+ Include dependency graph for lisp_gpe.c:

Go to the source code of this file.

Functions

static clib_error_tlisp_gpe_add_del_fwd_entry_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to add/del forwarding entry. More...
 
u8 vnet_lisp_gpe_enable_disable_status (void)
 Check if LISP-GPE is enabled. More...
 
clib_error_tvnet_lisp_gpe_enable_disable (vnet_lisp_gpe_enable_disable_args_t *a)
 Enable/disable LISP-GPE. More...
 
int vnet_gpe_set_encap_mode (gpe_encap_mode_t mode)
 Set GPE encapsulation mode. More...
 
static clib_error_tgpe_set_encap_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to set GPE encap. More...
 
u8format_vnet_gpe_encap_mode (u8 *s, va_list *args)
 Format GPE encap mode. More...
 
static clib_error_tgpe_show_encap_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to show GPE encap. More...
 
static clib_error_tlisp_gpe_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to enable/disable LISP-GPE. More...
 
static clib_error_tlisp_show_iface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to show LISP-GPE interfaces. More...
 
u8format_vnet_lisp_gpe_status (u8 *s, va_list *args)
 Format LISP-GPE status. More...
 
clib_error_tlisp_gpe_init (vlib_main_t *vm)
 LISP-GPE init function. More...
 
gpe_encap_mode_t vnet_gpe_get_encap_mode (void)
 

Variables

lisp_gpe_main_t lisp_gpe_main
 LISP-GPE global state. More...
 
static vlib_cli_command_t lisp_gpe_add_del_fwd_entry_command
 (constructor) VLIB_CLI_COMMAND (lisp_gpe_add_del_fwd_entry_command) More...
 
static vlib_cli_command_t gpe_set_encap_mode_command
 (constructor) VLIB_CLI_COMMAND (gpe_set_encap_mode_command) More...
 
static vlib_cli_command_t gpe_show_encap_mode_command
 (constructor) VLIB_CLI_COMMAND (gpe_show_encap_mode_command) More...
 
static vlib_cli_command_t enable_disable_lisp_gpe_command
 (constructor) VLIB_CLI_COMMAND (enable_disable_lisp_gpe_command) More...
 
vlib_cli_command_t lisp_show_iface_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_iface_command) More...
 

Detailed Description

Common utility functions for IPv4, IPv6 and L2 LISP-GPE tunnels.

Definition in file lisp_gpe.c.

Function Documentation

u8* format_vnet_gpe_encap_mode ( u8 s,
va_list *  args 
)

Format GPE encap mode.

Definition at line 274 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vnet_lisp_gpe_status ( u8 s,
va_list *  args 
)

Format LISP-GPE status.

Definition at line 392 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

CLI command to set GPE encap.

Definition at line 230 of file lisp_gpe.c.

+ Here is the call graph for this function:

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

CLI command to show GPE encap.

Definition at line 292 of file lisp_gpe.c.

+ Here is the call graph for this function:

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

CLI command to add/del forwarding entry.

Definition at line 32 of file lisp_gpe.c.

+ Here is the call graph for this function:

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

CLI command to enable/disable LISP-GPE.

Definition at line 310 of file lisp_gpe.c.

+ Here is the call graph for this function:

clib_error_t* lisp_gpe_init ( vlib_main_t vm)

LISP-GPE init function.

Definition at line 400 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

CLI command to show LISP-GPE interfaces.

Definition at line 355 of file lisp_gpe.c.

+ Here is the call graph for this function:

gpe_encap_mode_t vnet_gpe_get_encap_mode ( void  )

Definition at line 436 of file lisp_gpe.c.

+ Here is the caller graph for this function:

int vnet_gpe_set_encap_mode ( gpe_encap_mode_t  mode)

Set GPE encapsulation mode.

Definition at line 214 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_lisp_gpe_enable_disable ( vnet_lisp_gpe_enable_disable_args_t a)

Enable/disable LISP-GPE.

Definition at line 190 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_gpe_enable_disable_status ( void  )

Check if LISP-GPE is enabled.

Read LISP-GPE status.

Definition at line 181 of file lisp_gpe.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t enable_disable_lisp_gpe_command
static
Initial value:
= {
.path = "gpe",
.short_help = "gpe [enable|disable]",
}
static clib_error_t * lisp_gpe_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to enable/disable LISP-GPE.
Definition: lisp_gpe.c:310

(constructor) VLIB_CLI_COMMAND (enable_disable_lisp_gpe_command)

Definition at line 346 of file lisp_gpe.c.

vlib_cli_command_t gpe_set_encap_mode_command
static
Initial value:
= {
.path = "gpe encap",
.short_help = "gpe encap [lisp|vxlan]",
}
static clib_error_t * gpe_set_encap_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to set GPE encap.
Definition: lisp_gpe.c:230

(constructor) VLIB_CLI_COMMAND (gpe_set_encap_mode_command)

Definition at line 265 of file lisp_gpe.c.

vlib_cli_command_t gpe_show_encap_mode_command
static
Initial value:
= {
.path = "show gpe encap",
.short_help = "show GPE encapulation mode",
}
static clib_error_t * gpe_show_encap_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to show GPE encap.
Definition: lisp_gpe.c:292

(constructor) VLIB_CLI_COMMAND (gpe_show_encap_mode_command)

Definition at line 301 of file lisp_gpe.c.

vlib_cli_command_t lisp_gpe_add_del_fwd_entry_command
static
Initial value:
= {
.path = "gpe entry",
.short_help = "gpe entry add/del vni <vni> vrf/bd <id> [leid <leid>]"
"reid <reid> [loc-pair <lloc> <rloc> w <weight>] "
"[negative action <action>]",
}
static clib_error_t * lisp_gpe_add_del_fwd_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to add/del forwarding entry.
Definition: lisp_gpe.c:32

(constructor) VLIB_CLI_COMMAND (lisp_gpe_add_del_fwd_entry_command)

Definition at line 170 of file lisp_gpe.c.

LISP-GPE global state.

Definition at line 27 of file lisp_gpe.c.

vlib_cli_command_t lisp_show_iface_command
Initial value:
= {
.path = "show gpe interface",
.short_help = "show gpe interface",
}
static clib_error_t * lisp_show_iface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to show LISP-GPE interfaces.
Definition: lisp_gpe.c:355

(constructor) VLIB_CLI_COMMAND (lisp_show_iface_command)

Definition at line 383 of file lisp_gpe.c.