FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | virtio_pci_cap_t |
struct | virtio_pci_notify_cap_t |
struct | virtio_pci_common_cfg_t |
struct | vring_desc_t |
struct | vring_avail_t |
struct | vring_used_elem_t |
struct | vring_used_t |
struct | virtio_pci_create_if_args_t |
Macros | |
#define | VIRTIO_PCI_ABI_VERSION 0 |
#define | VIRTIO_PCI_HOST_FEATURES 0 /* host's supported features (32bit, RO) */ |
#define | VIRTIO_PCI_GUEST_FEATURES 4 /* guest's supported features (32, RW) */ |
#define | VIRTIO_PCI_QUEUE_PFN 8 /* physical address of VQ (32, RW) */ |
#define | VIRTIO_PCI_QUEUE_NUM 12 /* number of ring entries (16, RO) */ |
#define | VIRTIO_PCI_QUEUE_SEL 14 /* current VQ selection (16, RW) */ |
#define | VIRTIO_PCI_QUEUE_NOTIFY 16 /* notify host regarding VQ (16, RW) */ |
#define | VIRTIO_PCI_STATUS 18 /* device status register (8, RW) */ |
#define | VIRTIO_PCI_ISR |
#define | VIRTIO_MSI_CONFIG_VECTOR 20 /* configuration change vector (16, RW) */ |
#define | VIRTIO_MSI_QUEUE_VECTOR |
#define | VIRTIO_PCI_ISR_INTR 0x1 |
#define | VIRTIO_PCI_ISR_CONFIG 0x2 |
#define | VIRTIO_ID_NETWORK 0x01 |
#define | foreach_virtio_config_status_flags |
#define | foreach_virtio_net_feature_flags |
#define | VIRTIO_NET_F_MTU 3 |
#define | VIRTIO_NET_S_LINK_UP 1 /* Link is up */ |
#define | VIRTIO_NET_S_ANNOUNCE 2 /* Announcement is needed */ |
#define | VIRTIO_PCI_CAP_COMMON_CFG 1 |
#define | VIRTIO_PCI_CAP_NOTIFY_CFG 2 |
#define | VIRTIO_PCI_CAP_ISR_CFG 3 |
#define | VIRTIO_PCI_CAP_DEVICE_CFG 4 |
#define | VIRTIO_PCI_CAP_PCI_CFG 5 |
#define | VIRTIO_PCI_QUEUE_ADDR_SHIFT 12 |
#define | VIRTIO_PCI_VRING_ALIGN 4096 |
#define | virtio_log_debug(vim, vif, f, ...) |
#define | virtio_log_warning(vim, vif, f, ...) |
#define | virtio_log_error(vim, vif, f, ...) |
Enumerations | |
enum | virtio_config_status_flags_t { foreach_virtio_config_status_flags } |
enum | virtio_msix_status_t { VIRTIO_MSIX_NONE = 0, VIRTIO_MSIX_DISABLED = 1, VIRTIO_MSIX_ENABLED = 2 } |
Functions | |
void | debug_device_config_space (vlib_main_t *vm, virtio_if_t *vif) |
void | device_status (vlib_main_t *vm, virtio_if_t *vif) |
void | virtio_pci_create_if (vlib_main_t *vm, virtio_pci_create_if_args_t *args) |
int | virtio_pci_delete_if (vlib_main_t *vm, virtio_if_t *ad) |
#define foreach_virtio_config_status_flags |
#define foreach_virtio_net_feature_flags |
#define virtio_log_debug | ( | vim, | |
vif, | |||
f, | |||
... | |||
) |
#define virtio_log_error | ( | vim, | |
vif, | |||
f, | |||
... | |||
) |
#define virtio_log_warning | ( | vim, | |
vif, | |||
f, | |||
... | |||
) |
#define VIRTIO_MSI_CONFIG_VECTOR 20 /* configuration change vector (16, RW) */ |
#define VIRTIO_MSI_QUEUE_VECTOR |
#define VIRTIO_PCI_GUEST_FEATURES 4 /* guest's supported features (32, RW) */ |
#define VIRTIO_PCI_HOST_FEATURES 0 /* host's supported features (32bit, RO) */ |
#define VIRTIO_PCI_ISR |
#define VIRTIO_PCI_QUEUE_NOTIFY 16 /* notify host regarding VQ (16, RW) */ |
#define VIRTIO_PCI_QUEUE_NUM 12 /* number of ring entries (16, RO) */ |
#define VIRTIO_PCI_QUEUE_PFN 8 /* physical address of VQ (32, RW) */ |
#define VIRTIO_PCI_QUEUE_SEL 14 /* current VQ selection (16, RW) */ |
#define VIRTIO_PCI_STATUS 18 /* device status register (8, RW) */ |
enum virtio_msix_status_t |
|
inline |
|
inline |
void virtio_pci_create_if | ( | vlib_main_t * | vm, |
virtio_pci_create_if_args_t * | args | ||
) |
int virtio_pci_delete_if | ( | vlib_main_t * | vm, |
virtio_if_t * | ad | ||
) |