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

fix: default linux vrf device mtu for latest linux kernels #1824

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

VladoLavor
Copy link
Collaborator

@VladoLavor VladoLavor commented Nov 9, 2021

Default mtu for vrf is set to 65536. The value was changed in recent linux kernels
to 65535 (ETH_MAX_MTU) + size of IPv6 header (40 octets) resulting in mtu 65575.
The latest kernel sets this value by default.

I don't know the exact kernel version where the change has taken place, but it was
somewhere between 5.11.0-27-generic to 5.11.0-37-generic (tested empirically).

More info here: https://www.spinics.net/lists/stable/msg476226.html

Without the patch, resync modifies MTU (from linux-default to agent-default) without
change in the data. The patch causes that both values are considered as default in case
the new MTU is undefined.

Added simple example to localclient-linux testing vrf device.

Signed-off-by: Vladimir Lavor vlavor@cisco.com

Default mtu for vrf is set to 65536. The value was changed in recent linux kernels
to 65535 (ETH_MAX_MTU) + size of IPv6 header (40 octets) resulting in mtu 65575.
Latest kernel sets this value by default.

I don't know the exact kernel version where the change has taken place, but it was
somewhere between  5.11.0-27-generic to 5.11.0-37-generic (tested empirically).

More info here: https://www.spinics.net/lists/stable/msg476226.html

The patch causes that both values are considered as default in case the new MTU is
undefined.

Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
@ondrej-fabry ondrej-fabry merged commit 9b1bdfa into ligato:master Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants