Subject: Re: loosing connections on bridge topology changes

From: Stephen Hemminger <[email-masked]>
Date: Wed, 13 May 2009 10:44:49 -0700

On Wed, 13 May 2009 17:13:41 +0200
Karl Hiramoto <[email-masked]> wrote:

> 
> Hi,
> 
> I have a user space application, that puts eth0 into bridge br0.  At 
> this moment all connections seem frozen. Telnet, HTTP, and NFS.
> 
> For development i have nfs root fs.
> 
> There is a ioctl() that does the equivalent of "brctl addif br0 eth0"
> 
> That cuts all the connections for a few seconds.
> 
> nfs: server 192.168.10.51 not responding, still trying
> br0: topology change detected, propagating           
> br0: port 1(eth0) entering forwarding state          
> nfs: server 192.168.10.51 not responding, still trying
> nfs: server 192.168.10.51 OK                         
> nfs: server 192.168.10.51 OK  
> 
> 
> Then everything is OK..
> 
> Is there anyway i can fix this, so my applicaion goes ahead at full speed?
> 
> 
> using libnl i tried flushing the ARP cache on all devices, but it didn't 
> seem to help.
> 
> 
> Thanks
> --
> 
> Karl.

turn off forwarding delay (unless you are using STP).
 brctl setfd br0 0

--