Go to the source code of this file.
|
const char * | fib_node_type_get_name (fib_node_type_t type) |
|
void | fib_node_register_type (fib_node_type_t type, const fib_node_vft_t *vft) |
| fib_node_register_type More...
|
|
fib_node_type_t | fib_node_register_new_type (const fib_node_vft_t *vft) |
| Create a new FIB node type and Register the function table for it. More...
|
|
static u8 * | fib_node_format (fib_node_ptr_t *fnp, u8 *s) |
|
u32 | fib_node_child_add (fib_node_type_t parent_type, fib_node_index_t parent_index, fib_node_type_t type, fib_node_index_t index) |
|
void | fib_node_child_remove (fib_node_type_t parent_type, fib_node_index_t parent_index, fib_node_index_t sibling_index) |
|
u32 | fib_node_get_n_children (fib_node_type_t parent_type, fib_node_index_t parent_index) |
|
fib_node_back_walk_rc_t | fib_node_back_walk_one (fib_node_ptr_t *ptr, fib_node_back_walk_ctx_t *ctx) |
|
static int | fib_node_ptr_format_one_child (fib_node_ptr_t *ptr, void *arg) |
|
u8 * | fib_node_children_format (fib_node_list_t list, u8 *s) |
|
void | fib_node_init (fib_node_t *node, fib_node_type_t type) |
|
void | fib_node_deinit (fib_node_t *node) |
|
void | fib_node_lock (fib_node_t *node) |
|
void | fib_node_unlock (fib_node_t *node) |
|
void | fib_show_memory_usage (const char *name, u32 in_use_elts, u32 allocd_elts, size_t size_elt) |
| Show the memory usage for a type. More...
|
|
static clib_error_t * | fib_memory_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
The node's type. make sure we are dynamic/down casting correctly
Definition at line 183 of file fib_node.c.
static int fib_node_ptr_format_one_child |
( |
fib_node_ptr_t * |
ptr, |
|
|
void * |
arg |
|
) |
| |
|
static |
Create a new FIB node type and Register the function table for it.
- Parameters
-
vft | virtual function table |
- Returns
- new FIB node type
Definition at line 78 of file fib_node.c.
fib_node_register_type
Register the function table for a given type.
Register the function table for a given type
Definition at line 58 of file fib_node.c.
void fib_show_memory_usage |
( |
const char * |
name, |
|
|
u32 |
in_use_elts, |
|
|
u32 |
allocd_elts, |
|
|
size_t |
size_elt |
|
) |
| |
Show the memory usage for a type.
This should be invoked by the type in response to the infra calling its registered memory show function
- Parameters
-
name | the name of the type |
in_use_elts | The number of elements in use |
allocd_elts | The number of allocated pool elemenets |
size_elt | The size of one element |
Definition at line 221 of file fib_node.c.
The last registered new type.
Definition at line 27 of file fib_node.c.
Initial value:= {
.path = "show fib memory",
.short_help = "show fib memory",
}
static clib_error_t * fib_memory_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_fib_memory)
Definition at line 272 of file fib_node.c.