Skip to content

Commit b64b73d

Browse files
stephen hemmingerdavem330
authored andcommitted
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>
1 parent 3458e21 commit b64b73d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/bridge/br_device.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ static int br_dev_open(struct net_device *dev)
9191
{
9292
struct net_bridge *br = netdev_priv(dev);
9393

94-
netif_carrier_off(dev);
9594
netdev_update_features(dev);
9695
netif_start_queue(dev);
9796
br_stp_enable_bridge(br);
@@ -108,8 +107,6 @@ static int br_dev_stop(struct net_device *dev)
108107
{
109108
struct net_bridge *br = netdev_priv(dev);
110109

111-
netif_carrier_off(dev);
112-
113110
br_stp_disable_bridge(br);
114111
br_multicast_stop(br);
115112

0 commit comments

Comments
 (0)