]> git.proxmox.com Git - mirror_qemu.git/commit
tap: reset vnet header size on open
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Nov 2012 10:23:23 +0000 (12:23 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 20 Nov 2012 14:38:37 +0000 (15:38 +0100)
commit58ddcd50f30cb5c020bd4f9f36b01ee160a27cac
treebb00b80bdcb890d062dc4e9f479952fefc94650c
parent1d2a67f89abee0cef4e3d8a8dec739ef0be77120
tap: reset vnet header size on open

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