FD.io VPP  v18.01-8-g0eacf49
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 55 of file lb.h.

Field Documentation

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

dpo_id_t lb_as_t::dpo

The next DPO in the graph to follow.

Definition at line 108 of file lb.h.

fib_node_t lb_as_t::fib_node

Registration to FIB event.

Definition at line 59 of file lb.h.

u8 lb_as_t::flags

Some per-AS flags.

For now only LB_AS_FLAGS_USED is defined.

Definition at line 80 of file lb.h.

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

u32 lb_as_t::next_hop_child_index

The child index on the FIB entry.

Definition at line 103 of file lb.h.

fib_node_index_t lb_as_t::next_hop_fib_entry_index

The FIB entry index for the next-hop.

Definition at line 98 of file lb.h.

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


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