Go to the source code of this file.
|
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
} |
|
|
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) |
|
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) |
|
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) |
|
clib_error_t * | vhost_user_connect_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | vhost_user_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | show_vhost_user_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
#define foreach_virtio_net_feature |
Value:_ (VIRTIO_NET_F_MRG_RXBUF, 15) \
_ (VIRTIO_F_ANY_LAYOUT, 27) \
_ (VHOST_F_LOG_ALL, 26) \
_ (VIRTIO_NET_F_GUEST_ANNOUNCE, 21) \
#define VHOST_USER_F_PROTOCOL_FEATURES
Definition at line 51 of file vhost-user.h.
#define VHOST_MEMORY_MAX_NREGIONS 8 |
#define VHOST_NET_VRING_IDX_RX 0 |
#define VHOST_NET_VRING_IDX_TX 1 |
#define VHOST_NET_VRING_NUM 2 |
#define VHOST_USER_F_PROTOCOL_FEATURES 30 |
#define VHOST_USER_MSG_HDR_SZ 12 |
#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1 |
#define VHOST_USER_PROTOCOL_F_MQ 0 |
#define VHOST_USER_PROTOCOL_FEATURES |
Value:#define VHOST_USER_PROTOCOL_F_LOG_SHMFD
#define VHOST_USER_PROTOCOL_F_MQ
Definition at line 39 of file vhost-user.h.
#define VHOST_USER_REPLY_MASK (0x1 << 2) |
#define VHOST_VRING_F_LOG 0 |
#define VHOST_VRING_MAX_SIZE 32768 |
#define VIRTIO_NET_CTRL_MQ 4 |
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX 0x8000 |
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN 1 |
#define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET 0 |
#define VIRTQ_DESC_F_NEXT 1 |
Enumerator |
---|
VHOST_USER_NONE |
|
VHOST_USER_GET_FEATURES |
|
VHOST_USER_SET_FEATURES |
|
VHOST_USER_SET_OWNER |
|
VHOST_USER_RESET_OWNER |
|
VHOST_USER_SET_MEM_TABLE |
|
VHOST_USER_SET_LOG_BASE |
|
VHOST_USER_SET_LOG_FD |
|
VHOST_USER_SET_VRING_NUM |
|
VHOST_USER_SET_VRING_ADDR |
|
VHOST_USER_SET_VRING_BASE |
|
VHOST_USER_GET_VRING_BASE |
|
VHOST_USER_SET_VRING_KICK |
|
VHOST_USER_SET_VRING_CALL |
|
VHOST_USER_SET_VRING_ERR |
|
VHOST_USER_GET_PROTOCOL_FEATURES |
|
VHOST_USER_SET_PROTOCOL_FEATURES |
|
VHOST_USER_GET_QUEUE_NUM |
|
VHOST_USER_SET_VRING_ENABLE |
|
VHOST_USER_MAX |
|
Definition at line 109 of file vhost-user.h.
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 |
|
) |
| |
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 |
|
) |
| |