FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
gbp_ext_itf.c File Reference
+ Include dependency graph for gbp_ext_itf.c:

Go to the source code of this file.

Macros

#define GBP_EXT_ITF_ID   0x00000080
 
#define GBP_EXT_ITF_DBG(...)   vlib_log_debug (gx_logger, __VA_ARGS__);
 

Functions

u8format_gbp_ext_itf (u8 *s, va_list *args)
 
int gbp_ext_itf_add (u32 sw_if_index, u32 bd_id, u32 rd_id, u32 flags)
 
int gbp_ext_itf_delete (u32 sw_if_index)
 
static clib_error_tgbp_ext_itf_add_del_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void gbp_ext_itf_walk (gbp_ext_itf_cb_t cb, void *ctx)
 
static walk_rc_t gbp_ext_itf_show_one (gbp_ext_itf_t *gx, void *ctx)
 
static clib_error_tgbp_ext_itf_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tgbp_ext_itf_init (vlib_main_t *vm)
 

Variables

gbp_ext_itf_tgbp_ext_itf_pool
 Pool of GBP ext_itfs. More...
 
index_tgbp_ext_itf_db
 external interface configs keyed by sw_if_index More...
 
vlib_log_class_t gx_logger
 logger More...
 
static vlib_cli_command_t gbp_itf_anon_l3out_add_del_node
 (constructor) VLIB_CLI_COMMAND (gbp_itf_anon_l3out_add_del_node) More...
 
static vlib_cli_command_t gbp_ext_itf_show_node
 (constructor) VLIB_CLI_COMMAND (gbp_ext_itf_show_node) More...
 

Macro Definition Documentation

◆ GBP_EXT_ITF_DBG

#define GBP_EXT_ITF_DBG (   ...)    vlib_log_debug (gx_logger, __VA_ARGS__);

Definition at line 38 of file gbp_ext_itf.c.

◆ GBP_EXT_ITF_ID

#define GBP_EXT_ITF_ID   0x00000080

Definition at line 31 of file gbp_ext_itf.c.

Function Documentation

◆ format_gbp_ext_itf()

u8* format_gbp_ext_itf ( u8 s,
va_list *  args 
)

Definition at line 42 of file gbp_ext_itf.c.

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

◆ gbp_ext_itf_add()

int gbp_ext_itf_add ( u32  sw_if_index,
u32  bd_id,
u32  rd_id,
u32  flags 
)

Definition at line 53 of file gbp_ext_itf.c.

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

◆ gbp_ext_itf_add_del_cli()

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

Definition at line 151 of file gbp_ext_itf.c.

+ Here is the call graph for this function:

◆ gbp_ext_itf_delete()

int gbp_ext_itf_delete ( u32  sw_if_index)

Definition at line 122 of file gbp_ext_itf.c.

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

◆ gbp_ext_itf_init()

static clib_error_t* gbp_ext_itf_init ( vlib_main_t vm)
static

Definition at line 278 of file gbp_ext_itf.c.

+ Here is the call graph for this function:

◆ gbp_ext_itf_show()

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

Definition at line 253 of file gbp_ext_itf.c.

+ Here is the call graph for this function:

◆ gbp_ext_itf_show_one()

static walk_rc_t gbp_ext_itf_show_one ( gbp_ext_itf_t gx,
void *  ctx 
)
static

Definition at line 245 of file gbp_ext_itf.c.

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

◆ gbp_ext_itf_walk()

void gbp_ext_itf_walk ( gbp_ext_itf_cb_t  cb,
void *  ctx 
)

Definition at line 231 of file gbp_ext_itf.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ gbp_ext_itf_db

index_t* gbp_ext_itf_db

external interface configs keyed by sw_if_index

Definition at line 29 of file gbp_ext_itf.c.

◆ gbp_ext_itf_pool

gbp_ext_itf_t* gbp_ext_itf_pool

Pool of GBP ext_itfs.

Exposed types for the data-plane.

Definition at line 24 of file gbp_ext_itf.c.

◆ gbp_ext_itf_show_node

vlib_cli_command_t gbp_ext_itf_show_node
static
Initial value:
= {
.path = "show gbp ext-itf",
.short_help = "show gbp ext-itf\n",
.function = gbp_ext_itf_show,
}
static clib_error_t * gbp_ext_itf_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: gbp_ext_itf.c:253

(constructor) VLIB_CLI_COMMAND (gbp_ext_itf_show_node)

Definition at line 270 of file gbp_ext_itf.c.

◆ gbp_itf_anon_l3out_add_del_node

vlib_cli_command_t gbp_itf_anon_l3out_add_del_node
static
Initial value:
= {
.path = "gbp ext-itf",
.short_help = "gbp ext-itf [del] <interface> bd <ID> rd <ID> [anon-l3-out]\n",
}
static clib_error_t * gbp_ext_itf_add_del_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: gbp_ext_itf.c:151

(constructor) VLIB_CLI_COMMAND (gbp_itf_anon_l3out_add_del_node)

Definition at line 223 of file gbp_ext_itf.c.

◆ gx_logger

vlib_log_class_t gx_logger

logger

Definition at line 36 of file gbp_ext_itf.c.