batman-adv: add throughput override attribute to hard_ifaces
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 16 Jan 2016 08:40:14 +0000 (16:40 +0800)
committerAntonio Quartulli <a@unstable.cc>
Mon, 29 Feb 2016 08:05:32 +0000 (16:05 +0800)
commit0b5ecc6811bd576ecc9813bbe069f2293cb1c6aa
treea75d24c012f6c6ca6ae5fa8904a4eee4e7ed0f98
parent9323158ef9f49935f0c61509919acd31dda8f11b
batman-adv: add throughput override attribute to hard_ifaces

This attribute is exported to user space to disable the link
throughput auto-detection by setting a fixed value.
The throughput override value is used when batman-adv is
computing the link throughput towards a neighbour.

If the value is set to 0 then batman-adv will try to detect
the throughput by itself.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Documentation/ABI/testing/sysfs-class-net-batman-adv
net/batman-adv/bat_v.c
net/batman-adv/gateway_common.c
net/batman-adv/gateway_common.h
net/batman-adv/sysfs.c
net/batman-adv/types.h