History

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.

Linus Lüssing committed 6 years ago

Commit 3bda14d1 parent bccb48c6 files · +40 −13Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/batman_adv.h+2−1
@@ -427,7 +427,8 @@ enum batadv_nl_attrs { · 426 unmodified lines
427427
428428 /**
429429 * @BATADV_ATTR_HOP_PENALTY: defines the penalty which will be applied
430− * to an originator message's tq-field on every hop.
430+ * to an originator message's tq-field on every hop and/or per
431+ * hard interface
431432 */
432433 BATADV_ATTR_HOP_PENALTY,
433434