FD.io VPP  v18.07-34-g55fbdb9
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

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_get (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...
 
u8format_fib_entry_deletegate (u8 *s, va_list *args)
 

Variables

static fib_entry_delegate_format_t fed_formatters []
 A delegate type to formatter map. More...
 

Typedef Documentation

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

typedef for printing a delegate

Definition at line 164 of file fib_entry_delegate.c.

Function Documentation

fib_entry_delegate_type_t fib_entry_chain_type_to_delegate_type ( fib_forward_chain_type_t  fct)

Definition at line 109 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

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

Definition at line 69 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

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 21 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

fib_entry_delegate_t* fib_entry_delegate_find_or_add ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  fdt 
)

Definition at line 93 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 224 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

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 186 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

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 212 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

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 171 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

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 200 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

fib_entry_delegate_t* fib_entry_delegate_get ( const fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)

Definition at line 48 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void fib_entry_delegate_init ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)
static

Definition at line 78 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fib_entry_delegate_remove ( fib_entry_t fib_entry,
fib_entry_delegate_type_t  type 
)

Definition at line 55 of file fib_entry_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

fib_forward_chain_type_t fib_entry_delegate_type_to_chain_type ( fib_entry_delegate_type_t  fdt)

Definition at line 135 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

u8* format_fib_entry_deletegate ( u8 s,
va_list *  args 
)

Definition at line 250 of file fib_entry_delegate.c.

+ Here is the caller graph for this function:

Variable Documentation

fib_entry_delegate_format_t fed_formatters[]
static
Initial value:
=
{
}
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.
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 235 of file fib_entry_delegate.c.