![]() |
FD.io VPP
v18.11-rc0-18-g2a3fb1a
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 1323 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 1420 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 1204 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 1641 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 344 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 1283 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 214 of file vhost_user.c.
Here is the caller graph for this function:
|
static |
Definition at line 271 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 1478 of file vhost_user.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Unassign existing interface/queue to thread mappings and re-assign new interface/queue to thread mappings.
Definition at line 150 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 244 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 882 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 367 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 898 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 1175 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 110 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 |
Definition at line 226 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 318 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 1360 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 2190 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_vhost_user_command)
Definition at line 2132 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_connect_command)
Definition at line 1971 of file vhost_user.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vhost_user_delete_command)
Definition at line 1992 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 1163 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.