From: Yuri Benditovich <yuri.benditovich@daynix.com>
To: qemu-devel@nongnu.org, mst@redhat.com, jasowang@redhat.com,
quintela@redhat.com, dgilbert@redhat.com
Cc: yan@daynix.com
Subject: [PATCH 3/7] tap: allow extended virtio header with hash info
Date: Fri, 8 May 2020 15:54:48 +0300 [thread overview]
Message-ID: <20200508125452.7802-4-yuri.benditovich@daynix.com> (raw)
In-Reply-To: <20200508125452.7802-1-yuri.benditovich@daynix.com>
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
---
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
next prev parent reply other threads:[~2020-05-08 12:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 12:54 [PATCH 0/7] reference implementation of RSS and hash report Yuri Benditovich
2020-05-08 12:54 ` [PATCH 1/7] virtio-net: implement RSS configuration command Yuri Benditovich
2020-05-08 12:54 ` [PATCH 2/7] virtio-net: implement RX RSS processing Yuri Benditovich
2020-05-08 12:54 ` Yuri Benditovich [this message]
2020-05-08 12:54 ` [PATCH 4/7] virtio-net: reference implementation of hash report Yuri Benditovich
2020-05-08 12:54 ` [PATCH 5/7] vmstate.h: provide VMSTATE_VARRAY_UINT16_ALLOC macro Yuri Benditovich
2020-05-08 12:54 ` [PATCH 6/7] virtio-net: add migration support for RSS and hash report Yuri Benditovich
2020-05-08 12:54 ` [PATCH 7/7] virtio-net: align RSC fields with updated virtio-net header Yuri Benditovich
2020-05-08 12:56 ` [PATCH 0/7] reference implementation of RSS and hash report Yuri Benditovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200508125452.7802-4-yuri.benditovich@daynix.com \
--to=yuri.benditovich@daynix.com \
--cc=dgilbert@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=yan@daynix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).