-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
@@ -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 | |||
} |
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.
Could you help me to understand this... I don't quite follow.
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.
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.
… has Closes: networkservicemesh#514 Signed-off-by: Laszlo Kiraly <[email protected]>
…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]>
…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]>
…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]>
…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]>
…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]>
* 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]>
…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]>
Closes: #514
Signed-off-by: Laszlo Kiraly [email protected]