FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
static lisp_gpe_tenant_t * | lisp_gpe_tenant_find (u32 vni) |
static lisp_gpe_tenant_t * | lisp_gpe_tenant_find_or_create_i (u32 vni) |
u32 | lisp_gpe_tenant_find_or_create (u32 vni) |
Find or create a tenant for the given VNI. More... | |
static void | lisp_gpe_tenant_delete_if_empty (lisp_gpe_tenant_t *lt) |
If there are no more locks/users of te tenant, then delete it. More... | |
u32 | lisp_gpe_tenant_l3_iface_add_or_lock (u32 vni, u32 table_id, u8 with_default_route) |
Add/create and lock a new or find and lock the existing L3 interface for the tenant. More... | |
void | lisp_gpe_tenant_l3_iface_unlock (u32 vni) |
Release the lock held on the tenant's L3 interface. More... | |
u32 | lisp_gpe_tenant_l2_iface_add_or_lock (u32 vni, u32 bd_id) |
Add/create and lock a new or find and lock the existing L2 interface for the tenant. More... | |
void | lisp_gpe_tenant_l2_iface_unlock (u32 vni) |
Release the lock held on the tenant's L3 interface. More... | |
const lisp_gpe_tenant_t * | lisp_gpe_tenant_get (u32 index) |
get a const pointer to the tenant object More... | |
void | lisp_gpe_tenant_flush (void) |
Flush/delete ALL the tenants. More... | |
static u8 * | format_lisp_gpe_tenant (u8 *s, va_list *ap) |
Show/display one tenant More... | |
static clib_error_t * | lisp_gpe_tenant_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
CLI command to show LISP-GPE tenant. More... | |
Variables | |
static lisp_gpe_tenant_t * | lisp_gpe_tenant_pool |
The pool of all tenants. More... | |
uword * | lisp_gpe_tenant_db |
The hash table of all tenants: key:{VNI}. More... | |
vlib_cli_command_t | lisp_gpe_tenant_command |
(constructor) VLIB_CLI_COMMAND (lisp_gpe_tenant_command) More... | |
Show/display one tenant
Definition at line 278 of file lisp_gpe_tenant.c.
|
static |
If there are no more locks/users of te tenant, then delete it.
Definition at line 85 of file lisp_gpe_tenant.c.
|
static |
Find or create a tenant for the given VNI.
Definition at line 67 of file lisp_gpe_tenant.c.
|
static |
Definition at line 42 of file lisp_gpe_tenant.c.
void lisp_gpe_tenant_flush | ( | void | ) |
Flush/delete ALL the tenants.
Definition at line 261 of file lisp_gpe_tenant.c.
const lisp_gpe_tenant_t* lisp_gpe_tenant_get | ( | u32 | index | ) |
get a const pointer to the tenant object
Definition at line 252 of file lisp_gpe_tenant.c.
Add/create and lock a new or find and lock the existing L2 interface for the tenant.
vni The tenant's VNI
table_id | the Tenant's L2 Bridge Domain ID. |
Definition at line 182 of file lisp_gpe_tenant.c.
void lisp_gpe_tenant_l2_iface_unlock | ( | u32 | vni | ) |
Release the lock held on the tenant's L3 interface.
Definition at line 215 of file lisp_gpe_tenant.c.
Add/create and lock a new or find and lock the existing L3 interface for the tenant.
vni The tenant's VNI
table_id | the Tenant's L3 table ID. |
with_default_route | Install default route for the interface |
Definition at line 110 of file lisp_gpe_tenant.c.
void lisp_gpe_tenant_l3_iface_unlock | ( | u32 | vni | ) |
Release the lock held on the tenant's L3 interface.
Definition at line 139 of file lisp_gpe_tenant.c.
|
static |
CLI command to show LISP-GPE tenant.
Definition at line 303 of file lisp_gpe_tenant.c.
vlib_cli_command_t lisp_gpe_tenant_command |
(constructor) VLIB_CLI_COMMAND (lisp_gpe_tenant_command)
Definition at line 319 of file lisp_gpe_tenant.c.
uword* lisp_gpe_tenant_db |
The hash table of all tenants: key:{VNI}.
Definition at line 26 of file lisp_gpe_tenant.c.
|
static |
The pool of all tenants.
Definition at line 21 of file lisp_gpe_tenant.c.