FD.io VPP  v21.06-3-gbb25fbf28
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_ttap_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttap_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttap_offload_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttap_show_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttun_show_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_ttap_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t tap_create_command
 (constructor) VLIB_CLI_COMMAND (tap_create_command) More...
 
static vlib_cli_command_t tap_delete__command
 (constructor) VLIB_CLI_COMMAND (tap_delete__command) More...
 
static vlib_cli_command_t tap_offload_command
 (constructor) VLIB_CLI_COMMAND (tap_offload_command) More...
 
static vlib_cli_command_t tap_show_command
 (constructor) VLIB_CLI_COMMAND (tap_show_command) More...
 
static vlib_cli_command_t tun_show_command
 (constructor) VLIB_CLI_COMMAND (tun_show_command) More...
 

Function Documentation

◆ tap_cli_init()

clib_error_t* tap_cli_init ( vlib_main_t vm)

Definition at line 370 of file cli.c.

◆ tap_create_command_fn()

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

Definition at line 32 of file cli.c.

+ Here is the call graph for this function:

◆ tap_delete_command_fn()

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

Definition at line 152 of file cli.c.

+ Here is the call graph for this function:

◆ tap_offload_command_fn()

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

Definition at line 200 of file cli.c.

+ Here is the call graph for this function:

◆ tap_show_command_fn()

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

Definition at line 272 of file cli.c.

+ Here is the call graph for this function:

◆ tun_show_command_fn()

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

Definition at line 321 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ tap_create_command

vlib_cli_command_t tap_create_command
static
Initial value:
= {
.path = "create tap",
.short_help = "create tap {id <if-id>} [hw-addr <mac-address>] "
"[num-rx-queues <n>] [rx-ring-size <size>] [tx-ring-size <size>] "
"[host-ns <netns>] [host-bridge <bridge-name>] "
"[host-ip4-addr <ip4addr/mask>] [host-ip6-addr <ip6-addr>] "
"[host-ip4-gw <ip4-addr>] [host-ip6-gw <ip6-addr>] "
"[host-mac-addr <host-mac-address>] [host-if-name <name>] "
"[host-mtu-size <size>] [no-gso|gso [gro-coalesce]|csum-offload] "
"[persist] [attach] [tun] [packed] [in-order]",
.function = tap_create_command_fn,
}

(constructor) VLIB_CLI_COMMAND (tap_create_command)

Definition at line 137 of file cli.c.

◆ tap_delete__command

vlib_cli_command_t tap_delete__command
static
Initial value:
=
{
.path = "delete tap",
.short_help = "delete tap {<interface> | sw_if_index <sw_idx>}",
.function = tap_delete_command_fn,
}

(constructor) VLIB_CLI_COMMAND (tap_delete__command)

Definition at line 191 of file cli.c.

◆ tap_offload_command

vlib_cli_command_t tap_offload_command
static
Initial value:
=
{
.path = "set tap offload",
.short_help = "set tap offload {<interface> | sw_if_index <sw_idx>}"
" <gso-enable [gro-coalesce] | gso-disable | csum-offload-enable |"
"csum-offload-disable>",
}

(constructor) VLIB_CLI_COMMAND (tap_offload_command)

Definition at line 261 of file cli.c.

◆ tap_show_command

vlib_cli_command_t tap_show_command
static
Initial value:
= {
.path = "show tap",
.short_help = "show tap {<interface>] [descriptors]",
.function = tap_show_command_fn,
}

(constructor) VLIB_CLI_COMMAND (tap_show_command)

Definition at line 313 of file cli.c.

◆ tun_show_command

vlib_cli_command_t tun_show_command
static
Initial value:
= {
.path = "show tun",
.short_help = "show tun {<interface>] [descriptors]",
.function = tun_show_command_fn,
}

(constructor) VLIB_CLI_COMMAND (tun_show_command)

Definition at line 362 of file cli.c.

tap_create_command_fn
static clib_error_t * tap_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:32
tun_show_command_fn
static clib_error_t * tun_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:321
tap_delete_command_fn
static clib_error_t * tap_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:152
tap_offload_command_fn
static clib_error_t * tap_offload_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:200
tap_show_command_fn
static clib_error_t * tap_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:272