FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
lb_as_t Struct Reference

Each VIP is configured with a set of application server. More...

+ Collaboration diagram for lb_as_t:

Data Fields

fib_node_t fib_node
 Registration to FIB event. More...
 
ip46_address_t address
 Destination address used to tunnel traffic towards that application server. More...
 
u32 vip_index
 ASs are indexed by address and VIP Index. More...
 
u8 flags
 Some per-AS flags. More...
 
u32 last_used
 Rotating timestamp of when LB_AS_FLAGS_USED flag was last set. More...
 
fib_node_index_t next_hop_fib_entry_index
 The FIB entry index for the next-hop. More...
 
u32 next_hop_child_index
 The child index on the FIB entry. More...
 
dpo_id_t dpo
 The next DPO in the graph to follow. More...
 

Detailed Description

Each VIP is configured with a set of application server.

Definition at line 108 of file lb.h.

Field Documentation

◆ address

ip46_address_t lb_as_t::address

Destination address used to tunnel traffic towards that application server.

The address is also used as ID and pseudo-random seed for the load-balancing process.

Definition at line 120 of file lb.h.

◆ dpo

dpo_id_t lb_as_t::dpo

The next DPO in the graph to follow.

Definition at line 161 of file lb.h.

◆ fib_node

fib_node_t lb_as_t::fib_node

Registration to FIB event.

Definition at line 112 of file lb.h.

◆ flags

u8 lb_as_t::flags

Some per-AS flags.

For now only LB_AS_FLAGS_USED is defined.

Definition at line 133 of file lb.h.

◆ last_used

u32 lb_as_t::last_used

Rotating timestamp of when LB_AS_FLAGS_USED flag was last set.

AS removal is based on garbage collection and reference counting. When an AS is removed, there is a race between configuration core and worker cores which may still add a reference while it should not be used. This timestamp is used to not remove the AS while a race condition may happen.

Definition at line 146 of file lb.h.

◆ next_hop_child_index

u32 lb_as_t::next_hop_child_index

The child index on the FIB entry.

Definition at line 156 of file lb.h.

◆ next_hop_fib_entry_index

fib_node_index_t lb_as_t::next_hop_fib_entry_index

The FIB entry index for the next-hop.

Definition at line 151 of file lb.h.

◆ vip_index

u32 lb_as_t::vip_index

ASs are indexed by address and VIP Index.

Which means there will be duplicated if the same server address is used for multiple VIPs.

Definition at line 127 of file lb.h.


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