diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-04-26 22:22:00 (GMT) |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-06-20 09:37:35 (GMT) |
commit | 2265c141086474bbae55a5bb3afa1ebb78ccaa7c (patch) | |
tree | f932bcdfa2ff8a6a2b442252e7167b90363bfa4d /net/batman-adv/types.h | |
parent | c6bda689c2c94788e1e567463ce861d1f135857f (diff) | |
download | linux-2265c141086474bbae55a5bb3afa1ebb78ccaa7c.tar.xz |
batman-adv: gateway election code refactoring
The gateway election mechanism has been a little revised. Now the
gw_election is trigered by an atomic_t flag (gw_reselect) which is set
to 1 in case of election needed, avoding to set curr_gw to NULL.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index 11e8569..85cf122 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -201,6 +201,7 @@ struct bat_priv { struct delayed_work orig_work; struct delayed_work vis_work; struct gw_node __rcu *curr_gw; /* rcu protected pointer */ + atomic_t gw_reselect; struct hard_iface __rcu *primary_if; /* rcu protected pointer */ struct vis_info *my_vis_info; }; |