diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2016-01-16 16:40:14 +0800 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-02-29 16:05:32 +0800 |
commit | 0b5ecc6811bd576ecc9813bbe069f2293cb1c6aa (patch) | |
tree | a75d24c012f6c6ca6ae5fa8904a4eee4e7ed0f98 /net/batman-adv/gateway_common.h | |
parent | 9323158ef9f49935f0c61509919acd31dda8f11b (diff) | |
download | lwn-0b5ecc6811bd576ecc9813bbe069f2293cb1c6aa.tar.gz lwn-0b5ecc6811bd576ecc9813bbe069f2293cb1c6aa.zip |
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>
Diffstat (limited to 'net/batman-adv/gateway_common.h')
-rw-r--r-- | net/batman-adv/gateway_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/gateway_common.h b/net/batman-adv/gateway_common.h index b58346350024..8a5e1ddf1175 100644 --- a/net/batman-adv/gateway_common.h +++ b/net/batman-adv/gateway_common.h @@ -49,5 +49,7 @@ ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv); void batadv_gw_init(struct batadv_priv *bat_priv); void batadv_gw_free(struct batadv_priv *bat_priv); +bool batadv_parse_throughput(struct net_device *net_dev, char *buff, + const char *description, u32 *throughput); #endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */ |