* [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches
@ 2012-11-20 14:46 Stefan Hajnoczi
2012-11-20 14:46 ` [Qemu-devel] [PATCH 1/1] tap: reset vnet header size on open Stefan Hajnoczi
2012-11-26 15:33 ` [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Anthony Liguori
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-11-20 14:46 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi
The last pull request contained the net-qom patches series which broke
NIC hotplug. I'd like to do deeper testing and it's not critical to get
net-qom into QEMU 1.3, let's hold that back.
This pull request does contain a tap fix which is 1.3-rc1 material.
The following changes since commit 1d2a67f89abee0cef4e3d8a8dec739ef0be77120:
Update version for 1.3.0-rc0 release (2012-11-19 13:51:39 -0600)
are available in the git repository at:
git://github.com/stefanha/qemu.git net
for you to fetch changes up to 58ddcd50f30cb5c020bd4f9f36b01ee160a27cac:
tap: reset vnet header size on open (2012-11-20 15:38:37 +0100)
----------------------------------------------------------------
Michael S. Tsirkin (1):
tap: reset vnet header size on open
net/tap.c | 7 +++++++
1 file changed, 7 insertions(+)
--
1.8.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH 1/1] tap: reset vnet header size on open
2012-11-20 14:46 [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Stefan Hajnoczi
@ 2012-11-20 14:46 ` Stefan Hajnoczi
2012-11-26 15:33 ` [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Anthony Liguori
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-11-20 14:46 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi, Michael S. Tsirkin
From: "Michael S. Tsirkin" <mst@redhat.com>
For tap, we currently assume the vnet header size is 10
(the default value) but that might not be the case
if tap is persistent and has been used by qemu previously.
To fix, set host header size in tap device on open.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
net/tap.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/net/tap.c b/net/tap.c
index df89caa..1abfd44 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -341,6 +341,13 @@ static TAPState *net_tap_fd_init(NetClientState *peer,
s->using_vnet_hdr = 0;
s->has_ufo = tap_probe_has_ufo(s->fd);
tap_set_offload(&s->nc, 0, 0, 0, 0, 0);
+ /*
+ * Make sure host header length is set correctly in tap:
+ * it might have been modified by another instance of qemu.
+ */
+ if (tap_probe_vnet_hdr_len(s->fd, s->host_vnet_hdr_len)) {
+ tap_fd_set_vnet_hdr_len(s->fd, s->host_vnet_hdr_len);
+ }
tap_read_poll(s, 1);
s->vhost_net = NULL;
return s;
--
1.8.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches
2012-11-20 14:46 [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Stefan Hajnoczi
2012-11-20 14:46 ` [Qemu-devel] [PATCH 1/1] tap: reset vnet header size on open Stefan Hajnoczi
@ 2012-11-26 15:33 ` Anthony Liguori
1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2012-11-26 15:33 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel
Stefan Hajnoczi <stefanha@redhat.com> writes:
> The last pull request contained the net-qom patches series which broke
> NIC hotplug. I'd like to do deeper testing and it's not critical to get
> net-qom into QEMU 1.3, let's hold that back.
>
> This pull request does contain a tap fix which is 1.3-rc1 material.
>
> The following changes since commit 1d2a67f89abee0cef4e3d8a8dec739ef0be77120:
>
> Update version for 1.3.0-rc0 release (2012-11-19 13:51:39 -0600)
>
> are available in the git repository at:
>
> git://github.com/stefanha/qemu.git net
Pulled. Thanks.
Regards,
Anthony Liguori
>
> for you to fetch changes up to 58ddcd50f30cb5c020bd4f9f36b01ee160a27cac:
>
> tap: reset vnet header size on open (2012-11-20 15:38:37 +0100)
>
> ----------------------------------------------------------------
> Michael S. Tsirkin (1):
> tap: reset vnet header size on open
>
> net/tap.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> --
> 1.8.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-26 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 14:46 [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Stefan Hajnoczi
2012-11-20 14:46 ` [Qemu-devel] [PATCH 1/1] tap: reset vnet header size on open Stefan Hajnoczi
2012-11-26 15:33 ` [Qemu-devel] [PULL 1.3-rc1 0/1] Net patches Anthony Liguori
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).