FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | replicate_main_t_ |
replicate main More... | |
struct | replicate_t_ |
The FIB DPO provieds;. More... | |
Macros | |
#define | REP_NUM_INLINE_BUCKETS 4 |
The number of buckets that a load-balance object can have and still fit in one cache-line. More... | |
#define | REP_HAS_INLINE_BUCKETS(_rep) ((_rep)->rep_n_buckets <= REP_NUM_INLINE_BUCKETS) |
Typedefs | |
typedef struct replicate_main_t_ | replicate_main_t |
replicate main More... | |
typedef struct replicate_t_ | replicate_t |
The FIB DPO provieds;. More... | |
typedef enum replicate_format_flags_t_ | replicate_format_flags_t |
Flags controlling load-balance formatting/display. More... | |
Enumerations | |
enum | replicate_format_flags_t_ { REPLICATE_FORMAT_NONE, REPLICATE_FORMAT_DETAIL = (1 << 0) } |
Flags controlling load-balance formatting/display. More... | |
Functions | |
STATIC_ASSERT (sizeof(replicate_t)<=CLIB_CACHE_LINE_BYTES,"A replicate object size exceeds one cachline") | |
index_t | replicate_create (u32 num_buckets, dpo_proto_t rep_proto) |
void | replicate_multipath_update (const dpo_id_t *dpo, load_balance_path_t *next_hops) |
void | replicate_set_bucket (index_t repi, u32 bucket, const dpo_id_t *next) |
u8 * | format_replicate (u8 *s, va_list *args) |
const dpo_id_t * | replicate_get_bucket (index_t repi, u32 bucket) |
int | replicate_is_drop (const dpo_id_t *dpo) |
u16 | replicate_n_buckets (index_t repi) |
static replicate_t * | replicate_get (index_t repi) |
static const dpo_id_t * | replicate_get_bucket_i (const replicate_t *rep, u32 bucket) |
void | replicate_module_init (void) |
Variables | |
replicate_main_t | replicate_main |
The one instance of replicate main. More... | |
replicate_t * | replicate_pool |
The encapsulation breakages are for fast DP access. More... | |
#define REP_HAS_INLINE_BUCKETS | ( | _rep | ) | ((_rep)->rep_n_buckets <= REP_NUM_INLINE_BUCKETS) |
Definition at line 135 of file replicate_dpo.h.
#define REP_NUM_INLINE_BUCKETS 4 |
The number of buckets that a load-balance object can have and still fit in one cache-line.
Definition at line 47 of file replicate_dpo.h.
typedef enum replicate_format_flags_t_ replicate_format_flags_t |
Flags controlling load-balance formatting/display.
typedef struct replicate_main_t_ replicate_main_t |
replicate main
typedef struct replicate_t_ replicate_t |
The FIB DPO provieds;.
Flags controlling load-balance formatting/display.
Enumerator | |
---|---|
REPLICATE_FORMAT_NONE | |
REPLICATE_FORMAT_DETAIL |
Definition at line 101 of file replicate_dpo.h.
Definition at line 129 of file replicate_dpo.c.
index_t replicate_create | ( | u32 | num_buckets, |
dpo_proto_t | rep_proto | ||
) |
Definition at line 169 of file replicate_dpo.c.
|
inlinestatic |
|
inlinestatic |
Definition at line 139 of file replicate_dpo.h.
int replicate_is_drop | ( | const dpo_id_t * | dpo | ) |
void replicate_module_init | ( | void | ) |
Definition at line 575 of file replicate_dpo.c.
void replicate_multipath_update | ( | const dpo_id_t * | dpo, |
load_balance_path_t * | next_hops | ||
) |
Definition at line 287 of file replicate_dpo.c.
STATIC_ASSERT | ( | sizeof(replicate_t)<= | CLIB_CACHE_LINE_BYTES, |
"A replicate object size exceeds one cachline" | |||
) |
replicate_main_t replicate_main |
The one instance of replicate main.
Definition at line 62 of file replicate_dpo.c.
replicate_t* replicate_pool |
The encapsulation breakages are for fast DP access.
The encapsulation breakages are for fast DP access.
It's not static so the DP can have fast access
Definition at line 57 of file replicate_dpo.c.