Skip to content
Snippets Groups Projects
Commit ca06af95 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Frieder Schrempf
Browse files

batman-adv: Don't increase MTU when set by user


commit d8e42a2b 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: c6c8fea2 ("net: Add batman-adv meshing protocol")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 527e0437
No related branches found
No related tags found
1 merge request!101🤖 Sync Bot: Update v5.10-ktn to Latest Stable Kernel (v5.10.194)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment