diff options
author | Marek Lindner <mareklindner@neomailbox.ch> | 2015-08-04 13:09:56 (GMT) |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2015-12-15 16:21:41 (GMT) |
commit | 8248a4c7c866a9c15b6b379ca98aa8c95363f502 (patch) | |
tree | 20a7b6f2d429db8d9369e178e959bc151fb89a03 /net/batman-adv/originator.c | |
parent | cef63419f7dbd52e535d1932a88904b3facb1546 (diff) | |
download | linux-8248a4c7c866a9c15b6b379ca98aa8c95363f502.tar.xz |
batman-adv: add bat_hardif_neigh_init algo ops call
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r-- | net/batman-adv/originator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index a8671c6..27dd326 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c @@ -539,6 +539,7 @@ static struct batadv_hardif_neigh_node * batadv_hardif_neigh_create(struct batadv_hard_iface *hard_iface, const u8 *neigh_addr) { + struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); struct batadv_hardif_neigh_node *hardif_neigh = NULL; spin_lock_bh(&hard_iface->neigh_list_lock); @@ -564,6 +565,9 @@ batadv_hardif_neigh_create(struct batadv_hard_iface *hard_iface, atomic_set(&hardif_neigh->refcount, 1); + if (bat_priv->bat_algo_ops->bat_hardif_neigh_init) + bat_priv->bat_algo_ops->bat_hardif_neigh_init(hardif_neigh); + hlist_add_head(&hardif_neigh->list, &hard_iface->neigh_list); out: |