]> www.infradead.org Git - users/jedix/linux-maple.git/commit
batman-adv: Limit aggregation size to outgoing MTU
authorSven Eckelmann <sven@narfation.org>
Sun, 2 Feb 2025 16:04:14 +0000 (17:04 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 22 Feb 2025 10:36:26 +0000 (11:36 +0100)
commite4aa3412f632c70276b770fb3efb5b441c11f607
tree524dde569e9f0cba186be409b8cadd99b35a2e9d
parent0db110059e7900c3c197281e2ed11ff08484e3ed
batman-adv: Limit aggregation size to outgoing MTU

If a B.A.T.M.A.N. IV aggregated OGM was prepared, it was always assumed
that 512 bytes (BATADV_MAX_AGGREGATION_BYTES) can be transmitted. But the
outgoing MTU might be too small for these 512 bytes and the aggregation
size must be adjusted in this case. Otherwise, the aggregates will cause
unnecessary packet loss.

For now, the non-aggregated packet length is not touched.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_iv_ogm.c