FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
virtio_if_t Struct Reference
+ Collaboration diagram for virtio_if_t:

Public Member Functions

 CLIB_CACHE_LINE_ALIGN_MARK (cacheline0)
 
 CLIB_CACHE_LINE_ALIGN_MARK (cacheline1)
 

Data Fields

u64 features
 
u32 flags
 
u32 per_interface_next_index
 
u16 num_rxqs
 
u16 num_txqs
 
virtio_vring_trxq_vrings
 
virtio_vring_ttxq_vrings
 
int gso_enabled
 
int csum_offload_enabled
 
union {
   int *   tap_fds
 
   struct {
      u32   pci_dev_handle
 
      u32   msix_enabled
 
   } 
 
}; 
 
u16 virtio_net_hdr_sz
 
virtio_if_type_t type
 
u32 hw_if_index
 
u32 sw_if_index
 
int packet_coalesce
 
int packet_buffering
 
u32 dev_instance
 
u32 numa_node
 
u64 remote_features
 
clib_error_terror
 
union {
   struct {
      u32   mac_addr32
 
      u16   mac_addr16
 
   } 
 
   u8   mac_addr [6]
 
}; 
 
union {
   struct {
      ip6_address_t   host_ip6_addr
 
      int *   vhost_fds
 
      u8 *   host_if_name
 
      u8 *   net_ns
 
      u8 *   host_bridge
 
      u8   host_mac_addr [6]
 
      u32   id
 
      u32   host_mtu_size
 
      u32   tap_flags
 
      int   ifindex
 
      ip4_address_t   host_ip4_addr
 
      u8   host_ip4_prefix_len
 
      u8   host_ip6_prefix_len
 
      u8   host_carrier_up
 
   } 
 
   struct {
      void *   bar
 
      virtio_vring_t *   cxq_vring
 
      pci_addr_t   pci_addr
 
      u32   bar_id
 
      u32   notify_off_multiplier
 
      u32   is_modern
 
      u16   common_offset
 
      u16   notify_offset
 
      u16   device_offset
 
      u16   isr_offset
 
      u16   max_queue_pairs
 
      u16   msix_table_size
 
      u8   support_int_mode
 
      u8   status
 
   } 
 
}; 
 
const virtio_pci_func_tvirtio_pci_func
 
int is_packed
 

Detailed Description

Definition at line 128 of file virtio.h.

Member Function Documentation

◆ CLIB_CACHE_LINE_ALIGN_MARK() [1/2]

virtio_if_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline0  )

◆ CLIB_CACHE_LINE_ALIGN_MARK() [2/2]

virtio_if_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline1  )

Field Documentation

◆ @266

union { ... }

◆ @268

union { ... }

◆ @270

union { ... }

◆ bar

void* virtio_if_t::bar

Definition at line 194 of file virtio.h.

◆ bar_id

u32 virtio_if_t::bar_id

Definition at line 197 of file virtio.h.

◆ common_offset

u16 virtio_if_t::common_offset

Definition at line 200 of file virtio.h.

◆ csum_offload_enabled

int virtio_if_t::csum_offload_enabled

Definition at line 139 of file virtio.h.

◆ cxq_vring

virtio_vring_t* virtio_if_t::cxq_vring

Definition at line 195 of file virtio.h.

◆ dev_instance

u32 virtio_if_t::dev_instance

Definition at line 158 of file virtio.h.

◆ device_offset

u16 virtio_if_t::device_offset

Definition at line 202 of file virtio.h.

◆ error

clib_error_t* virtio_if_t::error

Definition at line 163 of file virtio.h.

◆ features

u64 virtio_if_t::features

Definition at line 131 of file virtio.h.

◆ flags

u32 virtio_if_t::flags

Definition at line 132 of file virtio.h.

◆ gso_enabled

int virtio_if_t::gso_enabled

Definition at line 138 of file virtio.h.

◆ host_bridge

u8* virtio_if_t::host_bridge

Definition at line 181 of file virtio.h.

◆ host_carrier_up

u8 virtio_if_t::host_carrier_up

Definition at line 190 of file virtio.h.

◆ host_if_name

u8* virtio_if_t::host_if_name

Definition at line 179 of file virtio.h.

◆ host_ip4_addr

ip4_address_t virtio_if_t::host_ip4_addr

Definition at line 187 of file virtio.h.

◆ host_ip4_prefix_len

u8 virtio_if_t::host_ip4_prefix_len

Definition at line 188 of file virtio.h.

◆ host_ip6_addr

