FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
mfib_entry_delegate.c File Reference
+ Include dependency graph for mfib_entry_delegate.c:

Go to the source code of this file.

Typedefs

typedef u8 *(* mfib_entry_delegate_format_t) (const mfib_entry_delegate_t *fed, u8 *s)
 typedef for printing a delegate More...
 

Functions

static mfib_entry_delegate_tmfib_entry_delegate_find_i (const mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type, u32 *index)
 
mfib_entry_delegate_tmfib_entry_delegate_get (const mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
 
void mfib_entry_delegate_remove (mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
 
static int mfib_entry_delegate_cmp_for_sort (void *v1, void *v2)
 
static void mfib_entry_delegate_init (mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
 
mfib_entry_delegate_tmfib_entry_delegate_find_or_add (mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t fdt)
 
static u8mfib_entry_delegate_fmt_covered (const mfib_entry_delegate_t *fed, u8 *s)
 Print a delegate that represents cover tracking. More...
 
u8format_mfib_entry_deletegate (u8 *s, va_list *args)
 

Variables

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

Typedef Documentation

◆ mfib_entry_delegate_format_t

typedef u8*(* mfib_entry_delegate_format_t) (const mfib_entry_delegate_t *fed, u8 *s)

typedef for printing a delegate

Definition at line 110 of file mfib_entry_delegate.c.

Function Documentation

◆ format_mfib_entry_deletegate()

u8* format_mfib_entry_deletegate ( u8 s,
va_list *  args 
)

Definition at line 136 of file mfib_entry_delegate.c.

◆ mfib_entry_delegate_cmp_for_sort()

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

Definition at line 68 of file mfib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ mfib_entry_delegate_find_i()

static mfib_entry_delegate_t* mfib_entry_delegate_find_i ( const mfib_entry_t mfib_entry,
mfib_entry_delegate_type_t  type,
u32 index 
)
static

Definition at line 20 of file mfib_entry_delegate.c.

+ Here is the caller graph for this function:

◆ mfib_entry_delegate_find_or_add()

mfib_entry_delegate_t* mfib_entry_delegate_find_or_add ( mfib_entry_t mfib_entry,
mfib_entry_delegate_type_t  fdt 
)

Definition at line 92 of file mfib_entry_delegate.c.

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

◆ mfib_entry_delegate_fmt_covered()

static u8* mfib_entry_delegate_fmt_covered ( const mfib_entry_delegate_t fed,
u8 s 
)
static

Print a delegate that represents cover tracking.

Definition at line 117 of file mfib_entry_delegate.c.

+ Here is the call graph for this function:

◆ mfib_entry_delegate_get()

mfib_entry_delegate_t* mfib_entry_delegate_get ( const mfib_entry_t mfib_entry,
mfib_entry_delegate_type_t  type 
)

Definition at line 47 of file mfib_entry_delegate.c.

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

◆ mfib_entry_delegate_init()

static void mfib_entry_delegate_init ( mfib_entry_t mfib_entry,
mfib_entry_delegate_type_t  type 
)
static

Definition at line 77 of file mfib_entry_delegate.c.

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

◆ mfib_entry_delegate_remove()

void mfib_entry_delegate_remove ( mfib_entry_t mfib_entry,
mfib_entry_delegate_type_t  type 
)

Definition at line 54 of file mfib_entry_delegate.c.

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

Variable Documentation

◆ fed_formatters

mfib_entry_delegate_format_t fed_formatters[]
static
Initial value:
=
{
}
static u8 * mfib_entry_delegate_fmt_covered(const mfib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents cover tracking.
Dependency list of covered entries.

A delegate type to formatter map.

Definition at line 130 of file mfib_entry_delegate.c.