FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
throttle.h File Reference
+ Include dependency graph for throttle.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  throttle_t_
 A throttle Used in the data plane to decide if a given hash should be throttled, i.e. More...
 

Macros

#define THROTTLE_BITS   (512)
 

Typedefs

typedef struct throttle_t_ throttle_t
 A throttle Used in the data plane to decide if a given hash should be throttled, i.e. More...
 

Functions

void throttle_init (throttle_t *t, u32 n_threads, f64 time)
 
static u64 throttle_seed (throttle_t *t, u32 thread_index, f64 time_now)
 
static int throttle_check (throttle_t *t, u32 thread_index, u64 hash, u64 seed)
 

Macro Definition Documentation

◆ THROTTLE_BITS

#define THROTTLE_BITS   (512)

Definition at line 36 of file throttle.h.

Typedef Documentation

◆ throttle_t

typedef struct throttle_t_ throttle_t

A throttle Used in the data plane to decide if a given hash should be throttled, i.e.

that the hash has been seen already 'recently'. Recent is the time given in the throttle's initialisation.

Function Documentation

◆ throttle_check()

static int throttle_check ( throttle_t t,
u32  thread_index,
u64  hash,
u64  seed 
)
inlinestatic

Definition at line 54 of file throttle.h.

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

◆ throttle_init()

void throttle_init ( throttle_t t,
u32  n_threads,
f64  time 
)

Definition at line 19 of file throttle.c.

+ Here is the caller graph for this function:

◆ throttle_seed()

static u64 throttle_seed ( throttle_t t,
u32  thread_index,
f64  time_now 
)
inlinestatic

Definition at line 41 of file throttle.h.

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