FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | vhost_user_create_if_args_t |
struct | vhost_user_memory_region |
struct | vhost_user_memory |
struct | vhost_user_msg |
struct | vhost_user_vring_t |
struct | vhost_user_intf_t |
struct | vhost_copy_t |
struct | vhost_trace_t |
struct | vhost_cpu_t |
struct | vhost_user_main_t |
struct | vhost_user_intf_details_t |
Typedefs | |
typedef enum vhost_user_req | vhost_user_req_t |
Enumerations | |
enum | virtio_trace_flag_t { foreach_virtio_trace_flags } |
enum | vhost_user_req { VHOST_USER_NONE = 0, VHOST_USER_GET_FEATURES = 1, VHOST_USER_SET_FEATURES = 2, VHOST_USER_SET_OWNER = 3, VHOST_USER_RESET_OWNER = 4, VHOST_USER_SET_MEM_TABLE = 5, VHOST_USER_SET_LOG_BASE = 6, VHOST_USER_SET_LOG_FD = 7, VHOST_USER_SET_VRING_NUM = 8, VHOST_USER_SET_VRING_ADDR = 9, VHOST_USER_SET_VRING_BASE = 10, VHOST_USER_GET_VRING_BASE = 11, VHOST_USER_SET_VRING_KICK = 12, VHOST_USER_SET_VRING_CALL = 13, VHOST_USER_SET_VRING_ERR = 14, VHOST_USER_GET_PROTOCOL_FEATURES = 15, VHOST_USER_SET_PROTOCOL_FEATURES = 16, VHOST_USER_GET_QUEUE_NUM = 17, VHOST_USER_SET_VRING_ENABLE = 18, VHOST_USER_MAX } |
Functions | |
int | vhost_user_create_if (vnet_main_t *vnm, vlib_main_t *vm, vhost_user_create_if_args_t *args) |
int | vhost_user_modify_if (vnet_main_t *vnm, vlib_main_t *vm, vhost_user_create_if_args_t *args) |
int | vhost_user_delete_if (vnet_main_t *vnm, vlib_main_t *vm, u32 sw_if_index) |
int | vhost_user_dump_ifs (vnet_main_t *vnm, vlib_main_t *vm, vhost_user_intf_details_t **out_vuids) |
void | vhost_user_set_operation_mode (vhost_user_intf_t *vui, vhost_user_vring_t *txvq) |
Variables | |
u64 | guest_phys_addr |
u64 | memory_size |
u64 | userspace_addr |
u64 | mmap_offset |
u32 | nregions |
u32 | padding |
vhost_user_memory_region_t | regions [VHOST_MEMORY_MAX_NREGIONS] |
vhost_user_req_t | request |
u32 | flags |
u32 | size |
union { | |
u64 u64 | |
vhost_vring_state_t state | |
vhost_vring_addr_t addr | |
vhost_user_memory_t memory | |
vhost_user_log_t log | |
}; | |
vlib_node_registration_t | vhost_user_send_interrupt_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_send_interrupt_node) More... | |
vnet_device_class_t | vhost_user_device_class |
vlib_node_registration_t | vhost_user_input_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_input_node) More... | |
vhost_user_main_t | vhost_user_main |
#define FEATURE_VIRTIO_NET_F_GUEST_TSO_FEATURE_BITS |
Definition at line 90 of file vhost_user.h.
#define FEATURE_VIRTIO_NET_F_HOST_GUEST_TSO_FEATURE_BITS |
Definition at line 96 of file vhost_user.h.
#define FEATURE_VIRTIO_NET_F_HOST_TSO_FEATURE_BITS |
Definition at line 84 of file vhost_user.h.
#define FOR_ALL_VHOST_RX_TXQ | ( | qid, | |
vui | |||
) | for (qid = 0; qid < vui->num_qid; qid++) |
Definition at line 294 of file vhost_user.h.
#define FOR_ALL_VHOST_RXQ | ( | qid, | |
vui | |||
) | for (qid = 0; qid < vui->num_qid; qid += 2) |
Definition at line 292 of file vhost_user.h.
#define FOR_ALL_VHOST_TXQ | ( | qid, | |
vui | |||
) | for (qid = 1; qid < vui->num_qid; qid += 2) |
Definition at line 290 of file vhost_user.h.
#define foreach_virtio_trace_flags |
Definition at line 71 of file vhost_user.h.
#define UNIX_GET_FD | ( | unixfd_idx | ) |
Definition at line 65 of file vhost_user.h.
#define VHOST_MEMORY_MAX_NREGIONS 8 |
Definition at line 23 of file vhost_user.h.
#define VHOST_USER_COPY_ARRAY_N (4 * VLIB_FRAME_SIZE) |
Definition at line 313 of file vhost_user.h.
#define VHOST_USER_EVENT_START_TIMER 1 |
Definition at line 237 of file vhost_user.h.
#define VHOST_USER_EVENT_STOP_TIMER 2 |
Definition at line 238 of file vhost_user.h.
#define VHOST_USER_MSG_HDR_SZ 12 |
Definition at line 24 of file vhost_user.h.
#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1 |
Definition at line 39 of file vhost_user.h.
#define VHOST_USER_PROTOCOL_F_MQ 0 |
Definition at line 38 of file vhost_user.h.
#define VHOST_USER_PROTOCOL_FEATURES |
Definition at line 42 of file vhost_user.h.
#define VHOST_USER_RX_BUFFERS_N (2 * VLIB_FRAME_SIZE + 2) |
Definition at line 312 of file vhost_user.h.
#define VHOST_USER_VRING_NOFD_MASK 0x100 |
Definition at line 36 of file vhost_user.h.
#define VHOST_VRING_F_LOG 0 |
Definition at line 40 of file vhost_user.h.
#define VHOST_VRING_IDX_RX | ( | qid | ) | (2 * (qid)) |
Definition at line 33 of file vhost_user.h.
#define VHOST_VRING_IDX_TX | ( | qid | ) | (2 * (qid) + 1) |
Definition at line 34 of file vhost_user.h.
#define VHOST_VRING_INIT_MQ_PAIR_SZ 8 |
Definition at line 25 of file vhost_user.h.
#define VHOST_VRING_MAX_MQ_PAIR_SZ 128 |
Definition at line 32 of file vhost_user.h.
#define vu_log_debug | ( | dev, | |
f, | |||
... | |||
) |
Definition at line 45 of file vhost_user.h.
#define vu_log_err | ( | dev, | |
f, | |||
... | |||
) |
Definition at line 58 of file vhost_user.h.
#define vu_log_warn | ( | dev, | |
f, | |||
... | |||
) |
Definition at line 52 of file vhost_user.h.
typedef enum vhost_user_req vhost_user_req_t |
enum vhost_user_req |
Definition at line 141 of file vhost_user.h.
enum virtio_trace_flag_t |
Enumerator | |
---|---|
foreach_virtio_trace_flags |
Definition at line 77 of file vhost_user.h.
int vhost_user_create_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
vhost_user_create_if_args_t * | args | ||
) |
Definition at line 1669 of file vhost_user.c.
int vhost_user_delete_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
u32 | sw_if_index | ||
) |
Definition at line 1433 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 1890 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 1725 of file vhost_user.c.
void vhost_user_set_operation_mode | ( | vhost_user_intf_t * | vui, |
vhost_user_vring_t * | txvq | ||
) |
Definition at line 385 of file vhost_user.c.
union { ... } |
vhost_vring_addr_t addr |
Definition at line 130 of file vhost_user.h.
u32 flags |
Definition at line 124 of file vhost_user.h.
u64 guest_phys_addr |
Definition at line 123 of file vhost_user.h.
vhost_user_log_t log |
Definition at line 132 of file vhost_user.h.
vhost_user_memory_t memory |
Definition at line 131 of file vhost_user.h.
u64 memory_size |
Definition at line 124 of file vhost_user.h.
u64 mmap_offset |
Definition at line 126 of file vhost_user.h.
u32 nregions |
Definition at line 123 of file vhost_user.h.
u32 padding |
Definition at line 124 of file vhost_user.h.
vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS] |
Definition at line 125 of file vhost_user.h.
vhost_user_req_t request |
Definition at line 123 of file vhost_user.h.
u32 size |
Definition at line 125 of file vhost_user.h.
vhost_vring_state_t state |
Definition at line 129 of file vhost_user.h.
Definition at line 128 of file vhost_user.h.
u64 userspace_addr |
Definition at line 125 of file vhost_user.h.
vnet_device_class_t vhost_user_device_class |
vlib_node_registration_t vhost_user_input_node |
(constructor) VLIB_REGISTER_NODE (vhost_user_input_node)
Definition at line 1450 of file vhost_user_input.c.
vhost_user_main_t vhost_user_main |
Definition at line 56 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.