]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
batman-adv: Trigger events for auto adjusted MTU
authorSven Eckelmann <sven@narfation.org>
Wed, 19 Jul 2023 07:29:29 +0000 (09:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:18:17 +0000 (16:18 +0200)
commitcde5a240d72d5f2082f81e5e7998f16dcdcbd335
tree8f8d92ea8bde31ff28655ce130c17e05962a0855
parent22426e1ce679bd80d174fa4874d9a3996dee3290
batman-adv: Trigger events for auto adjusted MTU

commit c6a953cce8d0438391e6da48c8d0793d3fbfcfa6 upstream.

If an interface changes the MTU, it is expected that an NETDEV_PRECHANGEMTU
and NETDEV_CHANGEMTU notification events is triggered. This worked fine for
.ndo_change_mtu based changes because core networking code took care of it.
But for auto-adjustments after hard-interfaces changes, these events were
simply missing.

Due to this problem, non-batman-adv components weren't aware of MTU changes
and thus couldn't perform their own tasks correctly.

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