FD.io VPP  v16.06
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)
 
static uword misc_drop_buffers (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
void vlib_register_errors (vlib_main_t *vm, u32 node_index, u32 n_errors, char *error_strings[])
 
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

static char * misc_drop_buffers_error_strings []
 
vlib_node_registration_t misc_drop_buffers_node
 (constructor) VLIB_REGISTER_NODE (misc_drop_buffers_node) More...
 
vlib_cli_command_t cli_show_errors
 (constructor) VLIB_CLI_COMMAND (cli_show_errors) More...
 
vlib_cli_command_t cli_show_node_counters
 (constructor) VLIB_CLI_COMMAND (cli_show_node_counters) More...
 
vlib_cli_command_t cli_clear_error_counters
 (constructor) VLIB_CLI_COMMAND (cli_clear_error_counters) More...
 
vlib_cli_command_t cli_clear_node_counters
 (constructor) VLIB_CLI_COMMAND (cli_clear_node_counters) More...
 

Function Documentation

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

Definition at line 298 of file error.c.

static uword misc_drop_buffers ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 115 of file error.c.

+ Here is the call graph for this function:

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

Definition at line 206 of file error.c.

+ Here is the call graph for this function:

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 44 of file error.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 145 of file error.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t cli_clear_error_counters
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:298

(constructor) VLIB_CLI_COMMAND (cli_clear_error_counters)

Definition at line 314 of file error.c.

vlib_cli_command_t cli_clear_node_counters
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:298

(constructor) VLIB_CLI_COMMAND (cli_clear_node_counters)

Definition at line 320 of file error.c.

vlib_cli_command_t 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:206

(constructor) VLIB_CLI_COMMAND (cli_show_errors)

Definition at line 285 of file error.c.

vlib_cli_command_t cli_show_node_counters
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:206

(constructor) VLIB_CLI_COMMAND (cli_show_node_counters)

Definition at line 291 of file error.c.

char* misc_drop_buffers_error_strings[]
static
Initial value:
= {
[0] = "misc. errors",
}

Definition at line 128 of file error.c.

vlib_node_registration_t misc_drop_buffers_node
Initial value:
= {
.function = misc_drop_buffers,
.name = "misc-drop-buffers",
.vector_size = sizeof (u32),
.n_errors = 1,
.n_next_nodes = 1,
.next_nodes = {
"error-drop",
},
}
static char * misc_drop_buffers_error_strings[]
Definition: error.c:128
unsigned int u32
Definition: types.h:88
static uword misc_drop_buffers(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: error.c:115

(constructor) VLIB_REGISTER_NODE (misc_drop_buffers_node)

Definition at line 132 of file error.c.