Commit 133747e8 authored by Olaf Rempel's avatar Olaf Rempel Committed by David S. Miller

[BRIDGE]: recompute features when adding a new device

We must recompute bridge features everytime the list of underlying 
devices changes, or we might end up with features that are not
supported by all devices (eg. NETIF_F_TSO)
This patch adds the missing recompute when adding a device to the bridge.
Signed-off-by: default avatarOlaf Rempel <razzor@kopf-tisch.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de919820
...@@ -366,6 +366,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev) ...@@ -366,6 +366,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev)
spin_lock_bh(&br->lock); spin_lock_bh(&br->lock);
br_stp_recalculate_bridge_id(br); br_stp_recalculate_bridge_id(br);
br_features_recompute(br);
if ((br->dev->flags & IFF_UP) if ((br->dev->flags & IFF_UP)
&& (dev->flags & IFF_UP) && netif_carrier_ok(dev)) && (dev->flags & IFF_UP) && netif_carrier_ok(dev))
br_stp_enable_port(p); br_stp_enable_port(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment