aboutgitcodebugslistschat
path: root/virtio.h
diff options
context:
space:
mode:
Diffstat (limited to 'virtio.h')
-rw-r--r--virtio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/virtio.h b/virtio.h
index 12caaa0..d04bbe8 100644
--- a/virtio.h
+++ b/virtio.h
@@ -15,6 +15,8 @@
/* Maximum size of a virtqueue */
#define VIRTQUEUE_MAX_SIZE 1024
+#define VNET_HLEN (sizeof(struct virtio_net_hdr_mrg_rxbuf))
+
/**
* struct vu_ring - Virtqueue rings
* @num: Size of the queue