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

Go to the source code of this file.

Data Structures

struct  gbp_itf_t_
 Attributes and configurations attached to interfaces by GBP. More...
 

Typedefs

typedef struct gbp_itf_t_ gbp_itf_t
 Attributes and configurations attached to interfaces by GBP. More...
 

Functions

static gbp_itf_tgbp_itf_get (index_t gii)
 
static index_t gbp_itf_get_itf (u32 sw_if_index)
 
index_t gbp_itf_add_and_lock (u32 sw_if_index, u32 bd_index)
 
void gbp_itf_unlock (index_t gii)
 
void gbp_itf_set_l2_input_feature (index_t gii, index_t useri, l2input_feat_masks_t feats)
 
void gbp_itf_set_l2_output_feature (index_t gii, index_t useri, l2output_feat_masks_t feats)
 
u8format_gbp_itf (u8 *s, va_list *args)
 
static clib_error_tgbp_itf_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static gbp_itf_tgbp_itfs
 
static vlib_cli_command_t gbp_contract_show_node
 (constructor) VLIB_CLI_COMMAND (gbp_contract_show_node) More...
 

Typedef Documentation

◆ gbp_itf_t

typedef struct gbp_itf_t_ gbp_itf_t

Attributes and configurations attached to interfaces by GBP.

Function Documentation

◆ format_gbp_itf()

u8* format_gbp_itf ( u8 s,
va_list *  args 
)

Definition at line 190 of file gbp_itf.c.

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

◆ gbp_itf_add_and_lock()

index_t gbp_itf_add_and_lock ( u32  sw_if_index,
u32  bd_index 
)

Definition at line 57 of file gbp_itf.c.

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

◆ gbp_itf_get()

static gbp_itf_t* gbp_itf_get ( index_t  gii)
static

Definition at line 43 of file gbp_itf.c.

+ Here is the caller graph for this function:

◆ gbp_itf_get_itf()

static index_t gbp_itf_get_itf ( u32  sw_if_index)
static

Definition at line 51 of file gbp_itf.c.

+ Here is the caller graph for this function:

◆ gbp_itf_set_l2_input_feature()

void gbp_itf_set_l2_input_feature ( index_t  gii,
index_t  useri,
l2input_feat_masks_t  feats 
)

Definition at line 102 of file gbp_itf.c.

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

◆ gbp_itf_set_l2_output_feature()

void gbp_itf_set_l2_output_feature ( index_t  gii,
index_t  useri,
l2output_feat_masks_t  feats 
)

Definition at line 146 of file gbp_itf.c.

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

◆ gbp_itf_show()

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

Definition at line 208 of file gbp_itf.c.

+ Here is the call graph for this function:

◆ gbp_itf_unlock()

void gbp_itf_unlock ( index_t  gii)

Definition at line 81 of file gbp_itf.c.

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

Variable Documentation

◆ gbp_contract_show_node

vlib_cli_command_t gbp_contract_show_node
static
Initial value:
= {
.path = "show gbp interface",
.short_help = "show gbp interface\n",
.function = gbp_itf_show,
}
static clib_error_t * gbp_itf_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: gbp_itf.c:208

(constructor) VLIB_CLI_COMMAND (gbp_contract_show_node)

Definition at line 231 of file gbp_itf.c.

◆ gbp_itfs

gbp_itf_t* gbp_itfs
static

Definition at line 40 of file gbp_itf.c.