-
Notifications
You must be signed in to change notification settings - Fork 664
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
lag MTU setting fix - fix for #18695 #3300
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
Signed-off-by: matiAlfaro <[email protected]>
sorry, I am not sure how to check it. which version do I download from the pipeline? |
@mbze430 - pipeline doesn't build image for this. |
Hi @prsunny @qiluo-msft, could you please review, |
@matiAlfaro @prsunny @qiluo-msft Once merged can you raise a PR for other builds? like 202311? |
Do we want to support setting MTU on portchannel? |
I would advice against adding configuration to portchannel, this adds complexity, for example
|
ok, i thought this PR is adding configuration to portchannel to set mtu |
I think this is crucial to have. Even a single link end to end have the ability to define MTU size, why shouldn't a portchannel be allowed to define a MTU size to optimize packet transmission. Specially for devices and applications that support different jumbo frame size. |
I understand what you are saying, and it is worth looking into. |
@matiAlfaro can you explain to me what exactly your solution is? My assumption right now is that the portchannel's MTU will be set to the first Eithernet port becomes the member of a portchannel? ex: if Ethernet102 is set to MTU 5120 when creating "PortChannel001" and adding Ethernet102 to PortChannel001 it will automatically make PortChannel001 MTU 5120? If that is the case, that is fine.... for now.. But if in the future PortChannel001 needs to be change to say 9216. It would be a BIG hassle to remove all the Ethernet ports in the PortChannel001 and re do everything, specially if there are like 3+ Ethernet ports. Hope that make sense |
@mbze430, yes - that's what I'm suggesting. |
What I did
Fix for #18695
How I did it
When creating PortChannel, don't set MTU
MTU is set according to first port inserted to PortChannel.
When last port is removed, set PortChannel MTU back to None
How to verify it
Tested with new test added to UT
Previous command output (if the output of a command-line utility has changed)
Before this fix, you were not able to add to PortChannel a port with MTU !- 9100 (hard coded)
New command output (if the output of a command-line utility has changed)
PortChannel MTU will be determined according to first port inserted into PortChannel