[PATCH batadv v3 0/2] batman-adv: tp_meter: post fixes cleanups
Sven Eckelmann <[email protected]>
| Newsgroups | org.open-mesh.lists.batman |
|---|---|
| Message-ID | <[email protected]> |
After most of the problems regarding the role confusion were fixed, we should use the opportunity to split the variables completly. This can prevent some of the confusions and at the same time reduce the memory consumption significantly. Since the sender variables are separated from the rest, also clean up the congestion control code. Make sure that everything is in short blocks which ensure that the reader is aware of the locking and the results of the calculation. Which also means that the actions (sending) are extracted from the congestion control code. Signed-off-by: Sven Eckelmann <[email protected]> --- Changes in v3: - rebase patches - fix receiver cleanup "put" - add patch to cleanup the congestion control locking - Link to v2: https://patch.msgid.link/[email protected] Changes in v2: - fix send_result kernel-doc - rebase patch - add patch to avoid role mixup in search functions - add patch to split sender and receiver sessions - Link to v1: https://patch.msgid.link/[email protected] --- Sven Eckelmann (2): batman-adv: tp_meter: split vars into sender and receiver types batman-adv: tp_meter: consolidate congestion control variables net/batman-adv/main.c | 3 +- net/batman-adv/tp_meter.c | 721 +++++++++++++++++++++++++++------------------- net/batman-adv/types.h | 145 +++++----- 3 files changed, 501 insertions(+), 368 deletions(-) --- base-commit: ec9f686b42917e9b67725d7245b50de72f59fa9e change-id: 20260513-tp-reason-missing-f1aa51f3f374 Best regards, -- Sven Eckelmann <[email protected]>