FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
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) |
#define THROTTLE_BITS (512) |
Definition at line 36 of file throttle.h.
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.
|
inlinestatic |
Definition at line 54 of file throttle.h.
void throttle_init | ( | throttle_t * | t, |
u32 | n_threads, | ||
f64 | time | ||
) |
|
inlinestatic |
Definition at line 41 of file throttle.h.