]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] BRIDGE: recompute features when adding a new device
authorOlaf Rempel <razzor@kopf-tisch.de>
Thu, 24 Nov 2005 08:00:03 +0000 (00:00 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2005 23:42:59 +0000 (15:42 -0800)
[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 <razzor@kopf-tisch.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bridge/br_if.c

index defcf6a8607c3714f54dbb225b471570837dc630..975abe254b7a9b37462974fdc7448f9cd22cac8d 100644 (file)
@@ -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);