bridge: control carrier based on ports online
authorstephen hemminger <shemminger@vyatta.com>
Mon, 7 Mar 2011 08:34:06 +0000 (08:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 21:29:02 +0000 (14:29 -0700)
commit1faa4356a3bd89ea11fb92752d897cff3a20ec0e
tree31bf972b0ee42105bceb79e09f2a8b82d9d9b942
parent942527634e201883b39fe0c97a1e47db7a026f91
bridge: control carrier based on ports online

This makes the bridge device behave like a physical device.
In earlier releases the bridge always asserted carrier. This
changes the behavior so that bridge device carrier is on only
if one or more ports are in the forwarding state. This
should help IPv6 autoconfiguration, DHCP, and routing daemons.

I did brief testing with Network and Virt manager and they
seem fine, but since this changes behavior of bridge, it should
wait until net-next (2.6.39).

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Reviewed-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Tested-By: Adam Majer <adamm@zombino.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_stp.c
net/bridge/br_stp_timer.c