FD.io VPP  v20.09-64-g4f7b92f0a
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:
config_generation))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 44 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_FEATURE_OFFSET

#define VIRTIO_DEVICE_FEATURE_OFFSET (   v)
Value:
device_feature))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 26 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_FEATURE_SELECT_OFFSET

#define VIRTIO_DEVICE_FEATURE_SELECT_OFFSET (   v)
Value:
device_feature_select))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 23 of file virtio_pci_modern.h.

◆ VIRTIO_DEVICE_STATUS_OFFSET

#define VIRTIO_DEVICE_STATUS_OFFSET (   v)
Value:
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70
void device_status(vlib_main_t *vm, virtio_if_t *vif)
Definition: pci.c:170

Definition at line 41 of file virtio_pci_modern.h.

◆ VIRTIO_DRIVER_FEATURE_OFFSET

#define VIRTIO_DRIVER_FEATURE_OFFSET (   v)
Value:
driver_feature))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 32 of file virtio_pci_modern.h.

◆ VIRTIO_DRIVER_FEATURE_SELECT_OFFSET

#define VIRTIO_DRIVER_FEATURE_SELECT_OFFSET (   v)
Value:
driver_feature_select))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

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))
vl_api_mac_address_t mac
Definition: l2.api:502
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

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))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 78 of file virtio_pci_modern.h.

◆ VIRTIO_MSIX_CONFIG_VECTOR_OFFSET

#define VIRTIO_MSIX_CONFIG_VECTOR_OFFSET (   v)
Value:
msix_config))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

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))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

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:
num_queues))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 38 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DESC_OFFSET

#define VIRTIO_QUEUE_DESC_OFFSET (   v)
Value:
queue_desc))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 62 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DEVICE_OFFSET

#define VIRTIO_QUEUE_DEVICE_OFFSET (   v)
Value:
queue_device))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 68 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_DRIVER_OFFSET

#define VIRTIO_QUEUE_DRIVER_OFFSET (   v)
Value:
queue_driver))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 65 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_ENABLE_OFFSET

#define VIRTIO_QUEUE_ENABLE_OFFSET (   v)
Value:
queue_enable))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 56 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_MSIX_VECTOR_OFFSET

#define VIRTIO_QUEUE_MSIX_VECTOR_OFFSET (   v)
Value:
queue_msix_vector))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 53 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_NOTIFY_OFF_OFFSET

#define VIRTIO_QUEUE_NOTIFY_OFF_OFFSET (   v)
Value:
queue_notify_off))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 59 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_SELECT_OFFSET

#define VIRTIO_QUEUE_SELECT_OFFSET (   v)
Value:
queue_select))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 47 of file virtio_pci_modern.h.

◆ VIRTIO_QUEUE_SIZE_OFFSET

#define VIRTIO_QUEUE_SIZE_OFFSET (   v)
Value:
queue_size))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

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))
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:70

Definition at line 75 of file virtio_pci_modern.h.