FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
fib_path_ext.c File Reference
+ Include dependency graph for fib_path_ext.c:

Go to the source code of this file.

Functions

u8format_fib_path_ext (u8 *s, va_list *args)
 
int fib_path_ext_cmp (fib_path_ext_t *path_ext, const fib_route_path_t *rpath)
 
static fib_path_list_walk_rc_t fib_path_ext_match (fib_node_index_t pl_index, fib_node_index_t path_index, void *ctx)
 
void fib_path_ext_resolve (fib_path_ext_t *path_ext, fib_node_index_t path_list_index)
 
static void fib_path_ext_init (fib_path_ext_t *path_ext, fib_node_index_t path_list_index, fib_path_ext_type_t ext_type, const fib_route_path_t *rpath)
 
static int fib_path_ext_is_imp_null (fib_path_ext_t *path_ext)
 Return true if the label stack is implicit null imp-null and pop equate to the same this as this level - the label is coming off. More...
 
mpls_label_dpo_flags_t fib_path_ext_mpls_flags_to_mpls_label (fib_path_ext_mpls_flags_t fpe_flags)
 
load_balance_path_tfib_path_ext_stack (fib_path_ext_t *path_ext, fib_forward_chain_type_t child_fct, fib_forward_chain_type_t imp_null_fct, load_balance_path_t *nhs)
 
fib_path_ext_tfib_path_ext_list_find (const fib_path_ext_list_t *list, fib_path_ext_type_t ext_type, const fib_route_path_t *rpath)
 
fib_path_ext_tfib_path_ext_list_find_by_path_index (const fib_path_ext_list_t *list, fib_node_index_t path_index)
 
fib_path_ext_tfib_path_ext_list_push_back (fib_path_ext_list_t *list, fib_node_index_t path_list_index, fib_path_ext_type_t ext_type, const fib_route_path_t *rpath)
 
fib_path_ext_tfib_path_ext_list_insert (fib_path_ext_list_t *list, fib_node_index_t path_list_index, fib_path_ext_type_t ext_type, const fib_route_path_t *rpath)
 
void fib_path_ext_list_resolve (fib_path_ext_list_t *list, fib_node_index_t path_list_index)
 
void fib_path_ext_list_remove (fib_path_ext_list_t *list, fib_path_ext_type_t ext_type, const fib_route_path_t *rpath)
 
void fib_path_ext_list_flush (fib_path_ext_list_t *list)
 
u8format_fib_path_ext_list (u8 *s, va_list *args)
 
int fib_path_ext_list_length (const fib_path_ext_list_t *list)
 

Variables

const char * fib_path_ext_adj_flags_names [] = FIB_PATH_EXT_ADJ_ATTR_NAMES
 
const char * fib_path_ext_mpls_flags_names [] = FIB_PATH_EXT_MPLS_ATTR_NAMES
 

Function Documentation

◆ fib_path_ext_cmp()

int fib_path_ext_cmp ( fib_path_ext_t path_ext,
const fib_route_path_t rpath 
)

Definition at line 89 of file fib_path_ext.c.

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

◆ fib_path_ext_init()

static void fib_path_ext_init ( fib_path_ext_t path_ext,
fib_node_index_t  path_list_index,
fib_path_ext_type_t  ext_type,
const fib_route_path_t rpath 
)
static

Definition at line 125 of file fib_path_ext.c.

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

◆ fib_path_ext_is_imp_null()

static int fib_path_ext_is_imp_null ( fib_path_ext_t path_ext)
static

Return true if the label stack is implicit null imp-null and pop equate to the same this as this level - the label is coming off.

Definition at line 144 of file fib_path_ext.c.

+ Here is the caller graph for this function:

◆ fib_path_ext_list_find()

fib_path_ext_t* fib_path_ext_list_find ( const fib_path_ext_list_t list,
fib_path_ext_type_t  ext_type,
const fib_route_path_t rpath 
)

