Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[25.0 backport] libnet: bridge: ignore EINVAL when configuring bridge MTU #47311

Merged

Commits on Feb 2, 2024

  1. libnet: bridge: ignore EINVAL when configuring bridge MTU

    Since 964ab71, we explicitly set the bridge MTU if it was specified.
    Unfortunately, kernel <v4.17 have a check preventing us to manually set
    the MTU to anything greater than 1500 if no links is attached to the
    bridge, which is how we do things -- create the bridge, set its MTU and
    later on, attach veths to it.
    
    Relevant kernel commit: torvalds/linux@804b854
    
    As we still have to support CentOS/RHEL 7 (and their old v3.10 kernels)
    for a few more months, we need to ignore EINVAL if the MTU is > 1500
    (but <= 65535).
    
    Signed-off-by: Albin Kerouanton <albinker@gmail.com>
    (cherry picked from commit 89470a7)
    Signed-off-by: Albin Kerouanton <albinker@gmail.com>
    akerouanton committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    7a65904 View commit details
    Browse the repository at this point in the history