]> git.proxmox.com Git - qemu.git/commit - net/tap-linux.c
tap: reset vnet header size on open
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Nov 2012 07:13:04 +0000 (09:13 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 12 Dec 2012 21:36:20 +0000 (23:36 +0200)
commit89e6d68ef3c45b2c4e3199c3397b5525b752698d
tree09fea63c634f84ff4e9ec730d282bb0483952d27
parent6f918e40e6b7f4e3dcf89c3e3f1001e965a683a1
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 vnet header size correctly on open.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/tap-linux.c