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

mctpd: Set initial route MTU to interface minimum #51

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

mkj
Copy link
Member

@mkj mkj commented Aug 30, 2024

This allows better compatibility with devices that have a low initial allowed packet size and require application negotiation to increase that packet size.

Previously the MTU was left at 0, so matching the currently set MTU of the device.

@jk-ozlabs
Copy link
Member

Couple of minor things:

Previously the MTU was left at 0, so matching the currently set MTU of the device.

Might be good to clarify this with "link" (or "interface") rather than "device". In the previous paragraph, "device" refers to the remote endpoint.

Could you add a signed-off-by too?

This probably warrants changelog entry as well, as it may trigger application changes.

mkj added a commit that referenced this pull request Aug 30, 2024
This is an attempt to fix
"RuntimeError: Event loop is closed" seen in
#51

Signed-off-by: Matt Johnston <[email protected]>
mkj added 2 commits August 31, 2024 05:33
Initial MTU is set to max_mtu to match the Linux driver.
These are expected in all interfaces reported by the kernel.

Tests will fail without this once mctpd starts using
IFLA_MIN_MTU and IFLA_MAX_MTU.

Signed-off-by: Matt Johnston <[email protected]>
This allows better compatibility with devices that have a low
initial allowed packet size and require application negotiation
to increase that packet size.

Previously the MTU was left at 0, so matching the currently
set MTU of the interface.

Signed-off-by: Matt Johnston <[email protected]>
@mkj mkj force-pushed the pr/initial-min-mtu branch from 81018a1 to 7a33524 Compare August 31, 2024 17:14
@jk-ozlabs jk-ozlabs merged commit 7ad6641 into main Oct 21, 2024
2 checks passed
@jk-ozlabs jk-ozlabs deleted the pr/initial-min-mtu branch October 21, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants