]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: gateway election code refactoring
authorAntonio Quartulli <ordex@autistici.org>
Tue, 26 Apr 2011 22:22:00 +0000 (00:22 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 20 Jun 2011 09:37:35 +0000 (11:37 +0200)
commitbd4aabdc76c007b7c258e8f0d535e61f7df3d76b
treef932bcdfa2ff8a6a2b442252e7167b90363bfa4d
parent6ed340bbd7071a000acfccab6fd7349fc4498041
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>
net/batman-adv/gateway_client.c
net/batman-adv/main.c
net/batman-adv/types.h