batman-adv: Bitmap helper and size handling cleanup for aggregations
Get series with b4
b4 am [email protected] change-id 20250202-bitmap_aggregation-dd6046fbc5dcVersions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | batman-adv: Limit number of aggregated packets directlynet/ net/ | +4 | 0 replies | |
| 2/5 | batman-adv: Switch to bitmap helper for aggregation handlingnet/ net/ net/ | +11 | 0 replies | |
| 3/5 | batman-adv: Use actual packet count for aggregated packetsnet/ net/ | +4 | 0 replies | |
| 4/5 | batman-adv: Ignore own maximum aggregation size during RXnet/ net/ | +2 | 0 replies | |
| 5/5 | batman-adv: Limit aggregation size to outgoing MTUnet/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] batman-adv: Bitmap helper and size handling cleanup for aggregations
The B.A.T.M.A.N. IV code enforced a limit on the size of an aggregated OGM packet due to some self written (inline) code to perform bit operations on an simple unsigned integer. The comment which explained this was too vague to really understand the size limitations of the u32 vs. the packet size.
By using the Linux bitmap helpers, it is possible to untangle the maximum number of fragmented packets from the maximum size of an aggregate. Which can make the aggregation code more flexible for tests and maybe better airtime usage in the future.
At the same time, it was noticed that the size handling code was slightly off. For the RX side, the size of the aggregation was limited. And for the TX side, it didn't consider the MTU for the outgoing interface.
---
Sven Eckelmann (5):
batman-adv: Limit number of aggregated packets directly
batman-adv: Switch to bitmap helper for aggregation handling
batman-adv: Use actual packet count for aggregated packets
batman-adv: Ignore own maximum aggregation size during RX
batman-adv: Limit aggregation size to outgoing MTU
net/batman-adv/bat_iv_ogm.c | 43 +++++++++++++++++++++++++------------------ net/batman-adv/bat_v_ogm.c | 3 +-- net/batman-adv/main.h | 4 +--- net/batman-adv/send.c | 2 +- net/batman-adv/types.h | 2 +- 5 files changed, 29 insertions(+), 25 deletions(-)
---
base-commit: dfdce35d69c55b6b5d017a7e800e553089a26eb9
change-id: 20250202-bitmap_aggregation-dd6046fbc5dc
Best regards,
Signature · 1 line
Sven Eckelmann <[email protected]>