• S
    macvtap IFF_VNET_HDR configuration · e52687e8
    Stefan Berger 提交于
    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()
    e52687e8
macvtap.h 1.4 KB