]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
batman-adv: Don't increase MTU when set by user
authorSven Eckelmann <sven@narfation.org>
Wed, 19 Jul 2023 08:01:15 +0000 (10:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:23:15 +0000 (16:23 +0200)
commit7c09590883665bb6645deb3e33cab2c2eb2e1aa7
treedaf0b2cc228ae09915e57c0c7099c7a66ff19432
parent480f2a129d8d38c352f520bc9412cf1aa746ac22
batman-adv: Don't increase MTU when set by user

commit d8e42a2b0addf238be8b3b37dcd9795a5c1be459 upstream.

If the user set an MTU value, it usually means that there are special
requirements for the MTU. But if an interface gots activated, the MTU was
always recalculated and then the user set value was overwritten.

The only reason why this user set value has to be overwritten, is when the
MTU has to be decreased because batman-adv is not able to transfer packets
with the user specified size.

Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol")
Cc: stable@vger.kernel.org
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c
net/batman-adv/types.h