Skip to content

B.A.T.M.A.N. V - fallback to tp meter estimation if throughput otherwise not available

Marek Lindner batman 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 3 repliesIn review
  2. v47 patches 0 repliesSuperseded
  3. v37 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches19 repliesSuperseded
v1 RFC6 patches1 replySuperseded

Changes in v5 from the cover letter

* fix tp_vars refcount on queue_work() failure
* squash batadv_tp_start_work() into batadv_tp_start()

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7batman-adv: tp_meter - prevent concurrent tp_meter sessions by using workqueuenet/batman-adv/main.c net/batman-adv/tp_meter.c net/batman-adv/tp_meter.h +1 more+60 -520 replies
2/7batman-adv: tp_meter - don't check for existing sessionnet/batman-adv/tp_meter.c+1 -180 replies
3/7batman-adv: tp_meter - allow up to 10 queued sessionsnet/batman-adv/main.h net/batman-adv/tp_meter.c+6 -40 replies
4/7batman-adv: tp_meter - add caller distinctionnet/batman-adv/netlink.c net/batman-adv/tp_meter.c net/batman-adv/tp_meter.h +1 more+79 -480 replies
5/7batman-adv: tp_meter - add option to perform one-hop testinclude/uapi/linux/batadv_packet.h net/batman-adv/netlink.c net/batman-adv/routing.c +3 more+167 -830 replies
6/7batman-adv: ELP - use tp meter to estimate the throughput if otherwise not availablenet/batman-adv/bat_v_elp.c net/batman-adv/bat_v_elp.h net/batman-adv/main.h +2 more+133 -111 reply
7/7batman-adv: ELP - add throughput meter test duration attributeDocumentation/ABI/testing/sysfs-class-net-batman-adv net/batman-adv/bat_v.c net/batman-adv/bat_v_elp.c +2 more+18 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

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

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 necessary. To further automate and thus better support these setups, ELP may call the batman-adv throughput meter to schedule a throughput estimation to be used to populate the metric table.

v5:
* fix tp_vars refcount on queue_work() failure
* squash batadv_tp_start_work() into batadv_tp_start()

v4:
* read tp measurement result only once

v3:
* fix ELP tp meter result computation
* use batadv_has_timed_out() instead of custom implementation
* set ELP tp meter test duration to 1000ms in patch #6
* add comment explaining periodic scheduling

v2:
* added sysfs attribute to configure tp meter test duration
* fixed null pointer dereference in TP meter packet sending routine
* fixed storing the measured throughput in the correct variable
* checkpatch/kerneldoc/sparse/smatch cleanup

Antonio Quartulli (3):
batman-adv: tp_meter - prevent concurrent tp_meter sessions by using
workqueue
batman-adv: tp_meter - don't check for existing session
batman-adv: tp_meter - add option to perform one-hop test

Marek Lindner (4):
batman-adv: tp_meter - allow up to 10 queued sessions
batman-adv: tp_meter - add caller distinction
batman-adv: ELP - use tp meter to estimate the throughput if otherwise
not available
batman-adv: ELP - add throughput meter test duration attribute

 .../ABI/testing/sysfs-class-net-batman-adv    |   7 +
 include/uapi/linux/batadv_packet.h            |   2 +
 net/batman-adv/bat_v.c                        |   1 +
 net/batman-adv/bat_v_elp.c                    |  69 ++-
 net/batman-adv/bat_v_elp.h                    |  21 +
 net/batman-adv/main.c                         |  10 +-
 net/batman-adv/main.h                         |   7 +-
 net/batman-adv/netlink.c                      |   3 +-
 net/batman-adv/routing.c                      |   6 +-
 net/batman-adv/sysfs.c                        |   3 +
 net/batman-adv/tp_meter.c                     | 484 +++++++++++-------
 net/batman-adv/tp_meter.h                     |  11 +-
 net/batman-adv/types.h                        |  36 ++
 13 files changed, 453 insertions(+), 207 deletions(-)
Signature · 1 line
2.18.0