FD.io VPP
v17.04.2-2-ga8f93f8
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | vhost_user_memory_region |
struct | vhost_user_memory |
struct | vhost_user_log |
struct | vhost_user_msg |
struct | vhost_user_vring_t |
struct | vhost_user_intf_t |
struct | vhost_iface_and_queue_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_net_feature_t { foreach_virtio_net_feature } |
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, const char *sock_filename, u8 is_server, u32 *sw_if_index, u64 feature_mask, u8 renumber, u32 custom_dev_instance, u8 *hwaddr, u8 operation_mode) |
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, u8 operation_mode) |
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) |
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] |
u64 | size |
u64 | offset |
vhost_user_req_t | request |
u32 | flags |
union { | |
u64 u64 | |
vhost_vring_state_t state | |
vhost_vring_addr_t addr | |
vhost_user_memory_t memory | |
vhost_user_log_t log | |
}; | |
#define foreach_virtio_net_feature |
Definition at line 47 of file vhost-user.h.
#define VHOST_MEMORY_MAX_NREGIONS 8 |
Definition at line 19 of file vhost-user.h.
#define VHOST_USER_ADAPTIVE_MODE 2 |
Definition at line 217 of file vhost-user.h.
#define VHOST_USER_COPY_ARRAY_N (4 * VLIB_FRAME_SIZE) |
Definition at line 289 of file vhost-user.h.
#define VHOST_USER_EVENT_START_TIMER 1 |
Definition at line 219 of file vhost-user.h.
#define VHOST_USER_F_PROTOCOL_FEATURES 30 |
Definition at line 34 of file vhost-user.h.
#define VHOST_USER_INTERRUPT_MODE 1 |
Definition at line 216 of file vhost-user.h.
#define VHOST_USER_MSG_HDR_SZ 12 |
Definition at line 20 of file vhost-user.h.
#define VHOST_USER_POLLING_MODE 0 |
Definition at line 215 of file vhost-user.h.
#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1 |
Definition at line 31 of file vhost-user.h.
#define VHOST_USER_PROTOCOL_F_MQ 0 |
Definition at line 30 of file vhost-user.h.
#define VHOST_USER_PROTOCOL_FEATURES |
Definition at line 35 of file vhost-user.h.
#define VHOST_USER_REPLY_MASK (0x1 << 2) |
Definition at line 28 of file vhost-user.h.
#define VHOST_USER_RX_BUFFERS_N (2 * VLIB_FRAME_SIZE + 2) |
Definition at line 288 of file vhost-user.h.
#define VHOST_VRING_F_LOG 0 |
Definition at line 32 of file vhost-user.h.
#define VHOST_VRING_IDX_RX | ( | qid | ) | (2*qid) |
Definition at line 23 of file vhost-user.h.
#define VHOST_VRING_IDX_TX | ( | qid | ) | (2*qid + 1) |
Definition at line 24 of file vhost-user.h.
#define VHOST_VRING_MAX_N 16 |
Definition at line 22 of file vhost-user.h.
#define VHOST_VRING_MAX_SIZE 32768 |
Definition at line 21 of file vhost-user.h.
#define VIRTIO_NET_CTRL_MQ 4 |
Definition at line 39 of file vhost-user.h.
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX 0x8000 |
Definition at line 42 of file vhost-user.h.
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN 1 |
Definition at line 41 of file vhost-user.h.
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET 0 |
Definition at line 40 of file vhost-user.h.
#define VIRTQ_DESC_F_INDIRECT 4 |
Definition at line 27 of file vhost-user.h.
#define VIRTQ_DESC_F_NEXT 1 |
Definition at line 26 of file vhost-user.h.
#define VRING_AVAIL_F_NO_INTERRUPT 1 |
Definition at line 45 of file vhost-user.h.
#define VRING_USED_F_NO_NOTIFY 1 |
Definition at line 44 of file vhost-user.h.
typedef enum vhost_user_req vhost_user_req_t |
enum vhost_user_req |
Definition at line 112 of file vhost-user.h.
enum virtio_net_feature_t |
Enumerator | |
---|---|
foreach_virtio_net_feature |
Definition at line 59 of file vhost-user.h.
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, | ||
u8 | operation_mode | ||
) |
Definition at line 2810 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 2552 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 3054 of file vhost-user.c.
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, | ||
u8 | operation_mode | ||
) |
Definition at line 2869 of file vhost-user.c.
union { ... } |
vhost_vring_addr_t addr |
Definition at line 84 of file vhost-user.h.
u32 flags |
Definition at line 78 of file vhost-user.h.
u64 guest_phys_addr |
Definition at line 77 of file vhost-user.h.
vhost_user_log_t log |
Definition at line 86 of file vhost-user.h.
vhost_user_memory_t memory |
Definition at line 85 of file vhost-user.h.
u64 memory_size |
Definition at line 78 of file vhost-user.h.
u64 mmap_offset |
Definition at line 80 of file vhost-user.h.
u32 nregions |
Definition at line 77 of file vhost-user.h.
Definition at line 78 of file vhost-user.h.
u32 padding |
Definition at line 78 of file vhost-user.h.
vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS] |
Definition at line 79 of file vhost-user.h.
vhost_user_req_t request |
Definition at line 77 of file vhost-user.h.
u32 size |
Definition at line 77 of file vhost-user.h.
vhost_vring_state_t state |
Definition at line 83 of file vhost-user.h.
Definition at line 82 of file vhost-user.h.
u64 userspace_addr |
Definition at line 79 of file vhost-user.h.