![]() |
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
vHost User Device Driver. More...
Go to the source code of this file.
Macros | |
#define | foreach_protocol_feature |
Variables | |
vlib_node_registration_t | vhost_user_send_interrupt_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_send_interrupt_node) More... | |
vhost_user_main_t | vhost_user_main |
static vlib_node_registration_t | vhost_user_process_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_process_node) More... | |
static vlib_cli_command_t | vhost_user_connect_command |
(constructor) VLIB_CLI_COMMAND (vhost_user_connect_command) More... | |
static vlib_cli_command_t | vhost_user_delete_command |
(constructor) VLIB_CLI_COMMAND (vhost_user_delete_command) More... | |
static vlib_cli_command_t | show_vhost_user_command |
(constructor) VLIB_CLI_COMMAND (show_vhost_user_command) More... | |
vHost User Device Driver.
This file contains the source code for vHost User interface.
Definition in file vhost_user.c.
#define foreach_protocol_feature |
Definition at line 1888 of file vhost_user.c.
Definition at line 1970 of file vhost_user.c.
|
static |
clib_error_t* show_vhost_user_command_fn | ( | vlib_main_t * | vm, |
unformat_input_t * | input, | ||
vlib_cli_command_t * | cmd | ||
) |
|
static |
Definition at line 73 of file vhost_user.c.
|
static |
|
static |
clib_error_t* vhost_user_connect_command_fn | ( | vlib_main_t * | vm, |
unformat_input_t * | input, | ||
vlib_cli_command_t * | cmd | ||
) |
|
static |
Create ethernet interface for vhost user interface.
Definition at line 1512 of file vhost_user.c.
int vhost_user_create_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
vhost_user_create_if_args_t * | args | ||
) |
Definition at line 1622 of file vhost_user.c.
clib_error_t* vhost_user_delete_command_fn | ( | vlib_main_t * | vm, |
unformat_input_t * | input, | ||
vlib_cli_command_t * | cmd | ||
) |
int vhost_user_delete_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
u32 | sw_if_index | ||
) |
Definition at line 1387 of file vhost_user.c.
int vhost_user_dump_ifs | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
vhost_user_intf_details_t ** | out_vuids | ||
) |
Definition at line 1843 of file vhost_user.c.
|
static |
static_always_inline void vhost_user_if_disconnect | ( | vhost_user_intf_t * | vui | ) |
Definition at line 330 of file vhost_user.c.
|
static |
|
static |
Open server unix socket on specified sock_filename.
Definition at line 1472 of file vhost_user.c.
static_always_inline int vhost_user_intf_ready | ( | vhost_user_intf_t * | vui | ) |
Returns whether at least one TX and one RX vring are enabled.
Definition at line 186 of file vhost_user.c.
|
static |
Definition at line 238 of file vhost_user.c.
int vhost_user_modify_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
vhost_user_create_if_args_t * | args | ||
) |
Definition at line 1678 of file vhost_user.c.
|
static |
static_always_inline void vhost_user_rx_thread_placement | ( | vhost_user_intf_t * | vui, |
u32 | qid | ||
) |
Unassign existing interface/queue to thread mappings and re-assign new interface/queue to thread mappings.
Definition at line 160 of file vhost_user.c.
|
static |
|
static |
Definition at line 1914 of file vhost_user.c.
|
static |
Definition at line 2009 of file vhost_user.c.
|
static |
Definition at line 1904 of file vhost_user.c.
|
static |
Definition at line 1058 of file vhost_user.c.
|
static |
Definition at line 353 of file vhost_user.c.
|
static |
Definition at line 1073 of file vhost_user.c.
|
static |
Disables and reset interface structure.
It can then be either init again, or removed from used interfaces.
Definition at line 1357 of file vhost_user.c.
static_always_inline void vhost_user_thread_placement | ( | vhost_user_intf_t * | vui, |
u32 | qid | ||
) |
Definition at line 226 of file vhost_user.c.
static_always_inline void vhost_user_tx_thread_placement | ( | vhost_user_intf_t * | vui | ) |
Definition at line 119 of file vhost_user.c.
void vhost_user_unmap_all | ( | void | ) |
static_always_inline void vhost_user_update_iface_state | ( | vhost_user_intf_t * | vui | ) |
Definition at line 198 of file vhost_user.c.
static_always_inline void vhost_user_vring_close | ( | vhost_user_intf_t * | vui, |
u32 | qid | ||
) |
Definition at line 296 of file vhost_user.c.
static_always_inline void vhost_user_vring_init | ( | vhost_user_intf_t * | vui, |
u32 | qid | ||
) |
Definition at line 270 of file vhost_user.c.
|
static |
Definition at line 1548 of file vhost_user.c.
VNET_HW_INTERFACE_CLASS | ( | vhost_interface_class | , |
static | |||
) |
|
static |
(constructor) VLIB_CLI_COMMAND (show_vhost_user_command)
Definition at line 2499 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_connect_command)
Definition at line 2336 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_delete_command)
Definition at line 2359 of file vhost_user.c.
vhost_user_main_t vhost_user_main |
Definition at line 55 of file vhost_user.c.
|
static |
(constructor) VLIB_REGISTER_NODE (vhost_user_process_node)
Definition at line 1345 of file vhost_user.c.
vlib_node_registration_t vhost_user_send_interrupt_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_send_interrupt_node)
Definition at line 52 of file vhost_user.c.