FD.io VPP  v19.08.3-2-gbabecb413
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...
 
static clib_error_tgpe_show_native_fwd_rpath_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to show GPE fwd native route path. More...
 
void gpe_update_native_fwd_path (u8 ip_version)
 
int vnet_gpe_add_del_native_fwd_rpath (vnet_gpe_native_fwd_rpath_args_t *a)
 
static clib_error_tgpe_native_forward_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to add action for native forward. 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)
 
static clib_error_tlisp_gpe_test_send_nsh_packet (u8 *file_name)
 
static clib_error_tlisp_test_nsh_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

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...
 
vlib_cli_command_t gpe_show_native_fwd_rpath_command
 (constructor) VLIB_CLI_COMMAND (gpe_show_native_fwd_rpath_command) More...
 
vlib_cli_command_t gpe_native_forward_command
 (constructor) VLIB_CLI_COMMAND (gpe_native_forward_command) More...
 
static vlib_cli_command_t lisp_test_nsh_command
 (constructor) VLIB_CLI_COMMAND (lisp_test_nsh_command) More...
 

Detailed Description

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

Definition in file lisp_gpe.c.

Function Documentation

◆ format_vnet_gpe_encap_mode()

u8* format_vnet_gpe_encap_mode ( u8 s,
va_list *  args 
)

Format GPE encap mode.

Definition at line 284 of file lisp_gpe.c.

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

◆ format_vnet_lisp_gpe_status()

u8* format_vnet_lisp_gpe_status ( u8 s,
va_list *  args 
)

Format LISP-GPE status.

Definition at line 592 of file lisp_gpe.c.

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

◆ gpe_native_forward_command_fn()

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

CLI command to add action for native forward.

Definition at line 490 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ gpe_set_encap_mode_command_fn()

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 240 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ gpe_show_encap_mode_command_fn()

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 302 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ gpe_show_native_fwd_rpath_command_fn()

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

CLI command to show GPE fwd native route path.

Definition at line 402 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ gpe_update_native_fwd_path()

void gpe_update_native_fwd_path ( u8  ip_version)

Definition at line 440 of file lisp_gpe.c.

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

◆ lisp_gpe_add_del_fwd_entry_command_fn()

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 35 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ lisp_gpe_enable_disable_command_fn()

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 320 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ lisp_gpe_init()

clib_error_t* lisp_gpe_init ( vlib_main_t vm)

LISP-GPE init function.

Definition at line 600 of file lisp_gpe.c.

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

◆ lisp_gpe_test_send_nsh_packet()

static clib_error_t* lisp_gpe_test_send_nsh_packet ( u8 file_name)
static

Definition at line 638 of file lisp_gpe.c.

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

◆ lisp_show_iface_command_fn()

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 365 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ lisp_test_nsh_command_fn()

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

Definition at line 687 of file lisp_gpe.c.

+ Here is the call graph for this function:

◆ vnet_gpe_add_del_native_fwd_rpath()

int vnet_gpe_add_del_native_fwd_rpath ( vnet_gpe_native_fwd_rpath_args_t a)

Definition at line 458 of file lisp_gpe.c.

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

◆ vnet_gpe_get_encap_mode()

gpe_encap_mode_t vnet_gpe_get_encap_mode ( void  )

Definition at line 631 of file lisp_gpe.c.

+ Here is the caller graph for this function:

◆ vnet_gpe_set_encap_mode()

int vnet_gpe_set_encap_mode ( gpe_encap_mode_t  mode)

Set GPE encapsulation mode.

Definition at line 224 of file lisp_gpe.c.

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

◆ vnet_lisp_gpe_enable_disable()

clib_error_t* vnet_lisp_gpe_enable_disable ( vnet_lisp_gpe_enable_disable_args_t a)

Enable/disable LISP-GPE.

Definition at line 193 of file lisp_gpe.c.

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

◆ vnet_lisp_gpe_enable_disable_status()

u8 vnet_lisp_gpe_enable_disable_status ( void  )

Check if LISP-GPE is enabled.

Read LISP-GPE status.

Definition at line 184 of file lisp_gpe.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ enable_disable_lisp_gpe_command

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:320

(constructor) VLIB_CLI_COMMAND (enable_disable_lisp_gpe_command)

Definition at line 356 of file lisp_gpe.c.

◆ gpe_native_forward_command

vlib_cli_command_t gpe_native_forward_command
Initial value:
= {
.path = "gpe native-forward",
.short_help = "gpe native-forward [del] via <nh-ip-addr> [iface] "
"[table <table>]",
}
static clib_error_t * gpe_native_forward_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to add action for native forward.
Definition: lisp_gpe.c:490

(constructor) VLIB_CLI_COMMAND (gpe_native_forward_command)

Definition at line 582 of file lisp_gpe.c.

◆ gpe_set_encap_mode_command

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:240

(constructor) VLIB_CLI_COMMAND (gpe_set_encap_mode_command)

Definition at line 275 of file lisp_gpe.c.

◆ gpe_show_encap_mode_command

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:302

(constructor) VLIB_CLI_COMMAND (gpe_show_encap_mode_command)

Definition at line 311 of file lisp_gpe.c.

◆ gpe_show_native_fwd_rpath_command

vlib_cli_command_t gpe_show_native_fwd_rpath_command
Initial value:
= {
.path = "show gpe native-forward",
.short_help = "show gpe native-forward",
}
static clib_error_t * gpe_show_native_fwd_rpath_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to show GPE fwd native route path.
Definition: lisp_gpe.c:402

(constructor) VLIB_CLI_COMMAND (gpe_show_native_fwd_rpath_command)

Definition at line 432 of file lisp_gpe.c.

◆ lisp_gpe_add_del_fwd_entry_command

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:35

(constructor) VLIB_CLI_COMMAND (lisp_gpe_add_del_fwd_entry_command)

Definition at line 173 of file lisp_gpe.c.

◆ lisp_gpe_main

LISP-GPE global state.

Definition at line 30 of file lisp_gpe.c.

◆ lisp_show_iface_command

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:365

(constructor) VLIB_CLI_COMMAND (lisp_show_iface_command)

Definition at line 393 of file lisp_gpe.c.

◆ lisp_test_nsh_command

vlib_cli_command_t lisp_test_nsh_command
static
Initial value:
= {
.path = "test one nsh",
.short_help = "test gpe nsh pcap <path-to-pcap-file>",
}
static clib_error_t * lisp_test_nsh_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: lisp_gpe.c:687

(constructor) VLIB_CLI_COMMAND (lisp_test_nsh_command)

Definition at line 713 of file lisp_gpe.c.