]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit2265c141086474bbae55a5bb3afa1ebb78ccaa7c
treef932bcdfa2ff8a6a2b442252e7167b90363bfa4d
parentc6bda689c2c94788e1e567463ce861d1f135857f
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