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

Configure MTU of ENI and veths to 9001 #210

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

hmizuma
Copy link
Contributor

@hmizuma hmizuma commented Oct 23, 2018

Issue #, if available:
#167

Description of changes:

  • Add LinkSetMTU wrapper and mocks
  • Add LinkSetMTU call to ENI setup and network test
  • Change hardcoded veth MTU to 9001

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -70,6 +70,8 @@ const (
// - kube-proxy uses 0x0000c000
// - Calico uses 0xffff0000.
defaultConnmark = 0x80

ethernetMTU = 9001
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor Author

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
@liwenwu-amazon liwenwu-amazon merged commit 74ecf61 into aws:master Oct 24, 2018
@xrl
Copy link

xrl commented Nov 26, 2018

@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.

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.

4 participants