WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [qemu-xen-4.0-testing] Change tap device mac address to

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-4.0-testing] Change tap device mac address to prevent change of bridge's mac
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 17 Jan 2011 07:52:59 -0800
Delivery-date: Mon, 17 Jan 2011 07:55:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-4.0-testing] Change tap device mac address to prevent change of bridge's mac, Ian Jackson <=