From ef4252b149cf238480c45c06dcbd567d41ee7d76 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Tue, 13 Jul 2010 17:55:31 +0300 Subject: tap: generalize code for different vnet header len Make host vnet header length a structure field in preparation for using this support in linux kernel. Signed-off-by: Michael S. Tsirkin --- net/tap-linux.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net/tap-linux.h') diff --git a/net/tap-linux.h b/net/tap-linux.h index 9f94358..727fcf5 100644 --- a/net/tap-linux.h +++ b/net/tap-linux.h @@ -52,4 +52,10 @@ struct virtio_net_hdr uint16_t csum_offset; }; +struct virtio_net_hdr_mrg_rxbuf +{ + struct virtio_net_hdr hdr; + uint16_t num_buffers; /* Number of merged rx buffers */ +}; + #endif /* QEMU_TAP_H */ -- cgit v1.1