All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Bridge MAC selection
@ 2008-06-11  8:27 Dietmar Maurer
  2008-06-11 15:58 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Dietmar Maurer @ 2008-06-11  8:27 UTC (permalink / raw)
  To: bridge

Hi all,

We provid a management plattform for virtual machines (pve.proxmox.com),
and 
use a bridge access the network.

Currently the system choose the lowest MAC for the purposes of STP 
and also assigns this MAC to the bridge. This is a problem because the 
Bridge MAC changes when we start/stop virtual machines - leading to 
Network outage for several seconds.

Using the first (insteasd of lowest) MAC would avoid the problem. So are

There any side effects with the following patch?

--- br_stp_if.c.org     2008-06-11 09:15:16.000000000 +0200
+++ br_stp_if.c 2008-06-11 09:44:53.000000000 +0200
@@ -217,10 +217,7 @@
        struct net_bridge_port *p;

        list_for_each_entry(p, &br->port_list, list) {
-               if (addr == br_mac_zero ||
-                   memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0)
-                       addr = p->dev->dev_addr;
-
+               addr = p->dev->dev_addr;
        }

        if (compare_ether_addr(br->bridge_id.addr, addr))




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-06-12 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11  8:27 [Bridge] Bridge MAC selection Dietmar Maurer
2008-06-11 15:58 ` Stephen Hemminger
2008-06-12  4:51   ` Dietmar Maurer
2008-06-12 10:29     ` Patrick McHardy
2008-06-12 11:10       ` Dietmar Maurer
2008-06-12 13:22         ` Andy Gospodarek
2008-06-12 13:39           ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.