FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
police.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  policer_read_response_type_st
 

Macros

#define POLICER_TICKS_PER_PERIOD_SHIFT   17
 
#define POLICER_TICKS_PER_PERIOD   (1 << POLICER_TICKS_PER_PERIOD_SHIFT)
 

Enumerations

enum  policer_result_e { POLICE_CONFORM = 0, POLICE_EXCEED = 1, POLICE_VIOLATE = 2 }
 

Functions

static policer_result_e vnet_police_packet (policer_read_response_type_st *policer, u32 packet_length, policer_result_e packet_color, u64 time)
 

Macro Definition Documentation

◆ POLICER_TICKS_PER_PERIOD

#define POLICER_TICKS_PER_PERIOD   (1 << POLICER_TICKS_PER_PERIOD_SHIFT)

Definition at line 58 of file police.h.

◆ POLICER_TICKS_PER_PERIOD_SHIFT

#define POLICER_TICKS_PER_PERIOD_SHIFT   17

Definition at line 57 of file police.h.

Enumeration Type Documentation

◆ policer_result_e

Enumerator
POLICE_CONFORM 
POLICE_EXCEED 
POLICE_VIOLATE 

Definition at line 18 of file police.h.

Function Documentation

◆ vnet_police_packet()

static policer_result_e vnet_police_packet ( policer_read_response_type_st policer,
u32  packet_length,
policer_result_e  packet_color,
u64  time 
)
inlinestatic

Definition at line 90 of file police.h.

+ Here is the caller graph for this function: