FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
mfib_itf.c File Reference
+ Include dependency graph for mfib_itf.c:

Go to the source code of this file.

Functions

index_t mfib_itf_create (fib_node_index_t path_index, mfib_itf_flags_t mfi_flags)
 
static mfib_itf_flags_t mfib_itf_mk_flags (const mfib_itf_t *mfib_itf)
 
int mfib_itf_update (mfib_itf_t *mfib_itf, fib_node_index_t path_index, mfib_itf_flags_t mfi_flags)
 update an interface from a path. More...
 
static void mfib_itf_hash_flush (mfib_itf_t *mfi)
 
static void mfib_itf_prefix4_to_mac (const mfib_prefix_t *pfx, mac_address_t *mac)
 
static void mfib_itf_prefix6_to_mac (const mfib_prefix_t *pfx, mac_address_t *mac)
 
static void mfib_itf_prefix_to_mac (const mfib_prefix_t *pfx, mac_address_t *mac)
 
static void mfib_itf_mac_add_del (mfib_itf_t *itf, const mfib_prefix_t *pfx, int add)
 
void mfib_itf_mac_add (mfib_itf_t *itf, const mfib_prefix_t *pfx)
 
void mfib_itf_mac_del (mfib_itf_t *itf, const mfib_prefix_t *pfx)
 
void mfib_itf_delete (mfib_itf_t *mfi)
 
u8format_mfib_itf (u8 *s, va_list *args)
 
static clib_error_tshow_mfib_itf_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

mfib_itf_tmfib_itf_pool
 
static vlib_cli_command_t show_mfib_itf
 (constructor) VLIB_CLI_COMMAND (show_mfib_itf) More...
 

Function Documentation

◆ format_mfib_itf()

u8* format_mfib_itf ( u8 s,
va_list *  args 
)

Definition at line 195 of file mfib_itf.c.

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

◆ mfib_itf_create()

index_t mfib_itf_create ( fib_node_index_t  path_index,
mfib_itf_flags_t  mfi_flags 
)

Definition at line 26 of file mfib_itf.c.

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

◆ mfib_itf_delete()

void mfib_itf_delete ( mfib_itf_t mfi)

Definition at line 187 of file mfib_itf.c.

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

◆ mfib_itf_hash_flush()

static void mfib_itf_hash_flush ( mfib_itf_t mfi)
static

Definition at line 97 of file mfib_itf.c.

+ Here is the caller graph for this function:

◆ mfib_itf_mac_add()

void mfib_itf_mac_add ( mfib_itf_t itf,
const mfib_prefix_t pfx 
)

Definition at line 173 of file mfib_itf.c.

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

◆ mfib_itf_mac_add_del()

static void mfib_itf_mac_add_del ( mfib_itf_t itf,
const mfib_prefix_t pfx,
int  add 
)
static

Definition at line 155 of file mfib_itf.c.

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

◆ mfib_itf_mac_del()

void mfib_itf_mac_del ( mfib_itf_t itf,
const mfib_prefix_t pfx 
)

Definition at line 180 of file mfib_itf.c.

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

◆ mfib_itf_mk_flags()

static mfib_itf_flags_t mfib_itf_mk_flags ( const mfib_itf_t mfib_itf)
static

Definition at line 51 of file mfib_itf.c.

+ Here is the caller graph for this function:

◆ mfib_itf_prefix4_to_mac()

static void mfib_itf_prefix4_to_mac ( const mfib_prefix_t pfx,
mac_address_t mac 
)
static

Definition at line 114 of file mfib_itf.c.

+ Here is the caller graph for this function:

◆ mfib_itf_prefix6_to_mac()

static void mfib_itf_prefix6_to_mac ( const mfib_prefix_t pfx,
mac_address_t mac 
)
static

Definition at line 126 of file mfib_itf.c.

+ Here is the caller graph for this function:

◆ mfib_itf_prefix_to_mac()

static void mfib_itf_prefix_to_mac ( const mfib_prefix_t pfx,
mac_address_t mac 
)
static

Definition at line 138 of file mfib_itf.c.

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

◆ mfib_itf_update()

int mfib_itf_update ( mfib_itf_t itf,
fib_node_index_t  path_index,
mfib_itf_flags_t  mfi_flags 
)

update an interface from a path.

returns 1 if the entry is removed, i.e. has no flags left, as a result of the update.

Definition at line 67 of file mfib_itf.c.

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

◆ show_mfib_itf_command()

static clib_error_t* show_mfib_itf_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 224 of file mfib_itf.c.

+ Here is the call graph for this function:

Variable Documentation

◆ mfib_itf_pool

mfib_itf_t* mfib_itf_pool

Definition at line 23 of file mfib_itf.c.

◆ show_mfib_itf

vlib_cli_command_t show_mfib_itf
static
Initial value:
= {
.path = "show mfib interface",
.function = show_mfib_itf_command,
.short_help = "show mfib interface",
}

(constructor) VLIB_CLI_COMMAND (show_mfib_itf)

Definition at line 267 of file mfib_itf.c.

show_mfib_itf_command
static clib_error_t * show_mfib_itf_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mfib_itf.c:224