-
Notifications
You must be signed in to change notification settings - Fork 748
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
Configure MTU of ENI and veths to 9001 #210
Conversation
@@ -70,6 +70,8 @@ const ( | |||
// - kube-proxy uses 0x0000c000 | |||
// - Calico uses 0xffff0000. | |||
defaultConnmark = 0x80 | |||
|
|||
ethernetMTU = 9001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here to indicate that 9001 also need to be defined in driver.go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to add comments where MTU is defined.
@@ -44,6 +44,7 @@ const ( | |||
testeniIP = "10.10.10.20" | |||
testeniMAC = "01:23:45:67:89:ab" | |||
testeniSubnet = "10.10.0.0/16" | |||
testMTU = 9001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, can u also add a comment that 9001 needs to be defined in network.go. thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to add comments where MTU is defined.
* Add LinkSetMTU wrapper and mocks * Add call to ENI setup and network test * Change hardcoded veth MTU to 9001
@gtaylor yes, that's how I understand this issue. Only the primary, auto-created NIC gets jumbo frames by default. This code makes it so all NICs get jumbo frames. |
Issue #, if available:
#167
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.