FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
police_inlines.h File Reference
+ Include dependency graph for police_inlines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IP4_NON_DSCP_BITS   0x03
 
#define IP4_DSCP_SHIFT   2
 
#define IP6_NON_DSCP_BITS   0xf03fffff
 
#define IP6_DSCP_SHIFT   22
 

Functions

static_always_inline void vnet_policer_mark (vlib_buffer_t *b, u8 dscp)
 
static_always_inline u8 vnet_policer_police (vlib_main_t *vm, vlib_buffer_t *b, u32 policer_index, u64 time_in_policer_periods, policer_result_e packet_color)
 

Macro Definition Documentation

◆ IP4_DSCP_SHIFT

#define IP4_DSCP_SHIFT   2

Definition at line 23 of file police_inlines.h.

◆ IP4_NON_DSCP_BITS

#define IP4_NON_DSCP_BITS   0x03

Definition at line 22 of file police_inlines.h.

◆ IP6_DSCP_SHIFT

#define IP6_DSCP_SHIFT   22

Definition at line 25 of file police_inlines.h.

◆ IP6_NON_DSCP_BITS

#define IP6_NON_DSCP_BITS   0xf03fffff

Definition at line 24 of file police_inlines.h.

Function Documentation

◆ vnet_policer_mark()

static_always_inline void vnet_policer_mark ( vlib_buffer_t b,
u8  dscp 
)

Definition at line 28 of file police_inlines.h.

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

◆ vnet_policer_police()

static_always_inline u8 vnet_policer_police ( vlib_main_t vm,
vlib_buffer_t b,
u32  policer_index,
u64  time_in_policer_periods,
policer_result_e  packet_color 
)

Definition at line 59 of file police_inlines.h.

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