[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-4.0-testing] Change tap device mac address to prevent change of bridge's mac
commit 6d5b7ee3acfe8cc10681d2583a38398f7470ec2a Author: Miroslav Rezanina <mrezanin@xxxxxxxxxx> Date: Wed Jan 5 23:42:03 2011 +0000 Change tap device mac address to prevent change of bridge's mac Qemu tap device is created with random mac address and then add to bridge. Due to linux kernel handlig, bridge change its mac address to tap mac in case tap m ac is lower than bridge one. This can lead to short network breakage for dom0 a nd guests. This patch set tap device mac adress to FE:FF:FF:FF:FF:FF to ensure tap device mac is always higher then bridge one. (In xen-unstable this is handled by the hotplug scripts, not qemu-ifup, so the change there is to xen-unstable.hg.) Signed-off-by: Miroslav Rezanina <mrezanin@xxxxxxxxxx> Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxx> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- i386-dm/qemu-ifup-Linux | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/i386-dm/qemu-ifup-Linux b/i386-dm/qemu-ifup-Linux index bcbee92..c706a10 100644 --- a/i386-dm/qemu-ifup-Linux +++ b/i386-dm/qemu-ifup-Linux @@ -33,5 +33,8 @@ then fi fi +# We have to change mac address of tap device to not change bridge mac +ip link set $1 addr fe:ff:ff:ff:ff:ff + ifconfig $1 0.0.0.0 up brctl addif $bridge $1 || true -- generated by git-patchbot for /home/xen/git/qemu-xen-4.0-testing.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |