FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
fib_entry_delegate.c File Reference
+ Include dependency graph for fib_entry_delegate.c:

Go to the source code of this file.

Typedefs

typedef u8 *(* fib_entry_delegate_format_t) (const fib_entry_delegate_t *fed, u8 *s)
 typedef for printing a delegate More...
 

Functions

fib_entry_delegate_tfib_entry_delegate_get (index_t fedi)
 
fib_node_index_t fib_entry_delegate_get_index (const fib_entry_delegate_t *fed)
 
static fib_entry_delegate_tfib_entry_delegate_find_i (const fib_entry_t *fib_entry, fib_entry_delegate_type_t type, u32 *index)
 
fib_entry_delegate_tfib_entry_delegate_find (const fib_entry_t *fib_entry, fib_entry_delegate_type_t type)
 
void fib_entry_delegate_remove (fib_entry_t *fib_entry, fib_entry_delegate_type_t type)
 
static int fib_entry_delegate_cmp_for_sort (void *v1, void *v2)
 
static void fib_entry_delegate_init (fib_entry_t *fib_entry, fib_entry_delegate_type_t type)
 
fib_entry_delegate_tfib_entry_delegate_find_or_add (fib_entry_t *fib_entry, fib_entry_delegate_type_t fdt)
 
fib_entry_delegate_type_t fib_entry_chain_type_to_delegate_type (fib_forward_chain_type_t fct)
 
fib_forward_chain_type_t fib_entry_delegate_type_to_chain_type (fib_entry_delegate_type_t fdt)
 
static u8fib_entry_delegate_fmt_fwd_chain (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents a forwarding chain. More...
 
static u8fib_entry_delegate_fmt_covered (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents cover tracking. More...
 
static u8fib_entry_delegate_fmt_import (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents attached-import tracking. More...
 
static u8fib_entry_delegate_fmt_export (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents attached-export tracking. More...
 
static u8fib_entry_delegate_fmt_bfd (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents BFD tracking. More...
 
static u8fib_entry_delegate_fmt_track (const fib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents tracking. More...
 
u8format_fib_entry_delegate (u8 *s, va_list *args)
 
static clib_error_tshow_fib_entry_delegate_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static fib_entry_delegate_tfib_entry_delegate_pool
 
static fib_entry_delegate_format_t fed_formatters []
 A delegate type to formatter map. More...
 
static vlib_cli_command_t show_fib_entry
 (constructor) VLIB_CLI_COMMAND (show_fib_entry) More...
 

Typedef Documentation

◆ fib_entry_delegate_format_t

typedef u8*(* fib_entry_delegate_format_t) (const fib_entry_delegate_t *fed, u8 *s)

typedef for printing a delegate

Definition at line 190 of file fib_entry_delegate.c.

Function Documentation

◆ fib_entry_chain_type_to_delegate_type()

fib_entry_delegate_type_t fib_entry_chain_type_to_delegate_type ( fib_forward_chain_type_t  fct)

Definition at line 134 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ fib_entry_delegate_cmp_for_sort()

static int fib_entry_delegate_cmp_for_sort ( void *  v1,
void *  v2 
)
static

Definition at line 88 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_find()

fib_entry_delegate_t* fib_entry_delegate_find ( const fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)

Definition at line 65 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_find_i()

static fib_entry_delegate_t* fib_entry_delegate_find_i ( const fib_entry_t fib_entry,
fib_entry_delegate_type_t  type,
u32 index 
)
static

Definition at line 35 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_find_or_add()

fib_entry_delegate_t* fib_entry_delegate_find_or_add ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  fdt 
)

Definition at line 118 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_fmt_bfd()

static u8* fib_entry_delegate_fmt_bfd ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents BFD tracking.

Definition at line 252 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_fmt_covered()

static u8* fib_entry_delegate_fmt_covered ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents cover tracking.

Definition at line 212 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_fmt_export()

static u8* fib_entry_delegate_fmt_export ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents attached-export tracking.

Definition at line 239 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_fmt_fwd_chain()

static u8* fib_entry_delegate_fmt_fwd_chain ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents a forwarding chain.

Definition at line 197 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_fmt_import()

static u8* fib_entry_delegate_fmt_import ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents attached-import tracking.

Definition at line 226 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_fmt_track()

static u8* fib_entry_delegate_fmt_track ( const fib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents tracking.

Definition at line 264 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

◆ fib_entry_delegate_get()

fib_entry_delegate_t* fib_entry_delegate_get ( index_t  fedi)

Definition at line 23 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ fib_entry_delegate_get_index()

fib_node_index_t fib_entry_delegate_get_index ( const fib_entry_delegate_t fed)

Definition at line 29 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ fib_entry_delegate_init()

static void fib_entry_delegate_init ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)
static

Definition at line 101 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_remove()

void fib_entry_delegate_remove ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)

Definition at line 72 of file fib_entry_delegate.c.

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

◆ fib_entry_delegate_type_to_chain_type()

fib_forward_chain_type_t fib_entry_delegate_type_to_chain_type ( fib_entry_delegate_type_t  fdt)

Definition at line 160 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ format_fib_entry_delegate()

u8* format_fib_entry_delegate ( u8 s,
va_list *  args 
)

Definition at line 296 of file fib_entry_delegate.c.

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

◆ show_fib_entry_delegate_command()

static clib_error_t* show_fib_entry_delegate_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 308 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

Variable Documentation

◆ fed_formatters

fib_entry_delegate_format_t fed_formatters[]
static
Initial value:
=
{
}
Tracker.
BFD session state.
static u8 * fib_entry_delegate_fmt_bfd(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents BFD tracking.
static u8 * fib_entry_delegate_fmt_import(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents attached-import tracking.
static u8 * fib_entry_delegate_fmt_covered(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents cover tracking.
static u8 * fib_entry_delegate_fmt_fwd_chain(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents a forwarding chain.
Attached import/export functionality.
static u8 * fib_entry_delegate_fmt_track(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents tracking.
Forwarding chain types: for the vast majority of FIB entries only one chain is required - the one tha...
Dependency list of covered entries.
static u8 * fib_entry_delegate_fmt_export(const fib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents attached-export tracking.

A delegate type to formatter map.

Definition at line 280 of file fib_entry_delegate.c.

◆ fib_entry_delegate_pool

fib_entry_delegate_t* fib_entry_delegate_pool
static

Definition at line 20 of file fib_entry_delegate.c.

◆ show_fib_entry

vlib_cli_command_t show_fib_entry
static
Initial value:
= {
.path = "show fib entry-delegate",
.short_help = "show fib entry delegate",
}
static clib_error_t * show_fib_entry_delegate_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_fib_entry)

Definition at line 347 of file fib_entry_delegate.c.