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)
commit3bda14d09dc5789a895ab02b7dcfcec19b0a65b3
tree2f10916db38855a459d381cfc00c0eeecb0ada66
parentbccb48c89fe3c09f1cbb7c8612e31f5daa1d4541
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