FD.io VPP  v18.07.1-19-g511ce25
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

Function Documentation

u8* format_load_balance_map ( u8 s,
va_list *  ap 
)

Definition at line 91 of file load_balance_map.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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 427 of file load_balance_map.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

void load_balance_map_lock ( index_t  lmbi)

Definition at line 454 of file load_balance_map.c.

+ Here is the call graph for this function:

void load_balance_map_module_init ( void  )

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

Definition at line 522 of file load_balance_map.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 503 of file load_balance_map.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void load_balance_map_show_mem ( void  )

Definition at line 537 of file load_balance_map.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

void load_balance_map_unlock ( index_t  lbmi)

Definition at line 464 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_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.