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

MTU fix for cmd-forwarder-vpp#557 #554

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

edwarnicke
Copy link
Member

Signed-off-by: Ed Warnicke [email protected]

}

func setVPPL3MTU(ctx context.Context, conn *networkservice.Connection, vppConn api.Connection, isClient bool) error {
func setVPPMTU(ctx context.Context, conn *networkservice.Connection, vppConn api.Connection, isClient bool) error {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abandon setting the LinkMTU entirely as it no longer works remotely as expected.

This appears to be due to changes in VPP driven by changes in DPDK on MTU handling no longer following 802.3 on MTU handling.

// inner ethernet header - 14 bytes
// optional overhead for 802.1q vlan tags - 4 bytes
// total - 74 bytes
return 74
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctly handle overhead for VXLAN (previously we'd only been handling for IPv4 with no available overhead for 802.1q tags).

// 8-byte nonce
// 16-byte authentication tag
// 80 bytes total
return 80
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctly handle overhead for IPv4 case for wireguard.

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes are looking good.

@glazychev-art I think it'd be interested to look at these changes for you.

@denis-tingaikin denis-tingaikin merged commit dc652f0 into networkservicemesh:main Apr 11, 2022
nsmbot pushed a commit to networkservicemesh/cmd-nsc-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-firewall-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-icmp-responder-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vl3-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vlan-vpp that referenced this pull request Apr 11, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#554

Commit: dc652f0
Author: Ed Warnicke
Date: 2022-04-11 13:50:40 -0500
Message:
  - MTU fix for cmd-forwarder-vpp#557 (#554)
Signed-off-by: NSMBot <[email protected]>
ljkiraly added a commit to Nordix/nsm-sdk-vpp that referenced this pull request Apr 12, 2022
Issue: networkservicemesh/cmd-forwarder#557
Related PR: networkservicemesh#554

The L3 MTU is set based on link L2 mtu and should not modified.

Signed-off-by: Laszlo Kiraly <[email protected]>
edwarnicke pushed a commit that referenced this pull request Apr 12, 2022
Issue: networkservicemesh/cmd-forwarder#557
Related PR: #554

The L3 MTU is set based on link L2 mtu and should not modified.

Signed-off-by: Laszlo Kiraly <[email protected]>
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