FD.io VPP  v17.07.01-10-g3be13f0
Vector Packet Processing
policer.c File Reference
+ Include dependency graph for policer.c:

Go to the source code of this file.

Macros

#define foreach_config_param
 

Functions

clib_error_tpolicer_add_del (vlib_main_t *vm, u8 *name, sse2_qos_pol_cfg_params_st *cfg, u32 *policer_index, u8 is_add)
 
u8format_policer_instance (u8 *s, va_list *va)
 
static u8format_policer_round_type (u8 *s, va_list *va)
 
static u8format_policer_rate_type (u8 *s, va_list *va)
 
static u8format_policer_type (u8 *s, va_list *va)
 
static u8format_dscp (u8 *s, va_list *va)
 
static u8format_policer_action_type (u8 *s, va_list *va)
 
u8format_policer_config (u8 *s, va_list *va)
 
static uword unformat_policer_type (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_round_type (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_rate_type (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_cir (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_eir (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_cb (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_eb (unformat_input_t *input, va_list *va)
 
static uword unformat_dscp (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_action_type (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_action (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_classify_next_index (unformat_input_t *input, va_list *va)
 
static uword unformat_policer_classify_precolor (unformat_input_t *input, va_list *va)
 
static clib_error_tconfigure_policer_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_policer_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tpolicer_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t configure_policer_command
 (constructor) VLIB_CLI_COMMAND (configure_policer_command) More...
 
static vlib_cli_command_t show_policer_command
 (constructor) VLIB_CLI_COMMAND (show_policer_command) More...
 

Macro Definition Documentation

#define foreach_config_param
Value:
_(eb) \
_(cb) \
_(eir) \
_(cir) \
_(rate_type) \
_(round_type) \
_(type) \
_(action)

Definition at line 396 of file policer.c.

Function Documentation

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

Definition at line 407 of file policer.c.

+ Here is the call graph for this function:

static u8* format_dscp ( u8 s,
va_list *  va 
)
static

Definition at line 159 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_policer_action_type ( u8 s,
va_list *  va 
)
static

Definition at line 177 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_policer_config ( u8 s,
va_list *  va 
)

Definition at line 194 of file policer.c.

+ Here is the call graph for this function:

u8* format_policer_instance ( u8 s,
va_list *  va 
)

Definition at line 86 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_policer_rate_type ( u8 s,
va_list *  va 
)
static

Definition at line 121 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_policer_round_type ( u8 s,
va_list *  va 
)
static

Definition at line 104 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_policer_type ( u8 s,
va_list *  va 
)
static

Definition at line 135 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* policer_add_del ( vlib_main_t vm,
u8 name,
sse2_qos_pol_cfg_params_st cfg,
u32 policer_index,
u8  is_add 
)

Definition at line 20 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* policer_init ( vlib_main_t vm)

Definition at line 504 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 461 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 311 of file policer.c.

+ Here is the caller graph for this function:

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

Definition at line 342 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 325 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 291 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 271 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 359 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 382 of file policer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 301 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 281 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 254 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 235 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 212 of file policer.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t configure_policer_command
static
Initial value:
= {
.path = "configure policer",
.short_help = "configure policer name <name> <params> ",
}
static clib_error_t * configure_policer_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: policer.c:407

(constructor) VLIB_CLI_COMMAND (configure_policer_command)

Definition at line 453 of file policer.c.

vlib_cli_command_t show_policer_command
static
Initial value:
= {
.path = "show policer",
.short_help = "show policer [name]",
}
static clib_error_t * show_policer_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: policer.c:461

(constructor) VLIB_CLI_COMMAND (show_policer_command)

Definition at line 496 of file policer.c.