FD.io VPP  v19.01.3-6-g70449b9b9
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)
 
int gbp_ext_itf_delete (u32 sw_if_index)
 
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_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 
)

Definition at line 52 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_delete()

int gbp_ext_itf_delete ( u32  sw_if_index)

Definition at line 111 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 191 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 166 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 158 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 144 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:166

(constructor) VLIB_CLI_COMMAND (gbp_ext_itf_show_node)

Definition at line 183 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.