FD.io VPP  v17.01.1-3-gc6833f8
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 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)
 
static clib_error_tshow_dpdk_if_hqos_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_hqos_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_hqos_pipe (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_hqos_subport (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_hqos_tctbl (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_dpdk_if_hqos_pktfield (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_dpdk_if_hqos (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_dpdk_hqos_queue_stats (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 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...
 
static vlib_cli_command_t cmd_show_dpdk_if_hqos_placement
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_hqos_placement) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_hqos_placement
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_placement) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_hqos_pipe
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_pipe) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_hqos_subport
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_subport) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_hqos_tctbl
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_tctbl) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_hqos_pktfield
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_pktfield) More...
 
static vlib_cli_command_t cmd_show_dpdk_if_hqos
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_hqos) More...
 
static vlib_cli_command_t cmd_show_dpdk_hqos_queue_stats
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_hqos_queue_stats) More...
 

Function Documentation

clib_error_t* dpdk_cli_init ( vlib_main_t vm)

Definition at line 1283 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 365 of file cli.c.

+ 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 260 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 592 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 805 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 514 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 653 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 731 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 383 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 clib_error_t* show_dpdk_hqos_queue_stats ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1169 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 960 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 476 of file cli.c.

+ Here is the call 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 326 of file cli.c.

+ Here is the call 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 198 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

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:260

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_desc)

Definition at line 318 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_hqos_pipe
static
Initial value:
=
{
.path = "set dpdk interface hqos pipe",
.short_help = "set dpdk interface hqos pipe <if-name> subport <n> pipe <n> "
"profile <n>",
.function = set_dpdk_if_hqos_pipe,
}
static clib_error_t * set_dpdk_if_hqos_pipe(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:592

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_pipe)

Definition at line 643 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_hqos_pktfield
static
Initial value:
= {
.path = "set dpdk interface hqos pktfield",
.short_help = "set dpdk interface hqos pktfield <if-name> id <n> offset <n> "
"mask <n>",
}
static clib_error_t * set_dpdk_if_hqos_pktfield(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:805

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_pktfield)

Definition at line 951 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_hqos_placement
static
Initial value:
= {
.path = "set dpdk interface hqos placement",
.short_help = "set dpdk interface hqos placement <if-name> thread <n>",
}
static clib_error_t * set_dpdk_if_hqos_placement(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:514

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_placement)

Definition at line 584 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_hqos_subport
static
Initial value:
= {
.path = "set dpdk interface hqos subport",
.short_help = "set dpdk interface hqos subport <if-name> subport <n> "
"[rate <n>] [bktsize <n>] [tc0 <n>] [tc1 <n>] [tc2 <n>] [tc3 <n>] "
"[period <n>]",
}
static clib_error_t * set_dpdk_if_hqos_subport(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:653

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_subport)

Definition at line 721 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_hqos_tctbl
static
Initial value:
= {
.path = "set dpdk interface hqos tctbl",
.short_help = "set dpdk interface hqos tctbl <if-name> entry <n> tc <n> queue <n>",
}
static clib_error_t * set_dpdk_if_hqos_tctbl(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:731

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_hqos_tctbl)

Definition at line 797 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:383

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement)

Definition at line 468 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 189 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_hqos_queue_stats
static
Initial value:
= {
.path = "show dpdk hqos queue",
.short_help = "show dpdk hqos queue <if-name> subport <subport> pipe <pipe> tc <tc> tc_q <tc_q>",
}
static clib_error_t * show_dpdk_hqos_queue_stats(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:1169

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_hqos_queue_stats)

Definition at line 1275 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_if_hqos
static
Initial value:
= {
.path = "show dpdk interface hqos",
.short_help = "show dpdk interface hqos <if-name>",
.function = show_dpdk_if_hqos,
}
static clib_error_t * show_dpdk_if_hqos(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:960

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_hqos)

Definition at line 1160 of file cli.c.

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

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_hqos_placement)

Definition at line 506 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:326

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_placement)

Definition at line 357 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:198

(constructor) VLIB_CLI_COMMAND (cmd_test_dpdk_buffer)

Definition at line 251 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.