diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-01-31 13:50:56 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-02-06 17:27:44 +0000 |
commit | b74fe32d545668938a8db7f19d94c42747ef95f6 (patch) | |
tree | 34a0470d61d5c004a91087ea99e4f74fc5db93bc /src/vnet/devices/virtio/virtio.h | |
parent | 80659b4624d55e2d293198b06c5c6077b3ba816b (diff) |
virtio: enable msix interrupt mode
Change-Id: Idd560f3afde1dd03bc3d6fbb2070096146865f50
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.h')
-rw-r--r-- | src/vnet/devices/virtio/virtio.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vnet/devices/virtio/virtio.h b/src/vnet/devices/virtio/virtio.h index b2e74bed799..af61ca5968f 100644 --- a/src/vnet/devices/virtio/virtio.h +++ b/src/vnet/devices/virtio/virtio.h @@ -143,7 +143,11 @@ typedef struct pci_addr_t pci_addr; }; u32 per_interface_next_index; - int fd; + union + { + int fd; + u32 msix_enabled; + }; union { int tap_fd; @@ -155,12 +159,12 @@ typedef struct /* error */ clib_error_t *error; + u8 support_int_mode; /* support interrupt mode */ u16 max_queue_pairs; u16 tx_ring_sz; u16 rx_ring_sz; u8 status; u8 mac_addr[6]; - u64 bar[2]; u8 *host_if_name; u8 *net_ns; u8 *host_bridge; @@ -169,7 +173,6 @@ typedef struct u8 host_ip4_prefix_len; ip6_address_t host_ip6_addr; u8 host_ip6_prefix_len; - int ifindex; } virtio_if_t; |