FD.io VPP  v19.04.4-rc0-5-ge88582fac
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...
 
uwordvip_prefix_indexes
 bitmap for vip prefix to support per-port vip 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_gre4_port_type
 
dpo_type_t dpo_gre6_port_type
 
dpo_type_t dpo_l3dsr_type
 
dpo_type_t dpo_l3dsr_port_type
 
dpo_type_t dpo_nat4_port_type
 
dpo_type_t dpo_nat6_port_type
 
fib_node_type_t fib_node_type
 Node type for registering to fib changes. More...
 
clib_bihash_8_8_t vip_index_per_port
 
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 469 of file lb.h.

Field Documentation

◆ as_refcount

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 493 of file lb.h.

◆ ass

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 486 of file lb.h.

◆ dpo_gre4_port_type

dpo_type_t lb_main_t::dpo_gre4_port_type

Definition at line 538 of file lb.h.

◆ dpo_gre4_type

dpo_type_t lb_main_t::dpo_gre4_type

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

Definition at line 536 of file lb.h.

◆ dpo_gre6_port_type

dpo_type_t lb_main_t::dpo_gre6_port_type

Definition at line 539 of file lb.h.

◆ dpo_gre6_type

dpo_type_t lb_main_t::dpo_gre6_type

Definition at line 537 of file lb.h.

◆ dpo_l3dsr_port_type

dpo_type_t lb_main_t::dpo_l3dsr_port_type

Definition at line 541 of file lb.h.

◆ dpo_l3dsr_type

dpo_type_t lb_main_t::dpo_l3dsr_type

Definition at line 540 of file lb.h.

◆ dpo_nat4_port_type

dpo_type_t lb_main_t::dpo_nat4_port_type

Definition at line 542 of file lb.h.

◆ dpo_nat6_port_type

dpo_type_t lb_main_t::dpo_nat6_port_type

Definition at line 543 of file lb.h.

◆ fib_node_type

fib_node_type_t lb_main_t::fib_node_type

Node type for registering to fib changes.

Definition at line 547 of file lb.h.

◆ flow_timeout

u32 lb_main_t::flow_timeout

Flow timeout in seconds.

Definition at line 526 of file lb.h.

◆ ip4_src_address

ip4_address_t lb_main_t::ip4_src_address

Source address used for IPv4 encapsulated traffic.

Definition at line 516 of file lb.h.

◆ ip6_src_address

ip6_address_t lb_main_t::ip6_src_address

Source address used in IPv6 encapsulated traffic.

Definition at line 511 of file lb.h.

◆ ip_lookup_next_index

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 506 of file lb.h.

◆ mapping_by_as4

clib_bihash_8_8_t lb_main_t::mapping_by_as4

Definition at line 553 of file lb.h.

◆ mapping_by_as6

clib_bihash_24_8_t lb_main_t::mapping_by_as6

Definition at line 554 of file lb.h.

◆ msg_id_base

u16 lb_main_t::msg_id_base

API dynamically registered base ID.

Definition at line 562 of file lb.h.

◆ per_cpu

lb_per_cpu_t* lb_main_t::per_cpu

Some global data is per-cpu.

Definition at line 501 of file lb.h.

◆ per_cpu_sticky_buckets

u32 lb_main_t::per_cpu_sticky_buckets

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

Definition at line 521 of file lb.h.

◆ snat_mappings

lb_snat_mapping_t* lb_main_t::snat_mappings

Definition at line 557 of file lb.h.

◆ vip_counters

Per VIP counter.

Definition at line 531 of file lb.h.

◆ vip_index_by_nodeport

uword* lb_main_t::vip_index_by_nodeport

Definition at line 496 of file lb.h.

◆ vip_index_per_port

clib_bihash_8_8_t lb_main_t::vip_index_per_port

Definition at line 550 of file lb.h.

◆ vip_prefix_indexes

uword* lb_main_t::vip_prefix_indexes

bitmap for vip prefix to support per-port vip

Definition at line 478 of file lb.h.

◆ vips

lb_vip_t* lb_main_t::vips

Pool of all Virtual IPs.

Definition at line 473 of file lb.h.

◆ vlib_main

vlib_main_t* lb_main_t::vlib_main

Definition at line 567 of file lb.h.

◆ vnet_main

vnet_main_t* lb_main_t::vnet_main

Definition at line 568 of file lb.h.

◆ writer_lock

volatile u32* lb_main_t::writer_lock

Definition at line 564 of file lb.h.


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