FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
fib_entry_src_interpose.c File Reference
+ Include dependency graph for fib_entry_src_interpose.c:

Go to the source code of this file.

Functions

static void fib_entry_src_interpose_init (fib_entry_src_t *src)
 
static void fib_entry_src_interpose_deinit (fib_entry_src_t *src)
 
static fib_entry_src_tfib_entry_src_rr_get_next_best (const fib_entry_src_t *src, const fib_entry_t *fib_entry)
 
static int fib_entry_src_interpose_activate (fib_entry_src_t *src, const fib_entry_t *fib_entry)
 
static void fib_entry_src_interpose_deactivate (fib_entry_src_t *src, const fib_entry_t *fib_entry)
 Source Deactivate. More...
 
static int fib_entry_src_interpose_reactivate (fib_entry_src_t *src, const fib_entry_t *fib_entry)
 
static fib_entry_src_cover_res_t fib_entry_src_interpose_cover_change (fib_entry_src_t *src, const fib_entry_t *fib_entry)
 
static void fib_entry_src_interpose_add (fib_entry_src_t *src, const fib_entry_t *entry, fib_entry_flag_t flags, dpo_proto_t proto, const dpo_id_t *dpo)
 
static void fib_entry_src_interpose_remove (fib_entry_src_t *src)
 
static void fib_entry_src_interpose_set_data (fib_entry_src_t *src, const fib_entry_t *fib_entry, const void *data)
 
const dpo_id_tfib_entry_src_interpose_contribute (const fib_entry_src_t *src, const fib_entry_t *fib_entry)
 Contribute forwarding to interpose in the chain. More...
 
static void fib_entry_src_interpose_copy (const fib_entry_src_t *orig_src, const fib_entry_t *fib_entry, fib_entry_src_t *copy_src)
 
static void fib_entry_src_interpose_flag_change (fib_entry_src_t *src, const fib_entry_t *fib_entry, fib_entry_flag_t new_flags)
 
static u8fib_entry_src_interpose_format (fib_entry_src_t *src, u8 *s)
 
void fib_entry_src_interpose_register (void)
 

Variables

static const fib_entry_src_vft_t interpose_src_vft
 

Function Documentation

◆ fib_entry_src_interpose_activate()

static int fib_entry_src_interpose_activate ( fib_entry_src_t src,
const fib_entry_t fib_entry 
)
static

Definition at line 82 of file fib_entry_src_interpose.c.

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

◆ fib_entry_src_interpose_add()

static void fib_entry_src_interpose_add ( fib_entry_src_t src,
const fib_entry_t entry,
fib_entry_flag_t  flags,
dpo_proto_t  proto,
const dpo_id_t dpo 
)
static

Definition at line 281 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_contribute()

const dpo_id_t* fib_entry_src_interpose_contribute ( const fib_entry_src_t src,
const fib_entry_t fib_entry 
)

Contribute forwarding to interpose in the chain.

Definition at line 309 of file fib_entry_src_interpose.c.

◆ fib_entry_src_interpose_copy()

static void fib_entry_src_interpose_copy ( const fib_entry_src_t orig_src,
const fib_entry_t fib_entry,
fib_entry_src_t copy_src 
)
static

Definition at line 316 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_cover_change()

static fib_entry_src_cover_res_t fib_entry_src_interpose_cover_change ( fib_entry_src_t src,
const fib_entry_t fib_entry 
)
static

Definition at line 243 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_deactivate()

static void fib_entry_src_interpose_deactivate ( fib_entry_src_t src,
const fib_entry_t fib_entry 
)
static

Source Deactivate.

Called when the source is no longer best source on the entry

Definition at line 196 of file fib_entry_src_interpose.c.

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

◆ fib_entry_src_interpose_deinit()

static void fib_entry_src_interpose_deinit ( fib_entry_src_t src)
static

Definition at line 42 of file fib_entry_src_interpose.c.

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

◆ fib_entry_src_interpose_flag_change()

static void fib_entry_src_interpose_flag_change ( fib_entry_src_t src,
const fib_entry_t fib_entry,
fib_entry_flag_t  new_flags 
)
static

Definition at line 336 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_format()

static u8* fib_entry_src_interpose_format ( fib_entry_src_t src,
u8 s 
)
static

Definition at line 352 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_init()

static void fib_entry_src_interpose_init ( fib_entry_src_t src)
static

Definition at line 32 of file fib_entry_src_interpose.c.

◆ fib_entry_src_interpose_reactivate()

static int fib_entry_src_interpose_reactivate ( fib_entry_src_t src,
const fib_entry_t fib_entry 
)
static

Definition at line 235 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_register()

void fib_entry_src_interpose_register ( void  )

Definition at line 381 of file fib_entry_src_interpose.c.

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

◆ fib_entry_src_interpose_remove()

static void fib_entry_src_interpose_remove ( fib_entry_src_t src)
static

Definition at line 291 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_interpose_set_data()

static void fib_entry_src_interpose_set_data ( fib_entry_src_t src,
const fib_entry_t fib_entry,
const void *  data 
)
static

Definition at line 297 of file fib_entry_src_interpose.c.

+ Here is the call graph for this function:

◆ fib_entry_src_rr_get_next_best()

static fib_entry_src_t* fib_entry_src_rr_get_next_best ( const fib_entry_src_t src,
const fib_entry_t fib_entry 
)
static

Definition at line 53 of file fib_entry_src_interpose.c.

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

Variable Documentation

◆ interpose_src_vft

const fib_entry_src_vft_t interpose_src_vft
static
Initial value:
= {
.fesv_cover_update = fib_entry_src_rr_cover_update,
.fesv_contribute_interpose = fib_entry_src_interpose_contribute,
}
static int fib_entry_src_interpose_activate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
const dpo_id_t * fib_entry_src_interpose_contribute(const fib_entry_src_t *src, const fib_entry_t *fib_entry)
Contribute forwarding to interpose in the chain.
static void fib_entry_src_interpose_init(fib_entry_src_t *src)
static void fib_entry_src_interpose_copy(const fib_entry_src_t *orig_src, const fib_entry_t *fib_entry, fib_entry_src_t *copy_src)
static u8 * fib_entry_src_interpose_format(fib_entry_src_t *src, u8 *s)
static void fib_entry_src_interpose_set_data(fib_entry_src_t *src, const fib_entry_t *fib_entry, const void *data)
static void fib_entry_src_interpose_deactivate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Source Deactivate.
static void fib_entry_src_interpose_flag_change(fib_entry_src_t *src, const fib_entry_t *fib_entry, fib_entry_flag_t new_flags)
static fib_entry_src_cover_res_t fib_entry_src_interpose_cover_change(fib_entry_src_t *src, const fib_entry_t *fib_entry)
static void fib_entry_src_interpose_deinit(fib_entry_src_t *src)
fib_entry_src_cover_res_t fib_entry_src_rr_cover_update(fib_entry_src_t *src, const fib_entry_t *fib_entry)
static void fib_entry_src_interpose_remove(fib_entry_src_t *src)
static void fib_entry_src_interpose_add(fib_entry_src_t *src, const fib_entry_t *entry, fib_entry_flag_t flags, dpo_proto_t proto, const dpo_id_t *dpo)
static int fib_entry_src_interpose_reactivate(fib_entry_src_t *src, const fib_entry_t *fib_entry)

Definition at line 363 of file fib_entry_src_interpose.c.