![]() |
FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
Include dependency graph for virtio.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | virtio_net_config_t |
| struct | virtio_vring_t |
| union | pci_addr_t |
| struct | virtio_if_t |
| struct | virtio_main_t |
Macros | |
| #define | foreach_virtio_net_features |
| #define | foreach_virtio_if_flag |
| #define | VIRTIO_NUM_RX_DESC 256 |
| #define | VIRTIO_NUM_TX_DESC 256 |
| #define | VIRTIO_FEATURE(X) (1ULL << X) |
| #define | TX_QUEUE(X) ((X*2) + 1) |
| #define | RX_QUEUE(X) (X*2) |
| #define | TX_QUEUE_ACCESS(X) (X/2) |
| #define | RX_QUEUE_ACCESS(X) (X/2) |
| #define | VIRTIO_RING_FLAG_MASK_INT 1 |
| #define | VRING_TX_OUT_OF_ORDER 1 |
Enumerations | |
| enum | virtio_if_flag_t { foreach_virtio_if_flag } |
| enum | virtio_if_type_t { VIRTIO_IF_TYPE_TAP, VIRTIO_IF_TYPE_PCI, VIRTIO_IF_N_TYPES } |
Functions | |
| clib_error_t * | virtio_vring_init (vlib_main_t *vm, virtio_if_t *vif, u16 idx, u16 sz) |
| clib_error_t * | virtio_vring_free_rx (vlib_main_t *vm, virtio_if_t *vif, u32 idx) |
| clib_error_t * | virtio_vring_free_tx (vlib_main_t *vm, virtio_if_t *vif, u32 idx) |
| void | virtio_vring_set_numa_node (vlib_main_t *vm, virtio_if_t *vif, u32 idx) |
| void | virtio_free_used_desc (vlib_main_t *vm, virtio_vring_t *vring) |
| void | virtio_free_rx_buffers (vlib_main_t *vm, virtio_vring_t *vring) |
| void | virtio_set_net_hdr_size (virtio_if_t *vif) |
| void | virtio_show (vlib_main_t *vm, u32 *hw_if_indices, u8 show_descr, u32 type) |
| void | virtio_pci_legacy_notify_queue (vlib_main_t *vm, virtio_if_t *vif, u16 queue_id) |
| static_always_inline void | virtio_kick (vlib_main_t *vm, virtio_vring_t *vring, virtio_if_t *vif) |
Variables | |
| virtio_main_t | virtio_main |
| vnet_device_class_t | virtio_device_class |
| vlib_node_registration_t | virtio_input_node |
| (constructor) VLIB_REGISTER_NODE (virtio_input_node) More... | |
| format_function_t | format_virtio_device_name |
| #define foreach_virtio_if_flag |
| #define foreach_virtio_net_features |
| enum virtio_if_flag_t |
| enum virtio_if_type_t |
|
inline |
|
inline |
| static_always_inline void virtio_kick | ( | vlib_main_t * | vm, |
| virtio_vring_t * | vring, | ||
| virtio_if_t * | vif | ||
| ) |
|
inline |
|
inline |
|
inline |
| clib_error_t* virtio_vring_free_rx | ( | vlib_main_t * | vm, |
| virtio_if_t * | vif, | ||
| u32 | idx | ||
| ) |
| clib_error_t* virtio_vring_free_tx | ( | vlib_main_t * | vm, |
| virtio_if_t * | vif, | ||
| u32 | idx | ||
| ) |
| clib_error_t* virtio_vring_init | ( | vlib_main_t * | vm, |
| virtio_if_t * | vif, | ||
| u16 | idx, | ||
| u16 | sz | ||
| ) |
| void virtio_vring_set_numa_node | ( | vlib_main_t * | vm, |
| virtio_if_t * | vif, | ||
| u32 | idx | ||
| ) |
| format_function_t format_virtio_device_name |
| vnet_device_class_t virtio_device_class |
| vlib_node_registration_t virtio_input_node |
| virtio_main_t virtio_main |