Skip to content

Configure MTU of ENI and veths to 9001#210

Merged
liwenwu-amazon merged 1 commit intoaws:masterfrom
hmizuma:mtu-update-3
Oct 24, 2018
Merged

Configure MTU of ENI and veths to 9001#210
liwenwu-amazon merged 1 commit intoaws:masterfrom
hmizuma:mtu-update-3

Conversation

@hmizuma
Copy link
Copy Markdown

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

// - Calico uses 0xffff0000.
defaultConnmark = 0x80

ethernetMTU = 9001
Copy link
Copy Markdown
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
Copy Markdown
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.

testeniIP = "10.10.10.20"
testeniMAC = "01:23:45:67:89:ab"
testeniSubnet = "10.10.0.0/16"
testMTU = 9001
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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