]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Consider fragmentation for needed_headroom
authorSven Eckelmann <sven@narfation.org>
Thu, 26 Nov 2020 17:15:06 +0000 (18:15 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 27 Nov 2020 07:02:55 +0000 (08:02 +0100)
commitf72781ff2a8e9b7ec3ccbe217d477f5f2503b41e
tree70cb7a80f5c00dfae2742c4f667cd819c1637291
parent5ea2f0af5bf9c4946d7cad42b856b6600577c6e8
batman-adv: Consider fragmentation for needed_headroom

If a batman-adv packets has to be fragmented, then the original batman-adv
packet header is not stripped away. Instead, only a new header is added in
front of the packet after it was split.

This size must be considered to avoid cost intensive reallocations during
the transmission through the various device layers.

Fixes: 90677c351277 ("batman-adv: Add lower layer needed_(head|tail)room to own ones")
Reported-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c