FD.io VPP  v16.06
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, 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)
 
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 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

vlib_cli_command_t configure_policer_command
 (constructor) VLIB_CLI_COMMAND (configure_policer_command) More...
 
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)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS

Definition at line 267 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 277 of file policer.c.

+ Here is the call graph for this function:

u8* format_policer_config ( u8 s,
va_list *  va 
)

Definition at line 143 of file policer.c.

+ Here is the call graph for this function:

u8* format_policer_instance ( u8 s,
va_list *  va 
)

Definition at line 68 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 105 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 88 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 119 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,
u8  is_add 
)

Definition at line 19 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 360 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 321 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 245 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 223 of file policer.c.

+ Here is the call graph for this function:

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

Definition at line 256 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 234 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 205 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 185 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 161 of file policer.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t configure_policer_command
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:277

(constructor) VLIB_CLI_COMMAND (configure_policer_command)

Definition at line 313 of file policer.c.

vlib_cli_command_t show_policer_command
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:321

(constructor) VLIB_CLI_COMMAND (show_policer_command)

Definition at line 354 of file policer.c.