![]() |
FD.io VPP
v18.07.1-19-g511ce25
Vector Packet Processing
|
vHost User Device Driver. More...
Include dependency graph for vhost_user.c: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... | |
| static vlib_cli_command_t | debug_vhost_user_command |
| (constructor) VLIB_CLI_COMMAND (debug_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 |
| clib_error_t* debug_vhost_user_command_fn | ( | vlib_main_t * | vm, |
| unformat_input_t * | input, | ||
| vlib_cli_command_t * | cmd | ||
| ) |
|
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 74 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 1359 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vhost_user_create_if | ( | vnet_main_t * | vnm, |
| vlib_main_t * | vm, | ||
| const char * | sock_filename, | ||
| u8 | is_server, | ||
| u32 * | sw_if_index, | ||
| u64 | feature_mask, | ||
| u8 | renumber, | ||
| u32 | custom_dev_instance, | ||
| u8 * | hwaddr | ||
| ) |
Definition at line 1454 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 1239 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vhost_user_dump_ifs | ( | vnet_main_t * | vnm, |
| vlib_main_t * | vm, | ||
| vhost_user_intf_details_t ** | out_vuids | ||
| ) |
Definition at line 1680 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| static_always_inline void vhost_user_if_disconnect | ( | vhost_user_intf_t * | vui | ) |
Definition at line 334 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Open server unix socket on specified sock_filename.
Definition at line 1319 of file vhost_user.c.
Here is the caller graph for this function:| 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 185 of file vhost_user.c.
Here is the caller graph for this function:
|
static |
Definition at line 252 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vhost_user_modify_if | ( | vnet_main_t * | vnm, |
| vlib_main_t * | vm, | ||
| const char * | sock_filename, | ||
| u8 | is_server, | ||
| u32 | sw_if_index, | ||
| u64 | feature_mask, | ||
| u8 | renumber, | ||
| u32 | custom_dev_instance | ||
| ) |
Definition at line 1517 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 161 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 213 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 899 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 357 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 914 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Disables and reset interface structure.
It can then be either init again, or removed from used interfaces.
Definition at line 1191 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| static_always_inline void vhost_user_thread_placement | ( | vhost_user_intf_t * | vui, |
| u32 | qid | ||
| ) |
Definition at line 240 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| static_always_inline void vhost_user_tx_thread_placement | ( | vhost_user_intf_t * | vui | ) |
Definition at line 120 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vhost_user_unmap_all | ( | void | ) |
| static_always_inline void vhost_user_update_iface_state | ( | vhost_user_intf_t * | vui | ) |
Definition at line 197 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| static_always_inline void vhost_user_vring_close | ( | vhost_user_intf_t * | vui, |
| u32 | qid | ||
| ) |
Definition at line 302 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| static_always_inline void vhost_user_vring_init | ( | vhost_user_intf_t * | vui, |
| u32 | qid | ||
| ) |
|
static |
Definition at line 1394 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:| VNET_HW_INTERFACE_CLASS | ( | vhost_interface_class | , |
| static | |||
| ) |
|
static |
(constructor) VLIB_CLI_COMMAND (debug_vhost_user_command)
Definition at line 2234 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_vhost_user_command)
Definition at line 2176 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_connect_command)
Definition at line 2014 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_delete_command)
Definition at line 2036 of file vhost_user.c.
| vhost_user_main_t vhost_user_main |
Definition at line 56 of file vhost_user.c.
|
static |
(constructor) VLIB_REGISTER_NODE (vhost_user_process_node)
Definition at line 1179 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 53 of file vhost_user.c.