FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
virtio_pci_modern.h File Reference
+ Include dependency graph for virtio_pci_modern.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VIRTIO_FEATURE_SELECT_HI   1
 
#define VIRTIO_FEATURE_SELECT_LO   0
 
#define VIRTIO_DEVICE_FEATURE_SELECT_OFFSET(v)
 
#define VIRTIO_DEVICE_FEATURE_OFFSET(v)
 
#define VIRTIO_DRIVER_FEATURE_SELECT_OFFSET(v)
 
#define VIRTIO_DRIVER_FEATURE_OFFSET(v)
 
#define VIRTIO_MSIX_CONFIG_VECTOR_OFFSET(v)
 
#define VIRTIO_NUM_QUEUES_OFFSET(v)
 
#define VIRTIO_DEVICE_STATUS_OFFSET(v)
 
#define VIRTIO_CONFIG_GENERATION_OFFSET(v)
 
#define VIRTIO_QUEUE_SELECT_OFFSET(v)
 
#define VIRTIO_QUEUE_SIZE_OFFSET(v)
 
#define VIRTIO_QUEUE_MSIX_VECTOR_OFFSET(v)
 
#define VIRTIO_QUEUE_ENABLE_OFFSET(v)
 
#define VIRTIO_QUEUE_NOTIFY_OFF_OFFSET(v)
 
#define VIRTIO_QUEUE_DESC_OFFSET(v)
 
#define VIRTIO_QUEUE_DRIVER_OFFSET(v)
 
#define VIRTIO_QUEUE_DEVICE_OFFSET(v)
 
#define VIRTIO_MAC_OFFSET(v)
 
#define VIRTIO_STATUS_OFFSET(v)
 
#define VIRTIO_MAX_VIRTQUEUE_PAIRS_OFFSET(v)
 
#define VIRTIO_MTU_OFFSET(v)
 
#define VIRTIO_ISR_OFFSET(v)   (v->isr_offset)
 
#define VIRTIO_NOTIFICATION_OFFSET(v)   (v->notify_offset)
 

Macro Definition Documentation

◆ VIRTIO_CONFIG_GENERATION_OFFSET

#define VIRTIO_CONFIG_GENERATION_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
config_generation))

Definition at line 44 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_FEATURE_OFFSET

#define VIRTIO_DEVICE_FEATURE_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
device_feature))

Definition at line 26 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_FEATURE_SELECT_OFFSET

#define VIRTIO_DEVICE_FEATURE_SELECT_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
device_feature_select))

Definition at line 23 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_STATUS_OFFSET

#define VIRTIO_DEVICE_STATUS_OFFSET (   v)
Value:

Definition at line 41 of file virtio_pci_modern.h.

◆ VIRTIO_DRIVER_FEATURE_OFFSET

#define VIRTIO_DRIVER_FEATURE_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
driver_feature))

Definition at line 32 of file virtio_pci_modern.h.

◆ VIRTIO_DRIVER_FEATURE_SELECT_OFFSET

#define VIRTIO_DRIVER_FEATURE_SELECT_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
driver_feature_select))

Definition at line 29 of file virtio_pci_modern.h.

◆ VIRTIO_FEATURE_SELECT_HI

#define VIRTIO_FEATURE_SELECT_HI   1

Definition at line 20 of file virtio_pci_modern.h.

◆ VIRTIO_FEATURE_SELECT_LO

#define VIRTIO_FEATURE_SELECT_LO   0

Definition at line 21 of file virtio_pci_modern.h.

◆ VIRTIO_ISR_OFFSET

#define VIRTIO_ISR_OFFSET (   v)    (v->isr_offset)

Definition at line 85 of file virtio_pci_modern.h.

◆ VIRTIO_MAC_OFFSET

#define VIRTIO_MAC_OFFSET (   v)
Value:
(v->device_offset + STRUCT_OFFSET_OF (virtio_net_config_t, \
mac))

Definition at line 72 of file virtio_pci_modern.h.

◆ VIRTIO_MAX_VIRTQUEUE_PAIRS_OFFSET

#define VIRTIO_MAX_VIRTQUEUE_PAIRS_OFFSET (   v)
Value:
(v->device_offset + STRUCT_OFFSET_OF (virtio_net_config_t, \
max_virtqueue_pairs))

Definition at line 78 of file virtio_pci_modern.h.

◆ VIRTIO_MSIX_CONFIG_VECTOR_OFFSET

#define VIRTIO_MSIX_CONFIG_VECTOR_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
msix_config))

Definition at line 35 of file virtio_pci_modern.h.

◆ VIRTIO_MTU_OFFSET

#define VIRTIO_MTU_OFFSET (   v)
Value:
(v->device_offset + STRUCT_OFFSET_OF (virtio_net_config_t, \
mtu))

Definition at line 81 of file virtio_pci_modern.h.

◆ VIRTIO_NOTIFICATION_OFFSET

#define VIRTIO_NOTIFICATION_OFFSET (   v)    (v->notify_offset)

Definition at line 87 of file virtio_pci_modern.h.

◆ VIRTIO_NUM_QUEUES_OFFSET

#define VIRTIO_NUM_QUEUES_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
num_queues))

Definition at line 38 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DESC_OFFSET

#define VIRTIO_QUEUE_DESC_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_desc))

Definition at line 62 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DEVICE_OFFSET

#define VIRTIO_QUEUE_DEVICE_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_device))

Definition at line 68 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DRIVER_OFFSET

#define VIRTIO_QUEUE_DRIVER_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_driver))

Definition at line 65 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_ENABLE_OFFSET

#define VIRTIO_QUEUE_ENABLE_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_enable))

Definition at line 56 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_MSIX_VECTOR_OFFSET

#define VIRTIO_QUEUE_MSIX_VECTOR_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_msix_vector))

Definition at line 53 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_NOTIFY_OFF_OFFSET

#define VIRTIO_QUEUE_NOTIFY_OFF_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_notify_off))

Definition at line 59 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_SELECT_OFFSET

#define VIRTIO_QUEUE_SELECT_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_select))

Definition at line 47 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_SIZE_OFFSET

#define VIRTIO_QUEUE_SIZE_OFFSET (   v)
Value:
(v->common_offset + STRUCT_OFFSET_OF (virtio_pci_common_cfg_t, \
queue_size))

Definition at line 50 of file virtio_pci_modern.h.

◆ VIRTIO_STATUS_OFFSET

#define VIRTIO_STATUS_OFFSET (   v)
Value:
(v->device_offset + STRUCT_OFFSET_OF (virtio_net_config_t, \
status))

Definition at line 75 of file virtio_pci_modern.h.

mac
vl_api_mac_address_t mac
Definition: l2.api:559
virtio_net_config_t
Definition: pci.h:142
STRUCT_OFFSET_OF
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:73
device_status
void device_status(vlib_main_t *vm, virtio_if_t *vif)
Definition: pci.c:172
virtio_pci_common_cfg_t
Definition: pci.h:119