ip6_address_t virtio_if_t::host_ip6_addr

Definition at line 177 of file virtio.h.

◆ host_ip6_prefix_len

u8 virtio_if_t::host_ip6_prefix_len

Definition at line 189 of file virtio.h.

◆ host_mac_addr

u8 virtio_if_t::host_mac_addr[6]

Definition at line 182 of file virtio.h.

◆ host_mtu_size

u32 virtio_if_t::host_mtu_size

Definition at line 184 of file virtio.h.

◆ hw_if_index

u32 virtio_if_t::hw_if_index

Definition at line 152 of file virtio.h.

◆ id

u32 virtio_if_t::id

Definition at line 183 of file virtio.h.

◆ ifindex

int virtio_if_t::ifindex

Definition at line 186 of file virtio.h.

◆ is_modern

u32 virtio_if_t::is_modern

Definition at line 199 of file virtio.h.

◆ is_packed

int virtio_if_t::is_packed

Definition at line 211 of file virtio.h.

◆ isr_offset

u16 virtio_if_t::isr_offset

Definition at line 203 of file virtio.h.

◆ mac_addr

u8 virtio_if_t::mac_addr[6]

Definition at line 171 of file virtio.h.

◆ mac_addr16

u16 virtio_if_t::mac_addr16

Definition at line 169 of file virtio.h.

◆ mac_addr32

u32 virtio_if_t::mac_addr32

Definition at line 168 of file virtio.h.

◆ max_queue_pairs

u16 virtio_if_t::max_queue_pairs

Definition at line 204 of file virtio.h.

◆ msix_enabled

u32 virtio_if_t::msix_enabled

Definition at line 146 of file virtio.h.

◆ msix_table_size

u16 virtio_if_t::msix_table_size

Definition at line 205 of file virtio.h.

◆ net_ns

u8* virtio_if_t::net_ns

Definition at line 180 of file virtio.h.

◆ notify_off_multiplier

u32 virtio_if_t::notify_off_multiplier

Definition at line 198 of file virtio.h.

◆ notify_offset

u16 virtio_if_t::notify_offset

Definition at line 201 of file virtio.h.

◆ num_rxqs

u16 virtio_if_t::num_rxqs

Definition at line 134 of file virtio.h.

◆ num_txqs

u16 virtio_if_t::num_txqs

Definition at line 135 of file virtio.h.

◆ numa_node

u32 virtio_if_t::numa_node

Definition at line 159 of file virtio.h.

◆ packet_buffering

int virtio_if_t::packet_buffering

Definition at line 157 of file virtio.h.

◆ packet_coalesce

int virtio_if_t::packet_coalesce

Definition at line 156 of file virtio.h.

◆ pci_addr

pci_addr_t virtio_if_t::pci_addr

Definition at line 196 of file virtio.h.

◆ pci_dev_handle

u32 virtio_if_t::pci_dev_handle

Definition at line 145 of file virtio.h.

◆ per_interface_next_index

u32 virtio_if_t::per_interface_next_index

Definition at line 133 of file virtio.h.

◆ remote_features

u64 virtio_if_t::remote_features

Definition at line 160 of file virtio.h.

◆ rxq_vrings

virtio_vring_t* virtio_if_t::rxq_vrings

Definition at line 136 of file virtio.h.

◆ status

u8 virtio_if_t::status

Definition at line 207 of file virtio.h.

◆ support_int_mode

u8 virtio_if_t::support_int_mode

Definition at line 206 of file virtio.h.

◆ sw_if_index

u32 virtio_if_t::sw_if_index

Definition at line 153 of file virtio.h.

◆ tap_fds

int* virtio_if_t::tap_fds

Definition at line 142 of file virtio.h.

◆ tap_flags

u32 virtio_if_t::tap_flags

Definition at line 185 of file virtio.h.

◆ txq_vrings

virtio_vring_t* virtio_if_t::txq_vrings

Definition at line 137 of file virtio.h.

◆ type

virtio_if_type_t virtio_if_t::type

Definition at line 150 of file virtio.h.

◆ vhost_fds

int* virtio_if_t::vhost_fds

Definition at line 178 of file virtio.h.

◆ virtio_net_hdr_sz

u16 virtio_if_t::virtio_net_hdr_sz

Definition at line 149 of file virtio.h.

◆ virtio_pci_func

const virtio_pci_func_t* virtio_if_t::virtio_pci_func

Definition at line 210 of file virtio.h.


The documentation for this struct was generated from the following file: