FD.io VPP  v19.04.4-rc0-5-ge88582fac
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
 

Macros

#define foreach_vnet_dscp
 

Enumerations

enum  vnet_policer_index_t { VNET_POLICER_INDEX_BY_SW_IF_INDEX, VNET_POLICER_INDEX_BY_OPAQUE, VNET_POLICER_INDEX_BY_EITHER }
 
enum  vnet_policer_next_t { VNET_POLICER_NEXT_TRANSMIT, VNET_POLICER_NEXT_DROP, VNET_POLICER_N_NEXT }
 
enum  vnet_dscp_t { foreach_vnet_dscp }
 

Functions

u8format_policer_instance (u8 *s, va_list *va)
 
clib_error_tpolicer_add_del (vlib_main_t *vm, u8 *name, sse2_qos_pol_cfg_params_st *cfg, u32 *policer_index, u8 is_add)
 

Variables

vnet_policer_main_t vnet_policer_main
 

Macro Definition Documentation

◆ foreach_vnet_dscp

#define foreach_vnet_dscp
Value:
_(0 , CS0, "CS0") \
_(8 , CS1, "CS1") \
_(10, AF11, "AF11") \
_(12, AF12, "AF12") \
_(14, AF13, "AF13") \
_(16, CS2, "CS2") \
_(18, AF21, "AF21") \
_(20, AF22, "AF22") \
_(22, AF23, "AF23") \
_(24, CS3, "CS3") \
_(26, AF31, "AF31") \
_(28, AF32, "AF32") \
_(30, AF33, "AF33") \
_(32, CS4, "CS4") \
_(34, AF41, "AF41") \
_(36, AF42, "AF42") \
_(38, AF43, "AF43") \
_(40, CS5, "CS5") \
_(46, EF, "EF") \
_(48, CS6, "CS6") \
_(50, CS7, "CS7")

Definition at line 63 of file policer.h.

Enumeration Type Documentation

◆ vnet_dscp_t

Enumerator
foreach_vnet_dscp 

Definition at line 86 of file policer.h.

◆ vnet_policer_index_t

Enumerator
VNET_POLICER_INDEX_BY_SW_IF_INDEX 
VNET_POLICER_INDEX_BY_OPAQUE 
VNET_POLICER_INDEX_BY_EITHER 

Definition at line 49 of file policer.h.

◆ vnet_policer_next_t

Enumerator
VNET_POLICER_NEXT_TRANSMIT 
VNET_POLICER_NEXT_DROP 
VNET_POLICER_N_NEXT 

Definition at line 56 of file policer.h.

Function Documentation

◆ format_policer_instance()

u8* format_policer_instance ( u8 s,
va_list *  va 
)

Definition at line 101 of file policer.c.

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

◆ policer_add_del()

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 22 of file policer.c.

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

Variable Documentation

◆ vnet_policer_main

vnet_policer_main_t vnet_policer_main

Definition at line 19 of file policer.c.