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

Go to the source code of this file.

Functions

static void vnet_policer_classify_feature_enable (vlib_main_t *vnm, policer_classify_main_t *pcm, u32 sw_if_index, policer_classify_table_id_t tid, int feature_enable)
 
int vnet_set_policer_classify_intfc (vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 l2_table_index, u32 is_add)
 
static clib_error_tset_policer_classify_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static uword unformat_table_type (unformat_input_t *input, va_list *va)
 
static clib_error_tshow_policer_classify_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

policer_classify_main_t policer_classify_main
 
static vlib_cli_command_t set_policer_classify_command
 (constructor) VLIB_CLI_COMMAND (set_policer_classify_command) More...
 
static vlib_cli_command_t show_policer_classify_command
 (constructor) VLIB_CLI_COMMAND (show_policer_classify_command) More...
 

Function Documentation

◆ set_policer_classify_command_fn()

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

Definition at line 110 of file policer_classify.c.

+ Here is the call graph for this function:

◆ show_policer_classify_command_fn()

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

Definition at line 197 of file policer_classify.c.

+ Here is the call graph for this function:

◆ unformat_table_type()

static uword unformat_table_type ( unformat_input_t input,
va_list *  va 
)
static

Definition at line 178 of file policer_classify.c.

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

◆ vnet_policer_classify_feature_enable()

static void vnet_policer_classify_feature_enable ( vlib_main_t vnm,
policer_classify_main_t pcm,
u32  sw_if_index,
policer_classify_table_id_t  tid,
int  feature_enable 
)
static

Definition at line 21 of file policer_classify.c.

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

◆ vnet_set_policer_classify_intfc()

int vnet_set_policer_classify_intfc ( vlib_main_t vm,
u32  sw_if_index,
u32  ip4_table_index,
u32  ip6_table_index,
u32  l2_table_index,
u32  is_add 
)

Definition at line 57 of file policer_classify.c.

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

Variable Documentation

◆ policer_classify_main

policer_classify_main_t policer_classify_main

Definition at line 18 of file policer_classify.c.

◆ set_policer_classify_command

vlib_cli_command_t set_policer_classify_command
static
Initial value:
= {
.path = "set policer classify",
.short_help =
"set policer classify interface <int> [ip4-table <index>]\n"
" [ip6-table <index>] [l2-table <index>] [del]",
}
static clib_error_t * set_policer_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_policer_classify_command)

Definition at line 168 of file policer_classify.c.

◆ show_policer_classify_command

vlib_cli_command_t show_policer_classify_command
static
Initial value:
= {
.path = "show classify policer",
.short_help = "show classify policer type [ip4|ip6|l2]",
}
static clib_error_t * show_policer_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_policer_classify_command)

Definition at line 235 of file policer_classify.c.