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

Go to the source code of this file.

Macros

#define format__(vm__, fd__, ...)
 

Functions

static int node_cmp (void *a1, void *a2)
 
static clib_error_tshow_node_graph (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_node_graphviz (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_vlib_node_state (u8 *s, va_list *va)
 
static u8format_vlib_node_stats (u8 *s, va_list *va)
 
f64 vlib_get_stat_segment_update_rate (void)
 
static clib_error_tshow_node_runtime (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_node_runtime (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_node (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_node_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void vlib_node_cli_reference (void)
 

Variables

static vlib_cli_command_t show_node_graph_command
 (constructor) VLIB_CLI_COMMAND (show_node_graph_command) More...
 
static vlib_cli_command_t show_node_graphviz_command
 (constructor) VLIB_CLI_COMMAND (show_node_graphviz_command) More...
 
static vlib_cli_command_t show_node_runtime_command
 (constructor) VLIB_CLI_COMMAND (show_node_runtime_command) More...
 
static vlib_cli_command_t clear_node_runtime_command
 (constructor) VLIB_CLI_COMMAND (clear_node_runtime_command) More...
 
static vlib_cli_command_t show_node_command
 (constructor) VLIB_CLI_COMMAND (show_node_command) More...
 
static vlib_cli_command_t set_node_fn_command
 (constructor) VLIB_CLI_COMMAND (set_node_fn_command) More...
 

Macro Definition Documentation

◆ format__

#define format__ (   vm__,
  fd__,
  ... 
)
Value:
if ((fd) < 0) \
{ \
vlib_cli_output((vm__), ## __VA_ARGS__); \
} \
else \
{ \
fdformat((fd__), ## __VA_ARGS__); \
}

Function Documentation

◆ clear_node_runtime()

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

Definition at line 659 of file node_cli.c.

+ Here is the call graph for this function:

◆ format_vlib_node_state()

static u8* format_vlib_node_state ( u8 s,
va_list *  va 
)
static

Definition at line 336 of file node_cli.c.

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

◆ format_vlib_node_stats()

static u8* format_vlib_node_stats ( u8 s,
va_list *  va 
)
static

Definition at line 382 of file node_cli.c.

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

◆ node_cmp()

static int node_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 48 of file node_cli.c.

+ Here is the caller graph for this function:

◆ set_node_fn()

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

Definition at line 880 of file node_cli.c.

+ Here is the call graph for this function:

◆ show_node()

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

Definition at line 711 of file node_cli.c.

+ Here is the call graph for this function:

◆ show_node_graph()

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

Definition at line 57 of file node_cli.c.

+ Here is the call graph for this function:

◆ show_node_graphviz()

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

Definition at line 96 of file node_cli.c.

+ Here is the call graph for this function:

◆ show_node_runtime()

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

Definition at line 476 of file node_cli.c.

+ Here is the call graph for this function:

◆ vlib_get_stat_segment_update_rate()

f64 vlib_get_stat_segment_update_rate ( void  )

Definition at line 470 of file node_cli.c.

+ Here is the caller graph for this function:

◆ vlib_node_cli_reference()

void vlib_node_cli_reference ( void  )

Definition at line 935 of file node_cli.c.

Variable Documentation

◆ clear_node_runtime_command

vlib_cli_command_t clear_node_runtime_command
static
Initial value:
= {
.path = "clear runtime",
.short_help = "Clear packet processing runtime statistics",
.function = clear_node_runtime,
}

(constructor) VLIB_CLI_COMMAND (clear_node_runtime_command)

Definition at line 703 of file node_cli.c.

◆ set_node_fn_command

vlib_cli_command_t set_node_fn_command
static
Initial value:
= {
.path = "set node function",
.short_help = "set node function <node-name> <variant-name>",
.function = set_node_fn,
}

(constructor) VLIB_CLI_COMMAND (set_node_fn_command)

Definition at line 926 of file node_cli.c.

◆ show_node_command

vlib_cli_command_t show_node_command
static
Initial value:
= {
.path = "show node",
.short_help = "show node [index] <node-name | node-index>",
.function = show_node,
}

(constructor) VLIB_CLI_COMMAND (show_node_command)

Definition at line 873 of file node_cli.c.

◆ show_node_graph_command

vlib_cli_command_t show_node_graph_command
static
Initial value:
= {
.path = "show vlib graph",
.short_help = "Show packet processing node graph",
.function = show_node_graph,
}

(constructor) VLIB_CLI_COMMAND (show_node_graph_command)

Definition at line 88 of file node_cli.c.

◆ show_node_graphviz_command

vlib_cli_command_t show_node_graphviz_command
static
Initial value:
= {
.path = "show vlib graphviz",
.short_help = "Dump packet processing node graph as a graphviz dotfile",
.function = show_node_graphviz,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (show_node_graphviz_command)

Definition at line 327 of file node_cli.c.

◆ show_node_runtime_command

vlib_cli_command_t show_node_runtime_command
static
Initial value:
= {
.path = "show runtime",
.short_help = "Show packet processing runtime",
.function = show_node_runtime,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (show_node_runtime_command)

Definition at line 650 of file node_cli.c.

show_node_graph
static clib_error_t * show_node_graph(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:57
show_node_runtime
static clib_error_t * show_node_runtime(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:476
set_node_fn
static clib_error_t * set_node_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:880
show_node
static clib_error_t * show_node(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:711
show_node_graphviz
static clib_error_t * show_node_graphviz(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:96
clear_node_runtime
static clib_error_t * clear_node_runtime(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: node_cli.c:659