FD.io VPP  v21.01.1
Vector Packet Processing
error.c File Reference
+ Include dependency graph for error.c:

Go to the source code of this file.

Functions

uword vlib_error_drop_buffers (vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u32 next_buffer_stride, u32 n_buffers, u32 next_index, u32 drop_error_node, u32 drop_error_code)
 
void vlib_register_errors (vlib_main_t *vm, u32 node_index, u32 n_errors, char *error_strings[], vl_counter_t counters[])
 
static char * sev2str (enum vl_counter_severity_e s)
 
static clib_error_tshow_errors (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_error_counters (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

vlib_cli_command_t vlib_cli_show_errors
 (constructor) VLIB_CLI_COMMAND (vlib_cli_show_errors) More...
 
static vlib_cli_command_t cli_show_node_counters
 (constructor) VLIB_CLI_COMMAND (cli_show_node_counters) More...
 
static vlib_cli_command_t cli_clear_error_counters
 (constructor) VLIB_CLI_COMMAND (cli_clear_error_counters) More...
 
static vlib_cli_command_t cli_clear_node_counters
 (constructor) VLIB_CLI_COMMAND (cli_clear_node_counters) More...
 

Function Documentation

◆ clear_error_counters()

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

Definition at line 332 of file error.c.

◆ sev2str()

static char* sev2str ( enum vl_counter_severity_e  s)
static

Definition at line 214 of file error.c.

+ Here is the caller graph for this function:

◆ show_errors()

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

Definition at line 230 of file error.c.

+ Here is the call graph for this function:

◆ vlib_error_drop_buffers()

uword vlib_error_drop_buffers ( vlib_main_t vm,
vlib_node_runtime_t node,
u32 buffers,
u32  next_buffer_stride,
u32  n_buffers,
u32  next_index,
u32  drop_error_node,
u32  drop_error_code 
)

Definition at line 45 of file error.c.

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

◆ vlib_register_errors()

void vlib_register_errors ( vlib_main_t vm,
u32  node_index,
u32  n_errors,
char *  error_strings[],
vl_counter_t  counters[] 
)

Definition at line 117 of file error.c.

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

Variable Documentation

◆ cli_clear_error_counters

vlib_cli_command_t cli_clear_error_counters
static
Initial value:
= {
.path = "clear errors",
.short_help = "Clear error counters",
.function = clear_error_counters,
}
static clib_error_t * clear_error_counters(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: error.c:332

(constructor) VLIB_CLI_COMMAND (cli_clear_error_counters)

Definition at line 350 of file error.c.

◆ cli_clear_node_counters

vlib_cli_command_t cli_clear_node_counters
static
Initial value:
= {
.path = "clear node counters",
.short_help = "Clear node counters",
.function = clear_error_counters,
}
static clib_error_t * clear_error_counters(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: error.c:332

(constructor) VLIB_CLI_COMMAND (cli_clear_node_counters)

Definition at line 358 of file error.c.

◆ cli_show_node_counters

vlib_cli_command_t cli_show_node_counters
static
Initial value:
= {
.path = "show node counters",
.short_help = "Show node counters",
.function = show_errors,
}
static clib_error_t * show_errors(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: error.c:230

(constructor) VLIB_CLI_COMMAND (cli_show_node_counters)

Definition at line 324 of file error.c.

◆ vlib_cli_show_errors

vlib_cli_command_t vlib_cli_show_errors
Initial value:
= {
.path = "show errors",
.short_help = "Show error counts",
.function = show_errors,
}
static clib_error_t * show_errors(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: error.c:230

(constructor) VLIB_CLI_COMMAND (vlib_cli_show_errors)

Definition at line 316 of file error.c.