Skip to content

Commit e03366e

Browse files
Simon Wunderlichordex
authored andcommitted
batman-adv: increase default hop penalty
The default hop penalty is currently set to 15, which is applied like that for multi interface devices (e.g. dual band APs). Single band devices will still use an effective penalty of 30 (hop penalty + wifi penalty). After receiving reports of too long paths in mesh networks with dual band APs which were fixed by increasing the hop penalty, we'd like to suggest to increase that default value in the default setting as well. We've evaluated that increase in a handful of medium sized mesh networks (5-20 nodes) with single and dual band devices, with changes for the better (shorter routes, higher throughput) or no change at all. This patch changes the hop penalty to 30, which will give an effective penalty of 60 on single band devices (hop penalty + wifi penalty). Signed-off-by: Simon Wunderlich <simon@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
1 parent 23c4ec1 commit e03366e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/batman-adv/soft-interface.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ static int batadv_softif_init_late(struct net_device *dev)
751751
atomic_set(&bat_priv->gw.bandwidth_down, 100);
752752
atomic_set(&bat_priv->gw.bandwidth_up, 20);
753753
atomic_set(&bat_priv->orig_interval, 1000);
754-
atomic_set(&bat_priv->hop_penalty, 15);
754+
atomic_set(&bat_priv->hop_penalty, 30);
755755
#ifdef CONFIG_BATMAN_ADV_DEBUG
756756
atomic_set(&bat_priv->log_level, 0);
757757
#endif

0 commit comments

Comments
 (0)