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

pkg/node: Skip setting MTU on local node routes #14679

Merged
merged 1 commit into from Jan 21, 2021

Commits on Jan 21, 2021

  1. pkg/node: Skip setting MTU on local node routes

    Previously, we were setting mtu on local node routes, which takes effect in
    routing in recent kernels. This could lead to drops for jumbo packets when the
    "Don't fragment" bit is set. Regardless of the kernel routing, we shouldn't
    restrict mtu on the host local routes.
    
    This fix avoids setting an mtu on local node routes (i.e., when
    enable-local-node flag is enabled).
    
    Testing -
    
    kubectl get node k8s1 -o json | jq .spec.podCIDR
    "10.16.0.0/16"
    
    Before:
    
    10.16.0.0/16 via 10.16.213.171 dev cilium_host src 10.16.213.171 mtu 1450
    
    After:
    
    10.16.0.0/16 via 10.16.213.171 dev cilium_host src 10.16.213.171
    
    Signed-off-by: Aditi Ghag <aditi@cilium.io>
    aditighag committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    729feaf View commit details
    Browse the repository at this point in the history