diff options
author | Simon Wunderlich <simon@open-mesh.com> | 2013-11-13 13:14:47 -0500 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2014-01-12 08:41:11 -0500 |
commit | 7351a4822d42827ba0110677c0cbad88a3d52585 (patch) | |
tree | cc3e4200c1f1ff0b27f370c451b6a36493b74d79 /net/batman-adv/translation-table.c | |
parent | 89652331c00f43574515059ecbf262d26d885717 (diff) |
batman-adv: split out router from orig_node
For the network wide multi interface optimization there are different
routers for each outgoing interface (outgoing from the OGM perspective,
incoming for payload traffic). To reflect this, change the router and
associated data to a list of routers.
While at it, rename batadv_orig_node_get_router() to
batadv_orig_router_get() to follow the new naming scheme.
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 22c32ae12e65..ec89a1b9fc06 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -1400,7 +1400,8 @@ batadv_transtable_best_orig(struct batadv_priv *bat_priv, | |||
1400 | 1400 | ||
1401 | head = &tt_global_entry->orig_list; | 1401 | head = &tt_global_entry->orig_list; |
1402 | hlist_for_each_entry_rcu(orig_entry, head, list) { | 1402 | hlist_for_each_entry_rcu(orig_entry, head, list) { |
1403 | router = batadv_orig_node_get_router(orig_entry->orig_node); | 1403 | router = batadv_orig_router_get(orig_entry->orig_node, |
1404 | BATADV_IF_DEFAULT); | ||
1404 | if (!router) | 1405 | if (!router) |
1405 | continue; | 1406 | continue; |
1406 | 1407 | ||