summaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/sysfs-class-net-mesh
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@ascom.ch>2010-11-22 00:55:55 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-29 11:09:11 -0800
commit1341a00ad356dfb21978ce4e5e979024558042d2 (patch)
tree8c1ec6ca2d0ee6cd6f25a2dcb69a1ab9d8667e9e /drivers/staging/batman-adv/sysfs-class-net-mesh
parent1623948f879069b33d07986aa95e3b9969322ff4 (diff)
Staging: batman-adv: Make hop_penalty configurable via sysfs
When having a mixed topology of both very mobile and rather static nodes, you are usually best advised to set the originator interval on all nodes to a level best suited for the most mobile node. However, if most of the nodes are rather static, this can create a lot of undesired overhead as a trade-off then. If setting the interval too low on the static nodes, a mobile node might be chosen as a router for too long, not switching away from it fast enough because of its mobility and the low frequency of ogms of static nodes. Exposing the hop_penalty is especially useful for the stated scenario: A static node can keep the default originator interval, a mobile node can select a quicker one resulting in faster route updates towards this mobile node. Additionally, such a mobile node could select a higher hop penalty (or even set it to 255 to disable acting as a router for other nodes) to make it less desirable, letting other nodes avoid selecting this mobile node as a router. Signed-off-by: Linus Lüssing <linus.luessing@ascom.ch> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/sysfs-class-net-mesh')
-rw-r--r--drivers/staging/batman-adv/sysfs-class-net-mesh7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/sysfs-class-net-mesh b/drivers/staging/batman-adv/sysfs-class-net-mesh
index b4cdb6038bf..bd20e14261c 100644
--- a/drivers/staging/batman-adv/sysfs-class-net-mesh
+++ b/drivers/staging/batman-adv/sysfs-class-net-mesh
@@ -29,6 +29,13 @@ Description:
Defines the interval in milliseconds in which batman
sends its protocol messages.
+What: /sys/class/net/<mesh_iface>/mesh/hop_penalty
+Date: Oct 2010
+Contact: Linus Lüssing <linus.luessing@web.de>
+Description:
+ Defines the penalty which will be applied to an
+ originator message's tq-field on every hop.
+
What: /sys/class/net/<mesh_iface>/mesh/vis_mode
Date: May 2010
Contact: Marek Lindner <lindner_marek@yahoo.de>