]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: move neigh_node list add into batadv_neigh_node_new()
authorMarek Lindner <mareklindner@neomailbox.ch>
Sat, 25 Jul 2015 20:57:43 +0000 (04:57 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 27 Aug 2015 18:15:31 +0000 (20:15 +0200)
commit4effde174b56565cb3290dce2a6bf272097854fc
treea2f2d2215e913c789720623e267984632bcfe340
parentb910a0fb8cc9900bbe2097a6bdb6acd87620e325
batman-adv: move neigh_node list add into batadv_neigh_node_new()

All batadv_neigh_node_* functions expect the neigh_node list item to be part
of the orig_node->neigh_list, therefore the constructor of said list item
should be adding the newly created neigh_node to the respective list.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Acked-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/originator.c