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

Set the same MTU for the NSC internal interface as the base interface #515

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

ljkiraly
Copy link
Contributor

@ljkiraly ljkiraly commented Mar 8, 2022

Closes: #514

Signed-off-by: Laszlo Kiraly [email protected]

@@ -35,6 +38,9 @@ const (
)

func setVPPL2MTU(ctx context.Context, conn *networkservice.Connection, vppConn api.Connection, isClient bool) error {
if vlan.ToMechanism(conn.GetMechanism()) != nil {
return nil
}
Copy link
Member

Choose a reason for hiding this comment

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

Could you help me to understand this... I don't quite follow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @edwarnicke,
The forwarder is the client on a VLAN remote mechanism connection. The mechanism/vlan/mtu chain client fetch the MTU of the sub-interface and set its value in ConnectionContext. The Connectioncontext client chain element should not set any MTU value since it's fetched from this interface and is already set (more than that in case of VLAN remote mechanism the API call will fail since the sub-interface is not a hw-interface).

I moved this statement to pkg/networkservice/connectioncontext/mtu/client.go.

@edwarnicke edwarnicke merged commit 10353b8 into networkservicemesh:main Mar 14, 2022
nsmbot pushed a commit to networkservicemesh/cmd-nse-icmp-responder-vpp that referenced this pull request Mar 14, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-firewall-vpp that referenced this pull request Mar 14, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-vpp that referenced this pull request Mar 14, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request Mar 14, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vlan-vpp that referenced this pull request Mar 14, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>
denis-tingaikin pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request Mar 14, 2022
* Update go.mod and go.sum to latest version from networkservicemesh/sdk-vpp@main
PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
  - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>

* Update vpp image version

Signed-off-by: Artem Glazychev <[email protected]>

Co-authored-by: NSMBot <[email protected]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Mar 14, 2022
…d-forwarder-vpp@main

PR link: networkservicemesh/cmd-forwarder-vpp#520

Commit: 86c33ca
Author: Artem Glazychev
Date: 2022-03-14 23:33:40 +0700
Message:
  - Update vpp image version (#520)
* Update go.mod and go.sum to latest version from networkservicemesh/sdk-vpp@main
PR link: networkservicemesh/sdk-vpp#515

Commit: 10353b8
Author: Laszlo Kiraly
Date: 2022-03-14 16:01:53 +0100
Message:
    - Set the same MTU for the NSC internal interface as the base interface has (#515)
Closes: #514
Signed-off-by: NSMBot <[email protected]>

* Update vpp image version

Signed-off-by: Artem Glazychev <[email protected]>
Signed-off-by: NSMBot <[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.

Set the same MTU for the NSC internal interface as the base interface has
2 participants