|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
111 u8 with_default_route)
320 .path =
"show gpe tenant",
321 .short_help =
"show gpe tenant",
u32 lt_table_id
The tenant can have both L2 and L3 services enabled.
@ LISP_GPE_TENANT_LOCK_L2_IFACE
static lisp_gpe_tenant_t * lisp_gpe_tenant_find(u32 vni)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define pool_put(P, E)
Free an object E in pool P.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
void lisp_gpe_del_l3_iface(lisp_gpe_main_t *lgm, u32 vni, u32 table_id)
u32 lisp_gpe_add_l2_iface(lisp_gpe_main_t *lgm, u32 vni, u32 bd_id)
Add/del LISP-GPE L2 interface.
void lisp_gpe_tenant_flush(void)
Flush/delete ALL the tenants.
const lisp_gpe_tenant_t * lisp_gpe_tenant_get(u32 index)
get a const pointer to the tenant object
u32 lisp_gpe_tenant_find_or_create(u32 vni)
Find or create a tenant for the given VNI.
#define hash_set(h, key, value)
#define pool_foreach(VAR, POOL)
Iterate through pool.
@ LISP_GPE_TENANT_LOCK_NUM
u32 lt_vni
The VNI is the identifier of the tenant.
void lisp_gpe_tenant_l2_iface_unlock(u32 vni)
Release the lock held on the tenant's L3 interface.
void lisp_gpe_tenant_l3_iface_unlock(u32 vni)
Release the lock held on the tenant's L3 interface.
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.
sll srl srl sll sra u16x4 i
static lisp_gpe_tenant_t * lisp_gpe_tenant_pool
The pool of all tenants.
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
static u8 * format_lisp_gpe_tenant(u8 *s, va_list *ap)
Show/display one tenant.
#define VLIB_CLI_COMMAND(x,...)
u32 lisp_gpe_add_l3_iface(lisp_gpe_main_t *lgm, u32 vni, u32 table_id, u8 with_default_routes)
Add/del LISP-GPE L3 interface.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
u32 lt_l2_sw_if_index
The L2 SW interface index.
Representation of the data associated with a LISP overlay tenant.
vlib_cli_command_t lisp_gpe_tenant_command
(constructor) VLIB_CLI_COMMAND (lisp_gpe_tenant_command)
u32 lt_l3_sw_if_index
The L3 SW interface index.
description fragment has unexpected format
uword * lisp_gpe_tenant_db
The hash table of all tenants: key:{VNI}.
static lisp_gpe_tenant_t * lisp_gpe_tenant_find_or_create_i(u32 vni)
void lisp_gpe_del_l2_iface(lisp_gpe_main_t *lgm, u32 vni, u32 bd_id)
Add/del LISP-GPE L2 interface.
@ LISP_GPE_TENANT_LOCK_L3_IFACE
#define hash_unset(h, key)
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.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
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.
#define clib_warning(format, args...)
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.
u32 lt_locks[LISP_GPE_TENANT_LOCK_NUM]
The number of locks on the tenant's L3 interface.