]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bridge: leave carrier on for empty bridge
authorstephen hemminger <shemminger@vyatta.com>
Mon, 3 Oct 2011 18:14:45 +0000 (18:14 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:49 +0000 (09:36 -0800)
commitce0f562ecf544f386b6ae95f490cd06f7da2deb4
tree97e36d61c095c13e8b7d5ef0072dd5c86a5cb6cb
parent621112ec06bbe3a6dbb6af5f4db3451d01b309f9
bridge: leave carrier on for empty bridge

[ Upstream commit b64b73d7d0c480f75684519c6134e79d50c1b341 ]

This resolves a regression seen by some users of bridging.
Some users use the bridge like a dummy device.
They expect to be able to put an IPv6 address on the device
with no ports attached. Although there are better ways of doing
this, there is no reason to not allow it.

Note: the bridge still will reflect the state of ports in the
bridge if there are any added.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bridge/br_device.c