FD.io VPP  v21.06
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.

Data Structures

struct  policer_handoff_trace_t_
 

Macros

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

Typedefs

typedef struct policer_handoff_trace_t_ policer_handoff_trace_t
 

Enumerations

enum  policer_handoff_error_t { POLICER_HANDOFF_ERROR_CONGESTION_DROP }
 

Functions

static_always_inline void vnet_policer_mark (vlib_buffer_t *b, ip_dscp_t 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, bool handoff)
 
u8format_policer_handoff_trace (u8 *s, va_list *args)
 
static_always_inline uword policer_handoff (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 fq_index, u32 policer_index)
 

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.

Typedef Documentation

◆ policer_handoff_trace_t

Enumeration Type Documentation

◆ policer_handoff_error_t

Enumerator
POLICER_HANDOFF_ERROR_CONGESTION_DROP 

Definition at line 102 of file police_inlines.h.

Function Documentation

◆ format_policer_handoff_trace()

u8* format_policer_handoff_trace ( u8 s,
va_list *  args 
)

Definition at line 25 of file policer.c.

◆ policer_handoff()

static_always_inline uword policer_handoff ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u32  fq_index,
u32  policer_index 
)

Definition at line 118 of file police_inlines.h.

+ Here is the call graph for this function:

◆ vnet_policer_mark()

static_always_inline void vnet_policer_mark ( vlib_buffer_t b,
ip_dscp_t  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,
bool  handoff 
)

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: