FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
gbp_endpoint_group.c File Reference
+ Include dependency graph for gbp_endpoint_group.c:

Go to the source code of this file.

Macros

#define GBP_EPG_DBG(...)   vlib_log_debug (gg_logger, __VA_ARGS__);
 

Functions

gbp_endpoint_group_tgbp_endpoint_group_get (index_t i)
 
void gbp_endpoint_group_lock (index_t i)
 
index_t gbp_endpoint_group_find (sclass_t sclass)
 
int gbp_endpoint_group_add_and_lock (vnid_t vnid, u16 sclass, u32 bd_id, u32 rd_id, u32 uplink_sw_if_index, const gbp_endpoint_retention_t *retention)
 
void gbp_endpoint_group_unlock (index_t ggi)
 
int gbp_endpoint_group_delete (sclass_t sclass)
 
u32 gbp_endpoint_group_get_bd_id (const gbp_endpoint_group_t *gg)
 
index_t gbp_endpoint_group_get_fib_index (const gbp_endpoint_group_t *gg, fib_protocol_t fproto)
 
void gbp_endpoint_group_walk (gbp_endpoint_group_cb_t cb, void *ctx)
 
static clib_error_tgbp_endpoint_group_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_gbp_endpoint_retention (u8 *s, va_list *args)
 
u8format_gbp_endpoint_group (u8 *s, va_list *args)
 
static int gbp_endpoint_group_show_one (gbp_endpoint_group_t *gg, void *ctx)
 
static clib_error_tgbp_endpoint_group_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tgbp_endpoint_group_init (vlib_main_t *vm)
 

Variables

gbp_endpoint_group_tgbp_endpoint_group_pool
 Pool of GBP endpoint_groups. More...
 
gbp_endpoint_group_db_t gbp_endpoint_group_db
 DB of endpoint_groups. More...
 
uwordgbp_epg_sclass_db
 Map sclass to EPG. More...
 
vlib_log_class_t gg_logger
 
static vlib_cli_command_t gbp_endpoint_group_cli_node
 (constructor) VLIB_CLI_COMMAND (gbp_endpoint_group_cli_node) More...
 
static vlib_cli_command_t gbp_endpoint_group_show_node
 (constructor) VLIB_CLI_COMMAND (gbp_endpoint_group_show_node) More...
 

Macro Definition Documentation

◆ GBP_EPG_DBG

#define GBP_EPG_DBG (   ...)    vlib_log_debug (gg_logger, __VA_ARGS__);

Definition at line 44 of file gbp_endpoint_group.c.

Function Documentation

◆ format_gbp_endpoint_group()

u8* format_gbp_endpoint_group ( u8 s,
va_list *  args 
)

Definition at line 337 of file gbp_endpoint_group.c.

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

◆ format_gbp_endpoint_retention()

static u8* format_gbp_endpoint_retention ( u8 s,
va_list *  args 
)
static

Definition at line 327 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_add_and_lock()

int gbp_endpoint_group_add_and_lock ( vnid_t  vnid,
u16  sclass,
u32  bd_id,
u32  rd_id,
u32  uplink_sw_if_index,
const gbp_endpoint_retention_t retention 
)

Definition at line 76 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_cli()

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

Definition at line 259 of file gbp_endpoint_group.c.

+ Here is the call graph for this function:

◆ gbp_endpoint_group_delete()

int gbp_endpoint_group_delete ( sclass_t  sclass)

Definition at line 205 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_find()

index_t gbp_endpoint_group_find ( sclass_t  sclass)

Definition at line 63 of file gbp_endpoint_group.c.

+ Here is the caller graph for this function:

◆ gbp_endpoint_group_get()

gbp_endpoint_group_t* gbp_endpoint_group_get ( index_t  i)

Definition at line 48 of file gbp_endpoint_group.c.

+ Here is the caller graph for this function:

◆ gbp_endpoint_group_get_bd_id()

u32 gbp_endpoint_group_get_bd_id ( const gbp_endpoint_group_t gg)

Definition at line 224 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_get_fib_index()

index_t gbp_endpoint_group_get_fib_index ( const gbp_endpoint_group_t gg,
fib_protocol_t  fproto 
)

Definition at line 234 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_init()

static clib_error_t* gbp_endpoint_group_init ( vlib_main_t vm)
static

Definition at line 396 of file gbp_endpoint_group.c.

+ Here is the call graph for this function:

◆ gbp_endpoint_group_lock()

void gbp_endpoint_group_lock ( index_t  i)

Definition at line 54 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_show()

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

Definition at line 370 of file gbp_endpoint_group.c.

+ Here is the call graph for this function:

◆ gbp_endpoint_group_show_one()

static int gbp_endpoint_group_show_one ( gbp_endpoint_group_t gg,
void *  ctx 
)
static

Definition at line 359 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_unlock()

void gbp_endpoint_group_unlock ( index_t  ggi)

Definition at line 163 of file gbp_endpoint_group.c.

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

◆ gbp_endpoint_group_walk()

void gbp_endpoint_group_walk ( gbp_endpoint_group_cb_t  cb,
void *  ctx 
)

Definition at line 245 of file gbp_endpoint_group.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ gbp_endpoint_group_cli_node

vlib_cli_command_t gbp_endpoint_group_cli_node
static
Initial value:
= {
.path = "gbp endpoint-group",
.short_help = "gbp endpoint-group [del] epg <ID> bd <ID> rd <ID> <interface>",
}
static clib_error_t * gbp_endpoint_group_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (gbp_endpoint_group_cli_node)

Definition at line 320 of file gbp_endpoint_group.c.

◆ gbp_endpoint_group_db

gbp_endpoint_group_db_t gbp_endpoint_group_db

DB of endpoint_groups.

DP functions and databases.

Definition at line 35 of file gbp_endpoint_group.c.

◆ gbp_endpoint_group_pool

gbp_endpoint_group_t* gbp_endpoint_group_pool

Pool of GBP endpoint_groups.

Definition at line 30 of file gbp_endpoint_group.c.

◆ gbp_endpoint_group_show_node

vlib_cli_command_t gbp_endpoint_group_show_node
static
Initial value:
= {
.path = "show gbp endpoint-group",
.short_help = "show gbp endpoint-group\n",
}
static clib_error_t * gbp_endpoint_group_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (gbp_endpoint_group_show_node)

Definition at line 388 of file gbp_endpoint_group.c.

◆ gbp_epg_sclass_db

uword* gbp_epg_sclass_db

Map sclass to EPG.

Definition at line 40 of file gbp_endpoint_group.c.

◆ gg_logger

vlib_log_class_t gg_logger

Definition at line 42 of file gbp_endpoint_group.c.