Definition at line 308 of file fib_path_ext.c.

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

◆ fib_path_ext_list_find_by_path_index()

fib_path_ext_t* fib_path_ext_list_find_by_path_index ( const fib_path_ext_list_t list,
fib_node_index_t  path_index 
)

Definition at line 326 of file fib_path_ext.c.

+ Here is the caller graph for this function:

◆ fib_path_ext_list_flush()

void fib_path_ext_list_flush ( fib_path_ext_list_t list)

Definition at line 448 of file fib_path_ext.c.

+ Here is the caller graph for this function:

◆ fib_path_ext_list_insert()

fib_path_ext_t* fib_path_ext_list_insert ( fib_path_ext_list_t list,
fib_node_index_t  path_list_index,
fib_path_ext_type_t  ext_type,
const fib_route_path_t rpath 
)

Definition at line 372 of file fib_path_ext.c.

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

◆ fib_path_ext_list_length()

int fib_path_ext_list_length ( const fib_path_ext_list_t list)

Definition at line 481 of file fib_path_ext.c.

+ Here is the caller graph for this function:

◆ fib_path_ext_list_push_back()

fib_path_ext_t* fib_path_ext_list_push_back ( fib_path_ext_list_t list,
fib_node_index_t  path_list_index,
fib_path_ext_type_t  ext_type,
const fib_route_path_t rpath 
)

Definition at line 346 of file fib_path_ext.c.

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

◆ fib_path_ext_list_remove()

void fib_path_ext_list_remove ( fib_path_ext_list_t list,
fib_path_ext_type_t  ext_type,
const fib_route_path_t rpath 
)

Definition at line 428 of file fib_path_ext.c.

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

◆ fib_path_ext_list_resolve()

void fib_path_ext_list_resolve ( fib_path_ext_list_t list,
fib_node_index_t  path_list_index 
)

Definition at line 416 of file fib_path_ext.c.

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

◆ fib_path_ext_match()

static fib_path_list_walk_rc_t fib_path_ext_match ( fib_node_index_t  pl_index,
fib_node_index_t  path_index,
void *  ctx 
)
static

Definition at line 96 of file fib_path_ext.c.

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

◆ fib_path_ext_mpls_flags_to_mpls_label()

mpls_label_dpo_flags_t fib_path_ext_mpls_flags_to_mpls_label ( fib_path_ext_mpls_flags_t  fpe_flags)

Definition at line 152 of file fib_path_ext.c.

+ Here is the caller graph for this function:

◆ fib_path_ext_resolve()

void fib_path_ext_resolve ( fib_path_ext_t path_ext,
fib_node_index_t  path_list_index 
)

Definition at line 112 of file fib_path_ext.c.

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

◆ fib_path_ext_stack()

load_balance_path_t* fib_path_ext_stack ( fib_path_ext_t path_ext,
fib_forward_chain_type_t  child_fct,
fib_forward_chain_type_t  imp_null_fct,
load_balance_path_t nhs 
)

Definition at line 165 of file fib_path_ext.c.

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

◆ format_fib_path_ext()

u8* format_fib_path_ext ( u8 s,
va_list *  args 
)

Definition at line 31 of file fib_path_ext.c.

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

◆ format_fib_path_ext_list()

u8* format_fib_path_ext_list ( u8 s,
va_list *  args 
)

Definition at line 461 of file fib_path_ext.c.

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

Variable Documentation

◆ fib_path_ext_adj_flags_names

const char* fib_path_ext_adj_flags_names[] = FIB_PATH_EXT_ADJ_ATTR_NAMES

Definition at line 27 of file fib_path_ext.c.

◆ fib_path_ext_mpls_flags_names

const char* fib_path_ext_mpls_flags_names[] = FIB_PATH_EXT_MPLS_ATTR_NAMES

Definition at line 28 of file fib_path_ext.c.