FD.io VPP  v19.04-6-g6f05f72
Vector Packet Processing
adj_midchain_delegate.c File Reference
+ Include dependency graph for adj_midchain_delegate.c:

Go to the source code of this file.

Data Structures

struct  adj_midchain_delegate_t_
 Midchain stacker delegate. More...
 

Typedefs

typedef struct adj_midchain_delegate_t_ adj_midchain_delegate_t
 Midchain stacker delegate. More...
 

Functions

static const adj_midchain_delegate_tadj_midchain_from_const_base (const adj_delegate_t *ad)
 
static void adj_midchain_delegate_restack_i (adj_index_t ai, adj_midchain_delegate_t *amd)
 
void adj_midchain_delegate_restack (adj_index_t ai)
 restack a midchain delegate More...
 
void adj_midchain_delegate_stack (adj_index_t ai, u32 fib_index, const fib_prefix_t *pfx)
 create/attach a midchain delegate and stack it on the prefix passed More...
 
void adj_midchain_delegate_unstack (adj_index_t ai)
 unstack a midchain delegate (this stacks it on a drop) More...
 
static void adj_midchain_delegate_adj_deleted (adj_delegate_t *ad)
 
static u8adj_midchain_delegate_fmt (const adj_delegate_t *aed, u8 *s)
 Print a delegate that represents MIDCHAIN tracking. More...
 
static clib_error_tadj_midchain_delegate_module_init (vlib_main_t *vm)
 

Variables

static adj_midchain_delegate_tamd_pool
 Pool of delegates. More...
 
static const adj_delegate_vft_t adj_delegate_vft
 

Typedef Documentation

Midchain stacker delegate.

Function Documentation

static void adj_midchain_delegate_adj_deleted ( adj_delegate_t ad)
static

Definition at line 142 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

static u8* adj_midchain_delegate_fmt ( const adj_delegate_t aed,
u8 s 
)
static

Print a delegate that represents MIDCHAIN tracking.

Definition at line 158 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

static clib_error_t* adj_midchain_delegate_module_init ( vlib_main_t vm)
static

Definition at line 173 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

void adj_midchain_delegate_restack ( adj_index_t  ai)

restack a midchain delegate

Definition at line 75 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void adj_midchain_delegate_restack_i ( adj_index_t  ai,
adj_midchain_delegate_t amd 
)
static

Definition at line 52 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void adj_midchain_delegate_stack ( adj_index_t  ai,
u32  fib_index,
const fib_prefix_t pfx 
)

create/attach a midchain delegate and stack it on the prefix passed

Parameters
ai- the index of the adjacency to stack
fib_index- The FIB index of the prefix on which to stack
pfx- The prefix on which to stack

Definition at line 100 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void adj_midchain_delegate_unstack ( adj_index_t  ai)

unstack a midchain delegate (this stacks it on a drop)

Definition at line 136 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static const adj_midchain_delegate_t* adj_midchain_from_const_base ( const adj_delegate_t ad)
inlinestatic

Definition at line 42 of file adj_midchain_delegate.c.

+ Here is the caller graph for this function:

Variable Documentation

const adj_delegate_vft_t adj_delegate_vft
static
Initial value:
= {
}
static u8 * adj_midchain_delegate_fmt(const adj_delegate_t *aed, u8 *s)
Print a delegate that represents MIDCHAIN tracking.
static void adj_midchain_delegate_adj_deleted(adj_delegate_t *ad)

Definition at line 167 of file adj_midchain_delegate.c.

adj_midchain_delegate_t* amd_pool
static

Pool of delegates.

Definition at line 39 of file adj_midchain_delegate.c.