FD.io VPP  v16.09
Vector Packet Processing
cli.c File Reference
+ Include dependency graph for cli.c:

Go to the source code of this file.

Functions

static clib_error_tpcap_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_dpdk_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_dpdk_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void show_dpdk_device_stats (vlib_main_t *vm, dpdk_device_t *xd)
 
static void show_efd_config (vlib_main_t *vm)
 
static clib_error_tshow_efd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_efd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tparse_op_and_prec (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd, char *prec_type, u8 *prec_bitmap)
 
static clib_error_tset_efd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_desc (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_dpdk_if_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int dpdk_device_queue_sort (void *a1, void *a2)
 
static clib_error_tset_dpdk_if_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tdpdk_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t pcap_trace_command
 (constructor) VLIB_CLI_COMMAND (pcap_trace_command) More...
 
static vlib_cli_command_t cmd_show_dpdk_bufferr
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_bufferr) More...
 
static vlib_cli_command_t cmd_test_dpdk_buffer
 (constructor) VLIB_CLI_COMMAND (cmd_test_dpdk_buffer) More...
 
static vlib_cli_command_t show_efd_command
 (constructor) VLIB_CLI_COMMAND (show_efd_command) More...
 
static vlib_cli_command_t clear_efd_command
 (constructor) VLIB_CLI_COMMAND (clear_efd_command) More...
 
static vlib_cli_command_t cmd_set_efd
 (constructor) VLIB_CLI_COMMAND (cmd_set_efd) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_desc
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_desc) More...
 
static vlib_cli_command_t cmd_show_dpdk_if_placement
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_placement) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_placement
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement) More...
 

Function Documentation

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

Definition at line 416 of file cli.c.

+ Here is the call graph for this function:

clib_error_t* dpdk_cli_init ( vlib_main_t vm)

Definition at line 894 of file cli.c.

+ Here is the caller graph for this function:

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

Definition at line 783 of file cli.c.

+ Here is the caller graph for this function:

static clib_error_t* parse_op_and_prec ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd,
char *  prec_type,
u8 prec_bitmap 
)
static

Definition at line 462 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 29 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 678 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 801 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 518 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 161 of file cli.c.

+ Here is the call graph for this function:

static void show_dpdk_device_stats ( vlib_main_t vm,
dpdk_device_t xd 
)
static

Definition at line 265 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 744 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 326 of file cli.c.

+ Here is the call graph for this function:

static void show_efd_config ( vlib_main_t vm)
static

Definition at line 294 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 203 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t clear_efd_command
static
Initial value:
= {
.path = "clear efd",
.short_help = "Clear early-fast-discard counters",
.function = clear_efd,
}
static clib_error_t * clear_efd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:416

(constructor) VLIB_CLI_COMMAND (clear_efd_command)

Definition at line 454 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_desc
static
Initial value:
= {
.path = "set dpdk interface descriptors",
.short_help = "set dpdk interface descriptors <if-name> [rx <n>] [tx <n>]",
.function = set_dpdk_if_desc,
}
static clib_error_t * set_dpdk_if_desc(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:678

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_desc)

Definition at line 736 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_placement
static
Initial value:
= {
.path = "set dpdk interface placement",
.short_help = "set dpdk interface placement <if-name> [queue <n>] thread <n>",
.function = set_dpdk_if_placement,
}
static clib_error_t * set_dpdk_if_placement(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:801

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement)

Definition at line 886 of file cli.c.

vlib_cli_command_t cmd_set_efd
static
Initial value:
= {
.path = "set efd",
.short_help = "set early-fast-discard commands",
.function = set_efd,
}
static clib_error_t * set_efd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:518

(constructor) VLIB_CLI_COMMAND (cmd_set_efd)

Definition at line 670 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_bufferr
static
Initial value:
= {
.path = "show dpdk buffer",
.short_help = "show dpdk buffer state",
.function = show_dpdk_buffer,
.is_mp_safe = 1,
}
static clib_error_t * show_dpdk_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:161

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_bufferr)

Definition at line 194 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_if_placement
static
Initial value:
= {
.path = "show dpdk interface placement",
.short_help = "show dpdk interface placement",
}
static clib_error_t * show_dpdk_if_placement(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:744

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_placement)

Definition at line 775 of file cli.c.

vlib_cli_command_t cmd_test_dpdk_buffer
static
Initial value:
= {
.path = "test dpdk buffer",
.short_help = "test dpdk buffer [allocate <nn>][free <nn>]",
.function = test_dpdk_buffer,
.is_mp_safe = 1,
}
static clib_error_t * test_dpdk_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:203

(constructor) VLIB_CLI_COMMAND (cmd_test_dpdk_buffer)

Definition at line 256 of file cli.c.

vlib_cli_command_t pcap_trace_command
static
Initial value:
= {
.path = "pcap tx trace",
.short_help =
"pcap tx trace on off max <nn> intfc <intfc> file <name> status",
.function = pcap_trace_command_fn,
}
static clib_error_t * pcap_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:29

(constructor) VLIB_CLI_COMMAND (pcap_trace_command)

Definition at line 151 of file cli.c.

vlib_cli_command_t show_efd_command
static
Initial value:
= {
.path = "show efd",
.short_help = "Show efd [device <id>] | [config]",
.function = show_efd,
}
static clib_error_t * show_efd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:326

(constructor) VLIB_CLI_COMMAND (show_efd_command)

Definition at line 408 of file cli.c.