FD.io VPP  v17.04-9-g99c0734
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

#define POLICER_TICKS_PER_PERIOD   (1 << POLICER_TICKS_PER_PERIOD_SHIFT)

Definition at line 58 of file police.h.

#define POLICER_TICKS_PER_PERIOD_SHIFT   17

Definition at line 57 of file police.h.

Enumeration Type Documentation

Enumerator
POLICE_CONFORM 
POLICE_EXCEED 
POLICE_VIOLATE 

Definition at line 18 of file police.h.

Function Documentation

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: