diff options
author | Olaf Rempel <razzor@kopf-tisch.de> | 2005-11-24 00:00:03 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-12-14 15:42:59 -0800 |
commit | 51adb32b28e76270e850235a9f61c8379376be51 (patch) | |
tree | d23b3d9252905e9c37376f872827e1e945f99510 | |
parent | fd5bcd52d599f0c0a970005336bd9c020aee2e97 (diff) | |
download | linux-stable-51adb32b28e76270e850235a9f61c8379376be51.tar.gz linux-stable-51adb32b28e76270e850235a9f61c8379376be51.tar.bz2 linux-stable-51adb32b28e76270e850235a9f61c8379376be51.zip |
[PATCH] BRIDGE: recompute features when adding a new device
[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>
-rw-r--r-- | net/bridge/br_if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index defcf6a8607c..975abe254b7a 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); |