FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
lb_main_t Struct Reference
+ Collaboration diagram for lb_main_t:

Data Fields

lb_vip_tvips
 Pool of all Virtual IPs. More...
 
lb_as_tass
 Pool of ASs. More...
 
vlib_refcount_t as_refcount
 Each AS has an associated reference counter. More...
 
uwordvip_index_by_nodeport
 
lb_per_cpu_tper_cpu
 Some global data is per-cpu. More...
 
u32 ip_lookup_next_index [LB_VIP_N_TYPES]
 Node next index for IP adjacencies, for each of the traffic types. More...
 
ip6_address_t ip6_src_address
 Source address used in IPv6 encapsulated traffic. More...
 
ip4_address_t ip4_src_address
 Source address used for IPv4 encapsulated traffic. More...
 
u32 per_cpu_sticky_buckets
 Number of buckets in the per-cpu sticky hash table. More...
 
u32 flow_timeout
 Flow timeout in seconds. More...
 
vlib_simple_counter_main_t vip_counters [LB_N_VIP_COUNTERS]
 Per VIP counter. More...
 
dpo_type_t dpo_gre4_type
 DPO used to send packet from IP4/6 lookup to LB node. More...
 
dpo_type_t dpo_gre6_type
 
dpo_type_t dpo_l3dsr_type
 
dpo_type_t dpo_nat4_type
 
dpo_type_t dpo_nat6_type
 
fib_node_type_t fib_node_type
 Node type for registering to fib changes. More...
 
clib_bihash_8_8_t mapping_by_as4
 
clib_bihash_24_8_t mapping_by_as6
 
lb_snat_mapping_tsnat_mappings
 
u16 msg_id_base
 API dynamically registered base ID. More...
 
volatile u32writer_lock
 
vlib_main_tvlib_main
 
vnet_main_tvnet_main
 

Detailed Description

Definition at line 418 of file lb.h.

Field Documentation

vlib_refcount_t lb_main_t::as_refcount

Each AS has an associated reference counter.

As ass[0] has a special meaning, its associated counter starts at 0 and is decremented instead. i.e. do not use it.

Definition at line 437 of file lb.h.

lb_as_t* lb_main_t::ass

Pool of ASs.

ASs are referenced by address and vip index. The first element (index 0) is special and used only to fill new_flow_tables when no AS has been configured.

Definition at line 430 of file lb.h.

dpo_type_t lb_main_t::dpo_gre4_type

DPO used to send packet from IP4/6 lookup to LB node.

Definition at line 480 of file lb.h.

dpo_type_t lb_main_t::dpo_gre6_type

Definition at line 481 of file lb.h.

dpo_type_t lb_main_t::dpo_l3dsr_type

Definition at line 482 of file lb.h.

dpo_type_t lb_main_t::dpo_nat4_type

Definition at line 483 of file lb.h.

dpo_type_t lb_main_t::dpo_nat6_type

Definition at line 484 of file lb.h.

fib_node_type_t lb_main_t::fib_node_type

Node type for registering to fib changes.

Definition at line 489 of file lb.h.

u32 lb_main_t::flow_timeout

Flow timeout in seconds.

Definition at line 470 of file lb.h.

ip4_address_t lb_main_t::ip4_src_address

Source address used for IPv4 encapsulated traffic.

Definition at line 460 of file lb.h.

ip6_address_t lb_main_t::ip6_src_address

Source address used in IPv6 encapsulated traffic.

Definition at line 455 of file lb.h.

u32 lb_main_t::ip_lookup_next_index[LB_VIP_N_TYPES]

Node next index for IP adjacencies, for each of the traffic types.

Definition at line 450 of file lb.h.

clib_bihash_8_8_t lb_main_t::mapping_by_as4

Definition at line 492 of file lb.h.

clib_bihash_24_8_t lb_main_t::mapping_by_as6

Definition at line 493 of file lb.h.

u16 lb_main_t::msg_id_base

API dynamically registered base ID.

Definition at line 501 of file lb.h.

lb_per_cpu_t* lb_main_t::per_cpu

Some global data is per-cpu.

Definition at line 445 of file lb.h.

u32 lb_main_t::per_cpu_sticky_buckets

Number of buckets in the per-cpu sticky hash table.

Definition at line 465 of file lb.h.

lb_snat_mapping_t* lb_main_t::snat_mappings

Definition at line 496 of file lb.h.

Per VIP counter.

Definition at line 475 of file lb.h.

uword* lb_main_t::vip_index_by_nodeport

Definition at line 440 of file lb.h.

lb_vip_t* lb_main_t::vips

Pool of all Virtual IPs.

Definition at line 422 of file lb.h.

vlib_main_t* lb_main_t::vlib_main

Definition at line 506 of file lb.h.

vnet_main_t* lb_main_t::vnet_main

Definition at line 507 of file lb.h.

volatile u32* lb_main_t::writer_lock

Definition at line 503 of file lb.h.


The documentation for this struct was generated from the following file: