]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Oct 2011 19:26:50 +0000 (15:26 -0400)
commit0e16dd5ef61debd3f7e6925dab79129e74cc1798
tree4b8ecae0723a6149a0831fdcd7db9874e82fe8af
parenta7e3045807fbc35e4139c4e537667ff44726a4cf
bridge: leave carrier on for empty bridge

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>
net/bridge/br_device.c