diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-04-21 09:52:17 -0400 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-05-08 10:10:41 -0400 |
commit | 61906ae86d8989e5bd3bc1f51b2fb8d32ffde2c5 (patch) | |
tree | df71d837c147495099a1411897652154bc26c08e /net/batman-adv/main.c | |
parent | 28f8e546e6bc4c2bc6687d7c8dcbe9934cebe639 (diff) |
batman-adv: multi vlan support for bridge loop detection
The bridge loop detection for batman-adv allows the bat0 interface
to be bridged into an ethernet segment which other batman-adv nodes
are connected to. In order to also allow multiple VLANs on top of
the bat0 interface to be bridged into the ethernet segment this
patch extends the aforementioned bridge loop detection.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.c')
-rw-r--r-- | net/batman-adv/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index 709b33bbdf43..705e8be07c8d 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -87,11 +87,12 @@ int mesh_init(struct net_device *soft_iface) | |||
87 | spin_lock_init(&bat_priv->vis_hash_lock); | 87 | spin_lock_init(&bat_priv->vis_hash_lock); |
88 | spin_lock_init(&bat_priv->vis_list_lock); | 88 | spin_lock_init(&bat_priv->vis_list_lock); |
89 | spin_lock_init(&bat_priv->softif_neigh_lock); | 89 | spin_lock_init(&bat_priv->softif_neigh_lock); |
90 | spin_lock_init(&bat_priv->softif_neigh_vid_lock); | ||
90 | 91 | ||
91 | INIT_HLIST_HEAD(&bat_priv->forw_bat_list); | 92 | INIT_HLIST_HEAD(&bat_priv->forw_bat_list); |
92 | INIT_HLIST_HEAD(&bat_priv->forw_bcast_list); | 93 | INIT_HLIST_HEAD(&bat_priv->forw_bcast_list); |
93 | INIT_HLIST_HEAD(&bat_priv->gw_list); | 94 | INIT_HLIST_HEAD(&bat_priv->gw_list); |
94 | INIT_HLIST_HEAD(&bat_priv->softif_neigh_list); | 95 | INIT_HLIST_HEAD(&bat_priv->softif_neigh_vids); |
95 | 96 | ||
96 | if (originator_init(bat_priv) < 1) | 97 | if (originator_init(bat_priv) < 1) |
97 | goto err; | 98 | goto err; |