[0/2] batman-adv: Fix MTU handling

Message ID 20230719-mtu-v1-0-48fd024f0f56@narfation.org
Headers
Series batman-adv: Fix MTU handling |

Message

Sven Eckelmann July 19, 2023, 8:15 a.m. UTC
  It was noticed (while proposing a starting point/patch for
https://www.open-mesh.org/issues/365 ) that the auto-adjusting MTU handling
in batman-adv looks rather odd.

* events for pre-MTU change and (post) MTU change were not triggered for an
  auto-adjust
* user set (lower) MTUs were always overwritten when a hard-interface
  became active

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
Sven Eckelmann (2):
      batman-adv: Trigger events for auto adjusted MTU
      batman-adv: Don't increase MTU when set by user

 net/batman-adv/hard-interface.c | 14 +++++++++++++-
 net/batman-adv/soft-interface.c |  3 +++
 net/batman-adv/types.h          |  6 ++++++
 3 files changed, 22 insertions(+), 1 deletion(-)
---
base-commit: 8924adbdf993cd0521f9d0024b43e3b23af5114f
change-id: 20230719-mtu-e5ff71c6dd77

Best regards,