]> xenbits.xensource.com Git - libvirt.git/commit
macvtap IFF_VNET_HDR configuration
authorStefan Berger <stefanb@us.ibm.com>
Fri, 19 Feb 2010 10:38:57 +0000 (11:38 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 19 Feb 2010 10:38:57 +0000 (11:38 +0100)
commite52687e88fa167232cd8c314016fa9084fee72b2
tree54fa0b26cc1f2d1d01d13982d78c6a621db1a41a
parent61497d958ef9ee045962e2727f1e8dab32285134
macvtap IFF_VNET_HDR configuration

This patch sets or unsets the IFF_VNET_HDR flag depending on what device
is used in the VM. The manipulation of the flag is done in the open
function and is only fatal if the IFF_VNET_HDR flag could not be cleared
although it has to be (or if an ioctl generally fails). In that case the
macvtap tap is closed again and the macvtap interface torn.

* src/qemu/qemu_conf.c src/qemu/qemu_conf.h: pass qemuCmdFlags to
  qemudPhysIfaceConnect()
* src/util/macvtap.c src/util/macvtap.h: add vnet_hdr boolean to
  openMacvtapTap(), and private function configMacvtapTap()
* src/qemu/qemu_driver.c: add extra qemuCmdFlags when calling
  qemudPhysIfaceConnect()
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/util/macvtap.c
src/util/macvtap.h