]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Introduce a configurable per interface hop penalty
authorLinus Lüssing <linus.luessing@c0d3.blue>
Mon, 1 Jun 2020 20:35:22 +0000 (22:35 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 26 Jun 2020 08:37:11 +0000 (10:37 +0200)
commit5d2c969577aa6380938df9802e35bf6fa4a75606
tree2f10916db38855a459d381cfc00c0eeecb0ada66
parent26fb608877a433c82f293b5a265ef8f8c0e379c8
batman-adv: Introduce a configurable per interface hop penalty

In some setups multiple hard interfaces with similar link qualities
or throughput values are available. But people have expressed the desire
to consider one of them as a backup only.

Some creative solutions are currently in use: Such people are
configuring multiple batman-adv mesh/soft interfaces, wire them
together with some veth pairs and then tune the hop penalty to achieve
an effect similar to a tunable per interface hop penalty.

This patch introduces a new, configurable, per hard interface hop penalty
to simplify such setups.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
include/uapi/linux/batman_adv.h
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/hard-interface.c
net/batman-adv/netlink.c
net/batman-adv/types.h