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

Macros

#define NUM_POLICE_RESULTS   3
 
#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_ASSERT_SIZEOF (policer_t, CLIB_CACHE_LINE_BYTES)
 
static policer_result_e vnet_police_packet (policer_t *policer, u32 packet_length, policer_result_e packet_color, u64 time)
 

Macro Definition Documentation

◆ NUM_POLICE_RESULTS

#define NUM_POLICE_RESULTS   3

Definition at line 25 of file police.h.

◆ POLICER_TICKS_PER_PERIOD

#define POLICER_TICKS_PER_PERIOD   (1 << POLICER_TICKS_PER_PERIOD_SHIFT)

Definition at line 71 of file police.h.

◆ POLICER_TICKS_PER_PERIOD_SHIFT

#define POLICER_TICKS_PER_PERIOD_SHIFT   17

Definition at line 70 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

◆ STATIC_ASSERT_SIZEOF()

STATIC_ASSERT_SIZEOF ( policer_t  ,
CLIB_CACHE_LINE_BYTES   
)

◆ vnet_police_packet()

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

Definition at line 106 of file police.h.

+ Here is the caller graph for this function: