FD.io VPP  v21.10.1-2-g0a485f517
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

const static 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 static fib_entry_src_vft_t interpose_src_vft
static
Initial value:

Definition at line 363 of file fib_entry_src_interpose.c.

fib_entry_src_interpose_activate
static int fib_entry_src_interpose_activate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Definition: fib_entry_src_interpose.c:82
fib_entry_src_interpose_remove
static void fib_entry_src_interpose_remove(fib_entry_src_t *src)
Definition: fib_entry_src_interpose.c:291
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: fib_entry_src_interpose.c:309
fib_entry_src_interpose_init
static void fib_entry_src_interpose_init(fib_entry_src_t *src)
Definition: fib_entry_src_interpose.c:32
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)
Definition: fib_entry_src_interpose.c:336
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)
Definition: fib_entry_src_interpose.c:297
fib_entry_src_rr_cover_update
fib_entry_src_cover_res_t fib_entry_src_rr_cover_update(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Definition: fib_entry_src_rr.c:256
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)
Definition: fib_entry_src_interpose.c:243
fib_entry_src_interpose_format
static u8 * fib_entry_src_interpose_format(fib_entry_src_t *src, u8 *s)
Definition: fib_entry_src_interpose.c:352
fib_entry_src_interpose_reactivate
static int fib_entry_src_interpose_reactivate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Definition: fib_entry_src_interpose.c:235
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)
Definition: fib_entry_src_interpose.c:281
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)
Definition: fib_entry_src_interpose.c:316
fib_entry_src_interpose_deinit
static void fib_entry_src_interpose_deinit(fib_entry_src_t *src)
Definition: fib_entry_src_interpose.c:42
fib_entry_src_interpose_deactivate
static void fib_entry_src_interpose_deactivate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Source Deactivate.
Definition: fib_entry_src_interpose.c:196