Staging: batman-adv: softif bridge loop avoidance
[firefly-linux-kernel-4.4.55.git] / drivers / staging / batman-adv / originator.c
index 55270080a44bf3de5caffad4eb433267bc0d7e96..fc7fb31b5eda6a464c6eebfed286f20538fe75fb 100644 (file)
@@ -28,6 +28,7 @@
 #include "routing.h"
 #include "hard-interface.h"
 #include "unicast.h"
+#include "soft-interface.h"
 
 static void purge_orig(struct work_struct *work);
 
@@ -286,6 +287,7 @@ static void _purge_orig(struct bat_priv *bat_priv)
 
        spin_unlock_irqrestore(&bat_priv->orig_hash_lock, flags);
 
+       softif_neigh_purge(bat_priv);
 }
 
 static void purge_orig(struct work_struct *work)