[B.A.T.M.A.N.] how to avoid loops, unusual config

2018-05-17 Thread dan
Ok, so I'm trying to mock up a very simple network design and I'm having trouble getting 'out of the box' nodes APU2C4 with 3 ethernet ports all ports ethx native vlan ethx.11 mesh vlan bat0(eth0.11, eth1.11, eth2.11) <- so I can transport the mesh only on configured interfaces and leave the 'na

[B.A.T.M.A.N.] [PATCH v2 2/7] batman-adv: tp_meter - don't check for existing session

2018-05-17 Thread Marek Lindner
From: Antonio Quartulli Since the conversion from kthread to queue worker it is not possible to run more than one "sender" session at a time. For this reason, checking if another session to the same destination is already scheduled is not useful anymore. Remove such check and allow the user to e

[B.A.T.M.A.N.] [PATCH v2 5/7] batman-adv: tp_meter - add option to perform one-hop test

2018-05-17 Thread Marek Lindner
From: Antonio Quartulli A link test is a TP session ran over a specific one-hop link, rather than towards an originator in the mesh. Signed-off-by: Antonio Quartulli --- include/uapi/linux/batadv_packet.h | 2 + net/batman-adv/netlink.c | 2 +- net/batman-adv/routing.c

[B.A.T.M.A.N.] [PATCH v2 3/7] batman-adv: tp_meter - allow up to 10 queued sessions

2018-05-17 Thread Marek Lindner
Signed-off-by: Marek Lindner --- net/batman-adv/main.h | 6 -- net/batman-adv/tp_meter.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 8da3c933..89dfaf87 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/

[B.A.T.M.A.N.] [PATCH v2 7/7] batman-adv: ELP - add throughput meter test duration attribute

2018-05-17 Thread Marek Lindner
When the ELP throughput meter fallback kicks in to trigger a throughput meter measurement the test duration can be configured via this attribute. Default tp test duration: 1000ms Signed-off-by: Marek Lindner --- Documentation/ABI/testing/sysfs-class-net-batman-adv | 7 +++ net/batman-adv/ba

[B.A.T.M.A.N.] [PATCH v2 4/7] batman-adv: tp_meter - add caller distinction

2018-05-17 Thread Marek Lindner
The throughput meter can be called from user space as well as from the batman-adv kernel module itself. Add infrastructure to handle the different callers. Signed-off-by: Marek Lindner --- net/batman-adv/netlink.c | 3 +- net/batman-adv/tp_meter.c | 108 ++

[B.A.T.M.A.N.] [PATCH v2 1/7] batman-adv: tp_meter - prevent concurrent tp_meter sessions by using workqueue

2018-05-17 Thread Marek Lindner
From: Antonio Quartulli To ensure that no more than one tp_meter session runs at the same time, use an ordered workqueue instead of spawning one kthread per session. Signed-off-by: Antonio Quartulli --- net/batman-adv/main.c | 10 - net/batman-adv/tp_meter.c | 77 +++---

[B.A.T.M.A.N.] [PATCH v2 0/7] B.A.T.M.A.N. V - fallback to tp meter estimation if throughput otherwise not available

2018-05-17 Thread Marek Lindner
Under normal circumstances B.A.T.M.A.N. V retrieves the neighbor throughput values to populate its metric tables from the various drivers such as WiFi throughput tables and Ethernet throughput.. Whenever the interface drivers do not export link throughput information manual overrides become necess

[B.A.T.M.A.N.] [PATCH v2 6/7] batman-adv: ELP - use tp meter to estimate the throughput if otherwise not available

2018-05-17 Thread Marek Lindner
Signed-off-by: Marek Lindner --- net/batman-adv/bat_v_elp.c | 63 -- net/batman-adv/bat_v_elp.h | 21 + net/batman-adv/main.h | 1 + net/batman-adv/tp_meter.c | 37 +- net/batman-adv/types.h | 14 + 5 files cha