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

Go to the source code of this file.

Macros

#define VHOST_USER_DEBUG_SOCKET   0
 
#define DBG_SOCK(args...)
 
#define foreach_dpdk_vhost_feature
 

Functions

static clib_error_tdpdk_vhost_user_connect_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tdpdk_vhost_user_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_dpdk_vhost_user_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t dpdk_vhost_user_connect_command
 (constructor) VLIB_CLI_COMMAND (dpdk_vhost_user_connect_command) More...
 
static vlib_cli_command_t dpdk_vhost_user_delete_command
 (constructor) VLIB_CLI_COMMAND (dpdk_vhost_user_delete_command) More...
 
static vlib_cli_command_t show_vhost_user_command
 (constructor) VLIB_CLI_COMMAND (show_vhost_user_command) More...
 

Macro Definition Documentation

#define DBG_SOCK (   args...)

Definition at line 39 of file vhost_user.c.

#define foreach_dpdk_vhost_feature
Value:
_ (VIRTIO_NET_F_MRG_RXBUF) \
_ (VIRTIO_NET_F_CTRL_VQ) \
_ (VIRTIO_NET_F_CTRL_RX)

Definition at line 1927 of file vhost_user.c.

#define VHOST_USER_DEBUG_SOCKET   0

Definition at line 34 of file vhost_user.c.

Function Documentation

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

Definition at line 1800 of file vhost_user.c.

+ Here is the call graph for this function:

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

Definition at line 1873 of file vhost_user.c.

+ Here is the call graph for this function:

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

Definition at line 1933 of file vhost_user.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t dpdk_vhost_user_connect_command
static
Initial value:
= {
.path = "create vhost-user",
.short_help = "create vhost-user socket <socket-filename> [server] [feature-mask <hex>] [renumber <dev_instance>]",
}
static clib_error_t * dpdk_vhost_user_connect_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: vhost_user.c:1800

(constructor) VLIB_CLI_COMMAND (dpdk_vhost_user_connect_command)

Definition at line 1865 of file vhost_user.c.

vlib_cli_command_t dpdk_vhost_user_delete_command
static
Initial value:
= {
.path = "delete vhost-user",
.short_help = "delete vhost-user sw_if_index <nn>",
}
static clib_error_t * dpdk_vhost_user_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: vhost_user.c:1873

(constructor) VLIB_CLI_COMMAND (dpdk_vhost_user_delete_command)

Definition at line 1920 of file vhost_user.c.

vlib_cli_command_t show_vhost_user_command
static
Initial value:
= {
.path = "show vhost-user",
.short_help = "show vhost-user interface",
}
static clib_error_t * show_dpdk_vhost_user_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: vhost_user.c:1933

(constructor) VLIB_CLI_COMMAND (show_vhost_user_command)

Definition at line 2108 of file vhost_user.c.