projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4474e37
)
tap: allow extended virtio header with hash info
author
Yuri Benditovich
<yuri.benditovich@daynix.com>
Fri, 8 May 2020 12:59:30 +0000
(15:59 +0300)
committer
Jason Wang
<jasowang@redhat.com>
Thu, 18 Jun 2020 13:05:50 +0000
(21:05 +0800)
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/tap.c
patch
|
blob
|
history
diff --git
a/net/tap.c
b/net/tap.c
index 6207f61f84abd7735723adec4ad0f71fafe5fa10..ca48f2a2855d718df5693cb3716d357104bf8529 100644
(file)
--- 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;