FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | mfib_path_ext_t_ |
MFIB extensions to each path. More... | |
struct | mfib_entry_src_t_ |
The source of an MFIB entry. More... | |
struct | mfib_entry_src_vft_t_ |
Virtual function table provided by each_source. More... | |
Macros | |
#define | MFIB_ENTRY_SRC_ATTRIBUTES |
#define | FOR_EACH_MFIB_SRC_ATTRIBUTE(_item) |
Typedefs | |
typedef struct mfib_path_ext_t_ | mfib_path_ext_t |
MFIB extensions to each path. More... | |
typedef enum mfib_entry_src_attribute_t_ | mfib_entry_src_attribute_t |
Flags for the source data. More... | |
typedef enum mfib_entry_src_flag_t_ | mfib_entry_src_flags_t |
typedef struct mfib_entry_src_t_ | mfib_entry_src_t |
The source of an MFIB entry. More... | |
typedef enum mfib_src_res_t_ | mfib_src_res_t |
signals from the sources to the caller More... | |
typedef void(* | mfib_entry_src_activiate_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when it is activated. More... | |
typedef void(* | mfib_entry_src_deactiviate_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when it is deactivated. More... | |
typedef mfib_src_res_t(* | mfib_entry_src_cover_change_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when the cover changes. More... | |
typedef mfib_src_res_t(* | mfib_entry_src_cover_update_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when the cover is updated. More... | |
typedef struct mfib_entry_src_vft_t_ | mfib_entry_src_vft |
Virtual function table provided by each_source. More... | |
Enumerations | |
enum | mfib_entry_src_attribute_t_ { MFIB_ENTRY_SRC_ATTRIBUTE_FIRST, MFIB_ENTRY_SRC_ATTRIBUTE_STALE = MFIB_ENTRY_SRC_ATTRIBUTE_FIRST, MFIB_ENTRY_SRC_ATTRIBUTE_LAST = MFIB_ENTRY_SRC_ATTRIBUTE_STALE } |
Flags for the source data. More... | |
enum | mfib_entry_src_flag_t_ { MFIB_ENTRY_SRC_FLAG_NONE = 0, MFIB_ENTRY_SRC_FLAG_STALE = (1 << MFIB_ENTRY_SRC_ATTRIBUTE_STALE) } |
enum | mfib_src_res_t_ { MFIB_SRC_OK, MFIB_SRC_REEVALUATE } |
signals from the sources to the caller More... | |
Functions | |
u8 * | format_mfib_entry_src_flags (u8 *s, va_list *args) |
STATIC_ASSERT (sizeof(mfib_entry_src_flags_t)<=2, "FIB entry flags field size too big") | |
void | mfib_entry_src_register (mfib_source_t, const mfib_entry_src_vft *) |
void | mfib_entry_src_deactivate (mfib_entry_t *mfib_entry, mfib_entry_src_t *bsrc) |
void | mfib_entry_src_activate (mfib_entry_t *mfib_entry, mfib_entry_src_t *bsrc) |
mfib_src_res_t | mfib_entry_src_cover_change (mfib_entry_t *mfib_entry, mfib_entry_src_t *bsrc) |
mfib_src_res_t | mfib_entry_src_cover_update (mfib_entry_t *mfib_entry, mfib_entry_src_t *bsrc) |
mfib_entry_src_t * | mfib_entry_get_best_src (const mfib_entry_t *mfib_entry) |
void | mfib_entry_src_module_init (void) |
void | mfib_entry_src_rr_module_init (void) |
#define FOR_EACH_MFIB_SRC_ATTRIBUTE | ( | _item | ) |
Definition at line 53 of file mfib_entry_src.h.
#define MFIB_ENTRY_SRC_ATTRIBUTES |
Definition at line 49 of file mfib_entry_src.h.
typedef void(* mfib_entry_src_activiate_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when it is activated.
Definition at line 142 of file mfib_entry_src.h.
typedef enum mfib_entry_src_attribute_t_ mfib_entry_src_attribute_t |
Flags for the source data.
typedef mfib_src_res_t(* mfib_entry_src_cover_change_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when the cover changes.
Definition at line 152 of file mfib_entry_src.h.
typedef mfib_src_res_t(* mfib_entry_src_cover_update_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when the cover is updated.
Definition at line 157 of file mfib_entry_src.h.
typedef void(* mfib_entry_src_deactiviate_t) (mfib_entry_t *, mfib_entry_src_t *) |
A function provided by each source to be invoked when it is deactivated.
Definition at line 147 of file mfib_entry_src.h.
typedef enum mfib_entry_src_flag_t_ mfib_entry_src_flags_t |
typedef struct mfib_entry_src_t_ mfib_entry_src_t |
The source of an MFIB entry.
typedef struct mfib_entry_src_vft_t_ mfib_entry_src_vft |
Virtual function table provided by each_source.
typedef struct mfib_path_ext_t_ mfib_path_ext_t |
MFIB extensions to each path.
typedef enum mfib_src_res_t_ mfib_src_res_t |
signals from the sources to the caller
Flags for the source data.
Definition at line 33 of file mfib_entry_src.h.
Enumerator | |
---|---|
MFIB_ENTRY_SRC_FLAG_NONE | |
MFIB_ENTRY_SRC_FLAG_STALE |
Definition at line 58 of file mfib_entry_src.h.
enum mfib_src_res_t_ |
signals from the sources to the caller
Enumerator | |
---|---|
MFIB_SRC_OK | |
MFIB_SRC_REEVALUATE |
Definition at line 133 of file mfib_entry_src.h.
Definition at line 106 of file mfib_entry.c.
mfib_entry_src_t* mfib_entry_get_best_src | ( | const mfib_entry_t * | mfib_entry | ) |
void mfib_entry_src_activate | ( | mfib_entry_t * | mfib_entry, |
mfib_entry_src_t * | bsrc | ||
) |
mfib_src_res_t mfib_entry_src_cover_change | ( | mfib_entry_t * | mfib_entry, |
mfib_entry_src_t * | bsrc | ||
) |
mfib_src_res_t mfib_entry_src_cover_update | ( | mfib_entry_t * | mfib_entry, |
mfib_entry_src_t * | bsrc | ||
) |
void mfib_entry_src_deactivate | ( | mfib_entry_t * | mfib_entry, |
mfib_entry_src_t * | bsrc | ||
) |
void mfib_entry_src_module_init | ( | void | ) |
Definition at line 85 of file mfib_entry_src.c.
void mfib_entry_src_register | ( | mfib_source_t | , |
const mfib_entry_src_vft * | |||
) |
void mfib_entry_src_rr_module_init | ( | void | ) |
Definition at line 102 of file mfib_entry_src_rr.c.
STATIC_ASSERT | ( | sizeof(mfib_entry_src_flags_t)<= | 2, |
"FIB entry flags field size too big" | |||
) |