FD.io VPP  v19.04.4-rc0-5-ge88582fac
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_tmemif_socket_filename_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmemif_socket_filename_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmemif_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmemif_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_memif_if_flags (u8 *s, va_list *args)
 
static u8format_memif_if_mode (u8 *s, va_list *args)
 
static u8format_memif_queue (u8 *s, va_list *args)
 
static u8format_memif_descriptor (u8 *s, va_list *args)
 
static clib_error_tmemif_show_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tmemif_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t memif_socket_filename_create_command
 (constructor) VLIB_CLI_COMMAND (memif_socket_filename_create_command) More...
 
static vlib_cli_command_t memif_socket_filename_delete_command
 (constructor) VLIB_CLI_COMMAND (memif_socket_filename_delete_command) More...
 
static vlib_cli_command_t memif_create_command
 (constructor) VLIB_CLI_COMMAND (memif_create_command) More...
 
static vlib_cli_command_t memif_delete_command
 (constructor) VLIB_CLI_COMMAND (memif_delete_command) More...
 
static vlib_cli_command_t memif_show_command
 (constructor) VLIB_CLI_COMMAND (memif_show_command) More...
 

Function Documentation

◆ format_memif_descriptor()

static u8* format_memif_descriptor ( u8 s,
va_list *  args 
)
static

Definition at line 367 of file cli.c.

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

◆ format_memif_if_flags()

static u8* format_memif_if_flags ( u8 s,
va_list *  args 
)
static

Definition at line 320 of file cli.c.

+ Here is the caller graph for this function:

◆ format_memif_if_mode()

static u8* format_memif_if_mode ( u8 s,
va_list *  args 
)
static

Definition at line 330 of file cli.c.

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

◆ format_memif_queue()

static u8* format_memif_queue ( u8 s,
va_list *  args 
)
static

Definition at line 343 of file cli.c.

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

◆ memif_cli_init()

clib_error_t* memif_cli_init ( vlib_main_t vm)

Definition at line 539 of file cli.c.

◆ memif_create_command_fn()

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

Definition at line 171 of file cli.c.

+ Here is the call graph for this function:

◆ memif_delete_command_fn()

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

Definition at line 270 of file cli.c.

+ Here is the call graph for this function:

◆ memif_show_command_fn()

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

Definition at line 406 of file cli.c.

+ Here is the call graph for this function:

◆ memif_socket_filename_create_command_fn()

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

Definition at line 31 of file cli.c.

+ Here is the call graph for this function:

◆ memif_socket_filename_delete_command_fn()

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

Definition at line 108 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ memif_create_command

vlib_cli_command_t memif_create_command
static
Initial value:
= {
.path = "create interface memif",
.short_help = "create interface memif [id <id>] [socket-id <socket-id>] "
"[ring-size <size>] [buffer-size <size>] "
"[hw-addr <mac-address>] "
"<master|slave> [rx-queues <number>] [tx-queues <number>] "
"[mode ip] [secret <string>]",
}
static clib_error_t * memif_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:171

(constructor) VLIB_CLI_COMMAND (memif_create_command)

Definition at line 258 of file cli.c.

◆ memif_delete_command

vlib_cli_command_t memif_delete_command
static
Initial value:
= {
.path = "delete interface memif",
.short_help = "delete interface memif {<interface> | sw_if_index <sw_idx>}",
}
static clib_error_t * memif_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:270

(constructor) VLIB_CLI_COMMAND (memif_delete_command)

Definition at line 312 of file cli.c.

◆ memif_show_command

vlib_cli_command_t memif_show_command
static
Initial value:
= {
.path = "show memif",
.short_help = "show memif [<interface>] [descriptors]",
.function = memif_show_command_fn,
}
static clib_error_t * memif_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:406

(constructor) VLIB_CLI_COMMAND (memif_show_command)

Definition at line 531 of file cli.c.

◆ memif_socket_filename_create_command

vlib_cli_command_t memif_socket_filename_create_command
static
Initial value:
= {
.path = "create memif socket",
.short_help = "create memif socket [id <id>] [filename <path>]",
}
static clib_error_t * memif_socket_filename_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:31

(constructor) VLIB_CLI_COMMAND (memif_socket_filename_create_command)

Definition at line 100 of file cli.c.

◆ memif_socket_filename_delete_command

vlib_cli_command_t memif_socket_filename_delete_command
static
Initial value:
= {
.path = "delete memif socket",
.short_help = "delete memif socket [id <id>]",
}
static clib_error_t * memif_socket_filename_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:108

(constructor) VLIB_CLI_COMMAND (memif_socket_filename_delete_command)

Definition at line 163 of file cli.c.