diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-07-13 17:55:31 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-09-07 20:27:28 +0300 |
commit | ef4252b149cf238480c45c06dcbd567d41ee7d76 (patch) | |
tree | 7fd140ba17e44a44b7a94c503deee22404b52885 /net/tap-linux.h | |
parent | a05e8a6e90c82cec67d16fed24da0fd04ec00f32 (diff) |
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 <mst@redhat.com>
Diffstat (limited to 'net/tap-linux.h')
-rw-r--r-- | net/tap-linux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/tap-linux.h b/net/tap-linux.h index 9f943589bf..727fcf5010 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 */ |