replace zero-length arrays with flexible ones
[dpdk.git] / lib / vhost / vhost.h
index 13c5c22..14235aa 100644 (file)
@@ -134,6 +134,10 @@ struct virtqueue_stats {
        /* Size bins in array as RFC 2819, undersized [0], 64 [1], etc */
        uint64_t size_bins[8];
        uint64_t guest_notifications;
+       uint64_t iotlb_hits;
+       uint64_t iotlb_misses;
+       uint64_t inflight_submitted;
+       uint64_t inflight_completed;
 };
 
 /**
@@ -195,6 +199,7 @@ struct async_inflight_info {
        struct rte_mbuf *mbuf;
        uint16_t descs; /* num of descs inflight */
        uint16_t nr_buffers; /* num of buffers inflight for packed ring */
+       struct virtio_net_hdr nethdr;
 };
 
 struct vhost_async {