FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
virtio_if_t Struct Reference
+ Collaboration diagram for virtio_if_t:

Public Member Functions

 CLIB_CACHE_LINE_ALIGN_MARK (cacheline0)
 

Data Fields

u32 flags
 
u32 dev_instance
 
u32 hw_if_index
 
u32 sw_if_index
 
u32 numa_node
 
u16 virtio_net_hdr_sz
 
virtio_if_type_t type
 
union {
   u32   id
 
   pci_addr_t   pci_addr
 
}; 
 
u32 per_interface_next_index
 
union {
   int   fd
 
   u32   msix_enabled
 
}; 
 
union {
   int   tap_fd
 
   u32   pci_dev_handle
 
}; 
 
virtio_vring_trxq_vrings
 
virtio_vring_ttxq_vrings
 
u64 features
 
u64 remote_features
 
clib_error_terror
 
u8 support_int_mode
 
u16 max_queue_pairs
 
u16 num_rxqs
 
u16 num_txqs
 
u8 status
 
u8 mac_addr [6]
 
u8host_if_name
 
u8net_ns
 
u8host_bridge
 
u8 host_mac_addr [6]
 
ip4_address_t host_ip4_addr
 
u8 host_ip4_prefix_len
 
ip6_address_t host_ip6_addr
 
u8 host_ip6_prefix_len
 
u32 host_mtu_size
 
int gso_enabled
 
int ifindex
 
virtio_vring_tcxq_vring
 

Detailed Description

Definition at line 135 of file virtio.h.

Member Function Documentation

◆ CLIB_CACHE_LINE_ALIGN_MARK()

virtio_if_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline0  )

Field Documentation

◆ @115

union { ... }

◆ @117

union { ... }

◆ @119

union { ... }

◆ cxq_vring

virtio_vring_t* virtio_if_t::cxq_vring

Definition at line 185 of file virtio.h.

◆ dev_instance

u32 virtio_if_t::dev_instance

Definition at line 140 of file virtio.h.

◆ error

clib_error_t* virtio_if_t::error

Definition at line 167 of file virtio.h.

◆ fd

int virtio_if_t::fd

Definition at line 154 of file virtio.h.

◆ features

u64 virtio_if_t::features

Definition at line 164 of file virtio.h.

◆ flags

u32 virtio_if_t::flags

Definition at line 138 of file virtio.h.

◆ gso_enabled

int virtio_if_t::gso_enabled

Definition at line 183 of file virtio.h.

◆ host_bridge

u8* virtio_if_t::host_bridge

Definition at line 176 of file virtio.h.

◆ host_if_name

u8* virtio_if_t::host_if_name

Definition at line 174 of file virtio.h.

◆ host_ip4_addr

ip4_address_t virtio_if_t::host_ip4_addr

Definition at line 178 of file virtio.h.

◆ host_ip4_prefix_len

u8 virtio_if_t::host_ip4_prefix_len

Definition at line 179 of file virtio.h.

◆ host_ip6_addr

ip6_address_t virtio_if_t::host_ip6_addr

Definition at line 180 of file virtio.h.

◆ host_ip6_prefix_len

u8 virtio_if_t::host_ip6_prefix_len

Definition at line 181 of file virtio.h.

◆ host_mac_addr

u8 virtio_if_t::host_mac_addr[6]

Definition at line 177 of file virtio.h.

◆ host_mtu_size

u32 virtio_if_t::host_mtu_size

Definition at line 182 of file virtio.h.

◆ hw_if_index

u32 virtio_if_t::hw_if_index

Definition at line 141 of file virtio.h.

◆ id

u32 virtio_if_t::id

Definition at line 148 of file virtio.h.

◆ ifindex

int virtio_if_t::ifindex

Definition at line 184 of file virtio.h.

◆ mac_addr

u8 virtio_if_t::mac_addr[6]

Definition at line 173 of file virtio.h.

◆ max_queue_pairs

u16 virtio_if_t::max_queue_pairs

Definition at line 169 of file virtio.h.

◆ msix_enabled

u32 virtio_if_t::msix_enabled

Definition at line 155 of file virtio.h.

◆ net_ns

u8* virtio_if_t::net_ns

Definition at line 175 of file virtio.h.

◆ num_rxqs

u16 virtio_if_t::num_rxqs

Definition at line 170 of file virtio.h.

◆ num_txqs

u16 virtio_if_t::num_txqs

Definition at line 171 of file virtio.h.

◆ numa_node

u32 virtio_if_t::numa_node

Definition at line 143 of file virtio.h.

◆ pci_addr

pci_addr_t virtio_if_t::pci_addr

Definition at line 149 of file virtio.h.

◆ pci_dev_handle

u32 virtio_if_t::pci_dev_handle

Definition at line 160 of file virtio.h.

◆ per_interface_next_index

u32 virtio_if_t::per_interface_next_index

Definition at line 151 of file virtio.h.

◆ remote_features

u64 virtio_if_t::remote_features

Definition at line 164 of file virtio.h.

◆ rxq_vrings

virtio_vring_t* virtio_if_t::rxq_vrings

Definition at line 162 of file virtio.h.

◆ status

u8 virtio_if_t::status

Definition at line 172 of file virtio.h.

◆ support_int_mode

u8 virtio_if_t::support_int_mode

Definition at line 168 of file virtio.h.

◆ sw_if_index

u32 virtio_if_t::sw_if_index

Definition at line 142 of file virtio.h.

◆ tap_fd

int virtio_if_t::tap_fd

Definition at line 159 of file virtio.h.

◆ txq_vrings

virtio_vring_t* virtio_if_t::txq_vrings

Definition at line 163 of file virtio.h.

◆ type

virtio_if_type_t virtio_if_t::type

Definition at line 145 of file virtio.h.

◆ virtio_net_hdr_sz

u16 virtio_if_t::virtio_net_hdr_sz

Definition at line 144 of file virtio.h.


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