]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: ELP - compute the metric based on the estimated throughput
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 10 Nov 2015 17:50:51 +0000 (18:50 +0100)
committerAntonio Quartulli <a@unstable.cc>
Mon, 29 Feb 2016 08:25:06 +0000 (16:25 +0800)
commit2807c2a3c5a6ca954041eb7b24a3c72b7585663b
treed4ab62093f50a411de1fb0ed6bef90634fbe61b1
parent9676787c5fa85e6e560536c87119c7b7cc36822d
batman-adv: ELP - compute the metric based on the estimated throughput

In case of wireless interface retrieve the throughput by
querying cfg80211. To perform this call a separate work
must be scheduled because the function may sleep and this
is not allowed within an RCU protected context (RCU in this
case is used to iterate over all the neighbours).

Use ethtool to retrieve information about an Ethernet link
like HALF/FULL_DUPLEX and advertised bandwidth (e.g.
100/10Mbps).

The metric is updated each time a new ELP packet is sent,
this way it is possible to timely react to a metric
variation which can imply (for example) a neighbour
disconnection.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/Kconfig
net/batman-adv/bat_v.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_elp.h
net/batman-adv/bat_v_ogm.c
net/batman-adv/main.h
net/batman-adv/types.h