FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
|
The FIB DPO provieds;. More...
Data Fields | |
u16 | lb_n_buckets |
number of buckets in the load-balance. More... | |
u16 | lb_n_buckets_minus_1 |
number of buckets in the load-balance - 1. More... | |
dpo_proto_t | lb_proto |
The protocol of packets that traverse this LB. More... | |
u32 | lb_locks |
The number of locks, which is approximately the number of users, of this load-balance. More... | |
index_t | lb_map |
index of the load-balance map, INVALID if this LB does not use one More... | |
index_t | lb_urpf |
This is the index of the uRPF list for this LB. More... | |
flow_hash_config_t | lb_hash_config |
the hash config to use when selecting a bucket. More... | |
dpo_id_t * | lb_buckets |
Vector of buckets containing the next DPOs, sized as lbo_num. More... | |
dpo_id_t | lb_buckets_inline [LB_NUM_INLINE_BUCKETS] |
The rest of the cache line is used for buckets. More... | |
The FIB DPO provieds;.
Definition at line 83 of file load_balance.h.
dpo_id_t* load_balance_t_::lb_buckets |
Vector of buckets containing the next DPOs, sized as lbo_num.
Definition at line 127 of file load_balance.h.
dpo_id_t load_balance_t_::lb_buckets_inline[LB_NUM_INLINE_BUCKETS] |
The rest of the cache line is used for buckets.
In the common case where there there are less than 4 buckets, then the buckets are on the same cachlie and we save ourselves a pointer dereferance in the data-path.
Definition at line 135 of file load_balance.h.
flow_hash_config_t load_balance_t_::lb_hash_config |
the hash config to use when selecting a bucket.
this is a u16
Definition at line 122 of file load_balance.h.
u32 load_balance_t_::lb_locks |
The number of locks, which is approximately the number of users, of this load-balance.
Load-balance objects of via-entries are heavily shared by recursives, so the lock count is a u32.
Definition at line 107 of file load_balance.h.
index_t load_balance_t_::lb_map |
index of the load-balance map, INVALID if this LB does not use one
Definition at line 112 of file load_balance.h.
u16 load_balance_t_::lb_n_buckets |
number of buckets in the load-balance.
always a power of 2.
Definition at line 87 of file load_balance.h.
u16 load_balance_t_::lb_n_buckets_minus_1 |
number of buckets in the load-balance - 1.
used in the switch path as part of the hash calculation.
Definition at line 92 of file load_balance.h.
dpo_proto_t load_balance_t_::lb_proto |
The protocol of packets that traverse this LB.
need in combination with the flow hash config to determine how to hash. u8.
Definition at line 99 of file load_balance.h.
index_t load_balance_t_::lb_urpf |
This is the index of the uRPF list for this LB.
Definition at line 117 of file load_balance.h.