FD.io VPP  v20.01-48-g3e0dafb74
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

◆ adj_midchain_delegate_t

Midchain stacker delegate.

Function Documentation

◆ adj_midchain_delegate_adj_deleted()

static void adj_midchain_delegate_adj_deleted ( adj_delegate_t ad)
static

Definition at line 141 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

◆ adj_midchain_delegate_fmt()

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

Print a delegate that represents MIDCHAIN tracking.

Definition at line 156 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

◆ adj_midchain_delegate_module_init()

static clib_error_t* adj_midchain_delegate_module_init ( vlib_main_t vm)
static

Definition at line 171 of file adj_midchain_delegate.c.

+ Here is the call graph for this function:

◆ adj_midchain_delegate_restack()

void adj_midchain_delegate_restack ( adj_index_t  ai)

restack a midchain delegate

Definition at line 76 of file adj_midchain_delegate.c.

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

◆ adj_midchain_delegate_restack_i()

static void adj_midchain_delegate_restack_i ( adj_index_t  ai,
adj_midchain_delegate_t amd 
)
static

Definition at line 53 of file adj_midchain_delegate.c.

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

◆ adj_midchain_delegate_stack()

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 101 of file adj_midchain_delegate.c.

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

◆ adj_midchain_delegate_unstack()

void adj_midchain_delegate_unstack ( adj_index_t  ai)

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

Definition at line 135 of file adj_midchain_delegate.c.

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

◆ adj_midchain_from_const_base()

static const adj_midchain_delegate_t* adj_midchain_from_const_base ( const adj_delegate_t ad)
inlinestatic

Definition at line 43 of file adj_midchain_delegate.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ adj_delegate_vft

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 165 of file adj_midchain_delegate.c.

◆ amd_pool

adj_midchain_delegate_t* amd_pool
static

Pool of delegates.

Definition at line 40 of file adj_midchain_delegate.c.