FD.io VPP  v16.06
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 clib_error_ttrace_frame_queue (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u32 compute_percent (u64 *two_counters, u64 total)
 
static clib_error_tshow_frame_queue_internal (vlib_main_t *vm, u32 histogram)
 
static clib_error_tshow_frame_queue_trace (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_frame_queue_histogram (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_frame_queue_nelts (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_frame_queue_threshold (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
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

vlib_cli_command_t pcap_trace_command
 (constructor) VLIB_CLI_COMMAND (pcap_trace_command) More...
 
vlib_cli_command_t cmd_show_dpdk_bufferr
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_bufferr) More...
 
vlib_cli_command_t cmd_test_dpdk_buffer
 (constructor) VLIB_CLI_COMMAND (cmd_test_dpdk_buffer) More...
 
vlib_cli_command_t cmd_trace_frame_queue
 (constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue) More...
 
vlib_cli_command_t cmd_show_frame_queue_trace
 (constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace) More...
 
vlib_cli_command_t cmd_show_frame_queue_histogram
 (constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram) More...
 
vlib_cli_command_t cmd_test_frame_queue_nelts
 (constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts) More...
 
vlib_cli_command_t cmd_test_frame_queue_threshold
 (constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold) More...
 
vlib_cli_command_t show_efd_command
 (constructor) VLIB_CLI_COMMAND (show_efd_command) More...
 
vlib_cli_command_t clear_efd_command
 (constructor) VLIB_CLI_COMMAND (clear_efd_command) More...
 
vlib_cli_command_t cmd_set_efd
 (constructor) VLIB_CLI_COMMAND (cmd_set_efd) More...
 
vlib_cli_command_t cmd_set_dpdk_if_desc
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_desc) More...
 
vlib_cli_command_t cmd_show_dpdk_if_placement
 (constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_placement) More...
 
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 671 of file cli.c.

+ Here is the call graph for this function:

static u32 compute_percent ( u64 two_counters,
u64  total 
)
static

Definition at line 343 of file cli.c.

+ Here is the caller graph for this function:

clib_error_t* dpdk_cli_init ( vlib_main_t vm)

Definition at line 1059 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 954 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 711 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 857 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 972 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 756 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 159 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 253 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 919 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 595 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 562 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_frame_queue_histogram ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 463 of file cli.c.

+ Here is the call graph for this function:

static clib_error_t* show_frame_queue_internal ( vlib_main_t vm,
u32  histogram 
)
static

Definition at line 359 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_frame_queue_trace ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

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

+ Here is the call graph for this function:

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

Definition at line 486 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 524 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 289 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t clear_efd_command
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:671

(constructor) VLIB_CLI_COMMAND (clear_efd_command)

Definition at line 704 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_desc
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:857

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_desc)

Definition at line 912 of file cli.c.

vlib_cli_command_t cmd_set_dpdk_if_placement
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:972

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement)

Definition at line 1052 of file cli.c.

vlib_cli_command_t cmd_set_efd
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:756

(constructor) VLIB_CLI_COMMAND (cmd_set_efd)

Definition at line 850 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_bufferr
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:159

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_bufferr)

Definition at line 185 of file cli.c.

vlib_cli_command_t cmd_show_dpdk_if_placement
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:919

(constructor) VLIB_CLI_COMMAND (cmd_show_dpdk_if_placement)

Definition at line 947 of file cli.c.

vlib_cli_command_t cmd_show_frame_queue_histogram
Initial value:
= {
.path = "show frame-queue histogram",
.short_help = "show frame-queue histogram",
}
static clib_error_t * show_frame_queue_histogram(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:463

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 475 of file cli.c.

vlib_cli_command_t cmd_show_frame_queue_trace
Initial value:
= {
.path = "show frame-queue",
.short_help = "show frame-queue trace",
}
static clib_error_t * show_frame_queue_trace(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:456

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 469 of file cli.c.

vlib_cli_command_t cmd_test_dpdk_buffer
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:193

(constructor) VLIB_CLI_COMMAND (cmd_test_dpdk_buffer)

Definition at line 245 of file cli.c.

vlib_cli_command_t cmd_test_frame_queue_nelts
Initial value:
= {
.path = "test frame-queue nelts",
.short_help = "test frame-queue nelts (4,8,16,32)",
}
static clib_error_t * test_frame_queue_nelts(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:486

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 513 of file cli.c.

vlib_cli_command_t cmd_test_frame_queue_threshold
Initial value:
= {
.path = "test frame-queue threshold",
.short_help = "test frame-queue threshold N (0=no limit)",
}
static clib_error_t * test_frame_queue_threshold(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:524

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 555 of file cli.c.

vlib_cli_command_t cmd_trace_frame_queue
Initial value:
= {
.path = "trace frame-queue",
.short_help = "trace frame-queue (on|off)",
.function = trace_frame_queue,
.is_mp_safe = 1,
}
static clib_error_t * trace_frame_queue(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:289

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

Definition at line 330 of file cli.c.

vlib_cli_command_t pcap_trace_command
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 150 of file cli.c.

vlib_cli_command_t show_efd_command
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:595

(constructor) VLIB_CLI_COMMAND (show_efd_command)

Definition at line 664 of file cli.c.