diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2015-11-10 18:51:22 +0100 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-02-29 16:25:07 +0800 |
commit | 8d2d499e08145d9851097e1241ef15aad8c9170a (patch) | |
tree | 02d3b8e088dbd3eefb48b67745efac068fa02581 /net/batman-adv/main.h | |
parent | c833484e5f3872a38fe232c663586069d5ad9645 (diff) | |
download | linux-8d2d499e08145d9851097e1241ef15aad8c9170a.tar.gz linux-8d2d499e08145d9851097e1241ef15aad8c9170a.tar.bz2 linux-8d2d499e08145d9851097e1241ef15aad8c9170a.zip |
batman-adv: ELP - send unicast ELP packets for throughput sampling
In case of an unused wireless link, the mac80211 throughput estimation
won't get updated further. Consequently, the reported throughput metric
will become obsolete.
With this patch unicast sampling is introduced by periodically sending
unicast ELP packets to each neighbor on idle WiFi links. These sampling
packets will fill an entire frame, so that the measurement is as
reliable as possible
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 5c68bf2618c7..878c35974845 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -63,6 +63,9 @@ /* B.A.T.M.A.N. V */ #define BATADV_THROUGHPUT_DEFAULT_VALUE 10 /* 1 Mbps */ +#define BATADV_ELP_PROBES_PER_NODE 2 +#define BATADV_ELP_MIN_PROBE_SIZE 200 /* bytes */ +#define BATADV_ELP_PROBE_MAX_TX_DIFF 100 /* milliseconds */ #define BATADV_ELP_MAX_AGE 64 #define BATADV_OGM_MAX_ORIGDIFF 5 #define BATADV_OGM_MAX_AGE 64 |