FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
load_balance_map.h File Reference
+ Include dependency graph for load_balance_map.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  load_balance_map_t_
 

Typedefs

typedef struct load_balance_map_t_ load_balance_map_t
 

Functions

index_t load_balance_map_add_or_lock (u32 n_buckets, u32 sum_of_weights, const load_balance_path_t *norm_paths)
 
void load_balance_map_lock (index_t lmbi)
 
void load_balance_map_unlock (index_t lbmi)
 
void load_balance_map_path_state_change (fib_node_index_t path_index)
 the state of a path has changed (it has no doubt gone down). More...
 
u8format_load_balance_map (u8 *s, va_list *ap)
 
void load_balance_map_show_mem (void)
 
static load_balance_map_tload_balance_map_get (index_t lbmi)
 
static u16 load_balance_map_translate (index_t lbmi, u16 bucket)
 
static const dpo_id_tload_balance_get_fwd_bucket (const load_balance_t *lb, u16 bucket)
 
void load_balance_map_module_init (void)
 Make/add a new or lock an existing Load-balance map. More...
 

Variables

load_balance_map_tload_balance_map_pool
 The encapsulation breakages are for fast DP access. More...
 

Typedef Documentation

◆ load_balance_map_t

Function Documentation

◆ format_load_balance_map()

u8* format_load_balance_map ( u8 s,
va_list *  ap 
)

Definition at line 93 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_get_fwd_bucket()

static const dpo_id_t* load_balance_get_fwd_bucket ( const load_balance_t lb,
u16  bucket 
)
inlinestatic

Definition at line 94 of file load_balance_map.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_add_or_lock()

index_t load_balance_map_add_or_lock ( u32  n_buckets,
u32  sum_of_weights,
const load_balance_path_t norm_paths 
)

Definition at line 432 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_get()

static load_balance_map_t* load_balance_map_get ( index_t  lbmi)
inlinestatic

Definition at line 77 of file load_balance_map.h.

+ Here is the caller graph for this function:

◆ load_balance_map_lock()

void load_balance_map_lock ( index_t  lmbi)

Definition at line 459 of file load_balance_map.c.

+ Here is the call graph for this function:

◆ load_balance_map_module_init()

void load_balance_map_module_init ( void  )

Make/add a new or lock an existing Load-balance map.

Definition at line 527 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_path_state_change()

void load_balance_map_path_state_change ( fib_node_index_t  path_index)

the state of a path has changed (it has no doubt gone down).

This is the trigger to perform a PIC edge cutover and update the maps to exclude this path.

Definition at line 508 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_show_mem()

void load_balance_map_show_mem ( void  )

Definition at line 542 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_translate()

static u16 load_balance_map_translate ( index_t  lbmi,
u16  bucket 
)
inlinestatic

Definition at line 83 of file load_balance_map.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_balance_map_unlock()

void load_balance_map_unlock ( index_t  lbmi)

Definition at line 469 of file load_balance_map.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ load_balance_map_pool

load_balance_map_t* load_balance_map_pool

The encapsulation breakages are for fast DP access.

The encapsulation breakages are for fast DP access.

Definition at line 69 of file load_balance_map.c.