16 #ifndef __MFIB_ENTRY_H__ 17 #define __MFIB_ENTRY_H__ 87 #define MFIB_ENTRY_FORMAT_BRIEF (0x0) 88 #define MFIB_ENTRY_FORMAT_DETAIL (0x1) 89 #define MFIB_ENTRY_FORMAT_DETAIL2 (0x2) 157 return (mfe - mfib_entry_pool);
A representation of a fib path for fib_path_encode to convey the information to the caller...
enum fib_node_type_t_ fib_node_type_t
The types of nodes in a FIB graph.
enum mfib_entry_flags_t_ mfib_entry_flags_t
A representation of a path as described by a route producer.
void mfib_entry_unlock(fib_node_index_t fib_entry_index)
struct mfib_entry_src_t_ * mfe_srcs
A vector of sources contributing forwarding.
u32 mfe_sibling
The sibling index on the path-list.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
int mfib_entry_is_sourced(fib_node_index_t fib_entry_index, mfib_source_t source)
static fib_node_index_t mfib_entry_get_index(const mfib_entry_t *mfe)
fib_node_index_t mfib_entry_create(u32 fib_index, mfib_source_t source, const mfib_prefix_t *prefix, fib_rpf_id_t rpf_id, mfib_entry_flags_t entry_flags)
struct mfib_entry_t_ mfib_entry_t
An entry in a FIB table.
void mfib_entry_module_init(void)
void mfib_entry_lock(fib_node_index_t fib_entry_index)
u32 mfib_entry_get_fib_index(fib_node_index_t fib_entry_index)
enum mfib_source_t_ mfib_source_t
Possible [control plane] sources of MFIB entries.
The source of an MFIB entry.
void mfib_entry_child_remove(fib_node_index_t mfib_entry_index, u32 sibling_index)
mfib_prefix_t mfe_prefix
The prefix of the route.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
dpo_id_t mfe_rep
The DPO used for forwarding; replicate, drop, etc.
static mfib_itf_t * mfib_itf_get(index_t mi)
fib_node_t mfe_node
Base class.
An node in the FIB graph.
u32 mfe_fib_index
The index of the FIB table this entry is in.
static mfib_entry_t * mfib_entry_get(fib_node_index_t index)
void mfib_entry_encode(fib_node_index_t fib_entry_index, fib_route_path_encode_t **api_rpaths)
static mfib_itf_t * mfib_entry_itf_find(mfib_itf_t *itfs, u32 sw_if_index)
void mfib_entry_contribute_forwarding(fib_node_index_t mfib_entry_index, fib_forward_chain_type_t type, dpo_id_t *dpo)
mfib_itf_t * mfe_itfs
A hash table of interfaces.
u32 fib_node_index_t
A typedef of a node index.
mfib_entry_flags_t mfe_flags
Route flags.
u8 * format_mfib_entry(u8 *s, va_list *args)
Aggregrate type for a prefix.
int mfib_entry_path_remove(fib_node_index_t fib_entry_index, mfib_source_t source, const fib_route_path_t *rpath)
u32 fib_rpf_id_t
An RPF-ID is numerical value that is used RPF validate.
fib_node_index_t mfe_pl
The path-list of which this entry is a child.
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
mfib_entry_t * mfib_entry_pool
An interface associated with a particular MFIB entry.
enum fib_forward_chain_type_t_ fib_forward_chain_type_t
FIB output chain type.
fib_rpf_id_t mfe_rpf_id
RPF-ID used when the packets ingress not from an interface.
int mfib_entry_update(fib_node_index_t fib_entry_index, mfib_source_t source, mfib_entry_flags_t entry_flags, fib_rpf_id_t rpf_id, index_t rep_dpo)
static mfib_itf_t * mfib_entry_get_itf(const mfib_entry_t *mfe, u32 sw_if_index)
void mfib_entry_get_prefix(fib_node_index_t fib_entry_index, mfib_prefix_t *pfx)
enum mfib_itf_flags_t_ mfib_itf_flags_t
int mfib_entry_cmp_for_sort(void *i1, void *i2)
u32 mfib_entry_child_add(fib_node_index_t mfib_entry_index, fib_node_type_t type, fib_node_index_t child_index)
int mfib_entry_delete(fib_node_index_t mfib_entry_index, mfib_source_t source)
mfib_entry_delete
void mfib_entry_path_update(fib_node_index_t fib_entry_index, mfib_source_t source, const fib_route_path_t *rpath, mfib_itf_flags_t itf_flags)