]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: make the GW selection class algorithm specific
authorAntonio Quartulli <a@unstable.cc>
Sun, 3 Jul 2016 10:46:32 +0000 (12:46 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:29 +0000 (07:54 +0200)
commit3cfae9961e1457cd71adf43c154492335a4b87bb
tree3e22abd6c0b709c86edee8c4e356954ad0f292bf
parent91a0b9bc7e8c825f8d8346f6539eb2259f2a5587
batman-adv: make the GW selection class algorithm specific

The B.A.T.M.A.N. V algorithm uses a different metric compared to its
predecessor and for this reason the logic used to compute the best
Gateway is also changed. This means that the GW selection class
fed to this logic has a semantics that depends on the algorithm being
used.

Make the parsing and printing routine of the GW selection class
routing algorithm specific. Each algorithm can now parse (and print)
this value independently.

If no API is provided by any algorithm, the default is to use the
current mechanism of considering such value like an integer between
1 and 255.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_v.c
net/batman-adv/sysfs.c
net/batman-adv/types.h