FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
policer.h File Reference
+ Include dependency graph for policer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vnet_policer_main_t
 

Enumerations

enum  vnet_policer_next_t { VNET_POLICER_NEXT_DROP, VNET_POLICER_NEXT_HANDOFF, VNET_POLICER_N_NEXT }
 

Functions

u8format_policer_instance (u8 *s, va_list *va)
 
clib_error_tpolicer_add_del (vlib_main_t *vm, u8 *name, qos_pol_cfg_params_st *cfg, u32 *policer_index, u8 is_add)
 
int policer_bind_worker (u8 *name, u32 worker, bool bind)
 
int policer_input (u8 *name, u32 sw_if_index, bool apply)
 

Variables

vnet_policer_main_t vnet_policer_main
 
vlib_combined_counter_main_t policer_counters []
 
vlib_node_registration_t policer_input_node
 (constructor) VLIB_REGISTER_NODE (policer_input_node) More...
 

Enumeration Type Documentation

◆ vnet_policer_next_t

Enumerator
VNET_POLICER_NEXT_DROP 
VNET_POLICER_NEXT_HANDOFF 
VNET_POLICER_N_NEXT 

Definition at line 60 of file policer.h.

Function Documentation

◆ format_policer_instance()

u8* format_policer_instance ( u8 s,
va_list *  va 
)

Definition at line 201 of file policer.c.

+ Here is the call graph for this function:

◆ policer_add_del()

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

Definition at line 53 of file policer.c.

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

◆ policer_bind_worker()

int policer_bind_worker ( u8 name,
u32  worker,
bool  bind 
)

Definition at line 138 of file policer.c.

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

◆ policer_input()

int policer_input ( u8 name,
u32  sw_if_index,
bool  apply 
)

Definition at line 169 of file policer.c.

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

Variable Documentation

◆ policer_counters

vlib_combined_counter_main_t policer_counters[]

Definition at line 37 of file policer.c.

◆ policer_input_node

vlib_node_registration_t policer_input_node

(constructor) VLIB_REGISTER_NODE (policer_input_node)

Definition at line 262 of file node_funcs.c.

◆ vnet_policer_main

vnet_policer_main_t vnet_policer_main

Definition at line 22 of file policer.c.