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>
This commit is contained in:

committed by
Sven Eckelmann

parent
28f8e546e6
commit
61906ae86d
@@ -87,11 +87,12 @@ int mesh_init(struct net_device *soft_iface)
|
||||
spin_lock_init(&bat_priv->vis_hash_lock);
|
||||
spin_lock_init(&bat_priv->vis_list_lock);
|
||||
spin_lock_init(&bat_priv->softif_neigh_lock);
|
||||
spin_lock_init(&bat_priv->softif_neigh_vid_lock);
|
||||
|
||||
INIT_HLIST_HEAD(&bat_priv->forw_bat_list);
|
||||
INIT_HLIST_HEAD(&bat_priv->forw_bcast_list);
|
||||
INIT_HLIST_HEAD(&bat_priv->gw_list);
|
||||
INIT_HLIST_HEAD(&bat_priv->softif_neigh_list);
|
||||
INIT_HLIST_HEAD(&bat_priv->softif_neigh_vids);
|
||||
|
||||
if (originator_init(bat_priv) < 1)
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user