FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
lisp_gpe_sub_interface.c File Reference

LISP sub-interfaces. More...

+ Include dependency graph for lisp_gpe_sub_interface.c:

Go to the source code of this file.

Functions

static index_t lisp_gpe_sub_interface_db_find (const ip_address_t *lrloc, u32 vni)
 
static void lisp_gpe_sub_interface_db_insert (const lisp_gpe_sub_interface_t *l3s)
 
static void lisp_gpe_sub_interface_db_remove (const lisp_gpe_sub_interface_t *l3s)
 
lisp_gpe_sub_interface_tlisp_gpe_sub_interface_get_i (index_t l3si)
 
static void lisp_gpe_sub_interface_set_table (u32 sw_if_index, u32 table_id)
 
static void lisp_gpe_sub_interface_unset_table (u32 sw_if_index, u32 table_id)
 
index_t lisp_gpe_sub_interface_find_or_create_and_lock (const ip_address_t *lrloc, u32 overlay_table_id, u32 vni)
 
void lisp_gpe_sub_interface_unlock (index_t l3si)
 
const lisp_gpe_sub_interface_tlisp_gpe_sub_interface_get (index_t l3si)
 
u8format_lisp_gpe_sub_interface (u8 *s, va_list *ap)
 
static clib_error_tlisp_gpe_sub_interface_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command to show LISP-GPE interfaces. More...
 
static clib_error_tlisp_gpe_sub_interface_module_init (vlib_main_t *vm)
 

Variables

static lisp_gpe_sub_interface_tlisp_gpe_sub_interface_pool
 Pool of all l3-sub-interfaces. More...
 
static uwordlisp_gpe_sub_interfaces
 A DB of all LISP L3 sub-interfaces. More...
 
uwordlisp_gpe_sub_interfaces_sw_if_index
 A DB of all VNET L3 sub-interfaces. More...
 
static u32 lisp_gpe_sub_interface_id
 The next available sub-interface ID. More...
 
vlib_cli_command_t lisp_gpe_sub_interface_command
 (constructor) VLIB_CLI_COMMAND (lisp_gpe_sub_interface_command) More...
 

Detailed Description

LISP sub-interfaces.

Definition in file lisp_gpe_sub_interface.c.

Function Documentation

◆ format_lisp_gpe_sub_interface()

u8* format_lisp_gpe_sub_interface ( u8 s,
va_list *  ap 
)

Definition at line 221 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_db_find()

static index_t lisp_gpe_sub_interface_db_find ( const ip_address_t lrloc,
u32  vni 
)
static

Definition at line 48 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_db_insert()

static void lisp_gpe_sub_interface_db_insert ( const lisp_gpe_sub_interface_t l3s)
static

Definition at line 66 of file lisp_gpe_sub_interface.c.

+ Here is the caller graph for this function:

◆ lisp_gpe_sub_interface_db_remove()

static void lisp_gpe_sub_interface_db_remove ( const lisp_gpe_sub_interface_t l3s)
static

Definition at line 75 of file lisp_gpe_sub_interface.c.

+ Here is the caller graph for this function:

◆ lisp_gpe_sub_interface_find_or_create_and_lock()

index_t lisp_gpe_sub_interface_find_or_create_and_lock ( const ip_address_t lrloc,
u32  overlay_table_id,
u32  vni 
)

Definition at line 122 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_get()

const lisp_gpe_sub_interface_t* lisp_gpe_sub_interface_get ( index_t  l3si)

Definition at line 215 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_get_i()

lisp_gpe_sub_interface_t* lisp_gpe_sub_interface_get_i ( index_t  l3si)

Definition at line 82 of file lisp_gpe_sub_interface.c.

+ Here is the caller graph for this function:

◆ lisp_gpe_sub_interface_module_init()

static clib_error_t* lisp_gpe_sub_interface_module_init ( vlib_main_t vm)
static

Definition at line 266 of file lisp_gpe_sub_interface.c.

◆ lisp_gpe_sub_interface_set_table()

static void lisp_gpe_sub_interface_set_table ( u32  sw_if_index,
u32  table_id 
)
static

Definition at line 88 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_show()

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

CLI command to show LISP-GPE interfaces.

Definition at line 238 of file lisp_gpe_sub_interface.c.

+ Here is the call graph for this function:

◆ lisp_gpe_sub_interface_unlock()

void lisp_gpe_sub_interface_unlock ( index_t  l3si)

Definition at line 189 of file lisp_gpe_sub_interface.c.

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

◆ lisp_gpe_sub_interface_unset_table()

static void lisp_gpe_sub_interface_unset_table ( u32  sw_if_index,
u32  table_id 
)
static

Definition at line 108 of file lisp_gpe_sub_interface.c.

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

Variable Documentation

◆ lisp_gpe_sub_interface_command

vlib_cli_command_t lisp_gpe_sub_interface_command
Initial value:
= {
.path = "show gpe sub-interface",
.short_help = "show gpe sub-interface",
}
static clib_error_t * lisp_gpe_sub_interface_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command to show LISP-GPE interfaces.

(constructor) VLIB_CLI_COMMAND (lisp_gpe_sub_interface_command)

Definition at line 258 of file lisp_gpe_sub_interface.c.

◆ lisp_gpe_sub_interface_id

u32 lisp_gpe_sub_interface_id
static

The next available sub-interface ID.

FIXME

Definition at line 44 of file lisp_gpe_sub_interface.c.

◆ lisp_gpe_sub_interface_pool

lisp_gpe_sub_interface_t* lisp_gpe_sub_interface_pool
static

Pool of all l3-sub-interfaces.

Definition at line 28 of file lisp_gpe_sub_interface.c.

◆ lisp_gpe_sub_interfaces

uword* lisp_gpe_sub_interfaces
static

A DB of all LISP L3 sub-interfaces.

The key is:{VNI,l-RLOC}

Definition at line 33 of file lisp_gpe_sub_interface.c.

◆ lisp_gpe_sub_interfaces_sw_if_index

uword* lisp_gpe_sub_interfaces_sw_if_index

A DB of all VNET L3 sub-interfaces.

A DB of all L3 sub-interfaces.

The key is:{VNI,l-RLOC} Used in the data-plane for interface lookup on decap.

Definition at line 39 of file lisp_gpe_sub_interface.c.