From: Olaf Rempel Date: Thu, 24 Nov 2005 03:04:08 +0000 (-0800) Subject: [BRIDGE]: recompute features when adding a new device X-Git-Tag: v2.6.15-rc4~43 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=133747e8d1e912863edfb3869e36b97b9939d4fc;p=~shefty%2Frdma-dev.git [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: Olaf Rempel Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index defcf6a8607..975abe254b7 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -366,6 +366,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev) spin_lock_bh(&br->lock); br_stp_recalculate_bridge_id(br); + br_features_recompute(br); if ((br->dev->flags & IFF_UP) && (dev->flags & IFF_UP) && netif_carrier_ok(dev)) br_stp_enable_port(p);