[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 3/7] tap: allow extended virtio header with hash info
From: |
Yuri Benditovich |
Subject: |
[PATCH v8 3/7] tap: allow extended virtio header with hash info |
Date: |
Fri, 8 May 2020 15:59:30 +0300 |
Signed-off-by: Yuri Benditovich <address@hidden>
---
net/tap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/tap.c b/net/tap.c
index 6207f61f84..ca48f2a285 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;
--
2.17.1
- [PATCH v8 0/7] reference implementation of RSS and hash report, Yuri Benditovich, 2020/05/08
- [PATCH v8 1/7] virtio-net: implement RSS configuration command, Yuri Benditovich, 2020/05/08
- [PATCH v8 2/7] virtio-net: implement RX RSS processing, Yuri Benditovich, 2020/05/08
- [PATCH v8 3/7] tap: allow extended virtio header with hash info,
Yuri Benditovich <=
- [PATCH v8 4/7] virtio-net: reference implementation of hash report, Yuri Benditovich, 2020/05/08
- [PATCH v8 5/7] vmstate.h: provide VMSTATE_VARRAY_UINT16_ALLOC macro, Yuri Benditovich, 2020/05/08
- [PATCH v8 6/7] virtio-net: add migration support for RSS and hash report, Yuri Benditovich, 2020/05/08
- [PATCH v8 7/7] virtio-net: align RSC fields with updated virtio-net header, Yuri Benditovich, 2020/05/08
- Re: [PATCH v8 0/7] reference implementation of RSS and hash report, Jason Wang, 2020/05/11