www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / kernel / linux / net / bridge / br_if.c
index 1a4ad2f..aa3d600 100755 (executable)
@@ -5,7 +5,7 @@
  *     Authors:
  *     Lennert Buytenhek               <buytenh@gnu.org>
  *
- *     $Id: br_if.c,v 1.1.1.1 2005/04/29 01:44:07 echo Exp $
+ *     $Id: br_if.c,v 1.7 2001/12/24 00:59:55 davem Exp $
  *
  *     This program is free software; you can redistribute it and/or
  *     modify it under the terms of the GNU General Public License
 
 #include "br_private.h"
 
+#if defined(CONFIG_MIPS_BRCM)
+int snooping = 0;
+#endif
+
 /*
  * Determine initial path cost based on speed.
  * using recommendations from 802.1d standard
@@ -127,6 +131,8 @@ static void del_br(struct net_bridge *br)
                del_nbp(p);
        }
 
+       br_mc_fdb_cleanup(br);
+
        del_timer_sync(&br->gc_timer);
 
        br_sysfs_delbr(br->dev);
@@ -155,6 +161,11 @@ static struct net_device *new_bridge_dev(const char *name)
        br->bridge_id.prio[1] = 0x00;
        memset(br->bridge_id.addr, 0, ETH_ALEN);
 
+#if defined(CONFIG_MIPS_BRCM)
+       br->lock = SPIN_LOCK_UNLOCKED;
+       INIT_LIST_HEAD(&br->mc_list);
+       br->hash_lock = SPIN_LOCK_UNLOCKED;
+#endif
        br->stp_enabled = 0;
        br->designated_root = br->bridge_id;
        br->root_path_cost = 0;