aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorYuri Benditovich <yuri.benditovich@daynix.com>2020-05-08 15:59:30 +0300
committerJason Wang <jasowang@redhat.com>2020-06-18 21:05:50 +0800
commitfbbdbddec018723d9f863f01cdec172dda9df12b (patch)
tree5503dac8c45fd5e9c7cf88b55eff7588f0c8a302 /net
parent4474e37a5b3a616803f4570b542e8eede91e50d2 (diff)
downloadqemu-fbbdbddec018723d9f863f01cdec172dda9df12b.zip
qemu-fbbdbddec018723d9f863f01cdec172dda9df12b.tar.gz
qemu-fbbdbddec018723d9f863f01cdec172dda9df12b.tar.bz2
tap: allow extended virtio header with hash info
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tap.c b/net/tap.c
index 6207f61..ca48f2a 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -254,7 +254,8 @@ static void tap_set_vnet_hdr_len(NetClientState *nc, int len)
assert(nc->info->type == NET_CLIENT_DRIVER_TAP);
assert(len == sizeof(struct virtio_net_hdr_mrg_rxbuf) ||
- len == sizeof(struct virtio_net_hdr));
+ len == sizeof(struct virtio_net_hdr) ||
+ len == sizeof(struct virtio_net_hdr_v1_hash));
tap_fd_set_vnet_hdr_len(s->fd, len);
s->host_vnet_hdr_len = len;