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

SONiC NVGRE Tunnel HLD #869

Merged
merged 71 commits into from
Jan 27, 2022

Conversation

vadymhlushko-mlnx
Copy link
Contributor

@vadymhlushko-mlnx vadymhlushko-mlnx commented Sep 22, 2021

vadymhlushko-mlnx and others added 30 commits August 22, 2021 10:04
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
doc/nvgre_tunnel/nvgre_tunnel.md Outdated Show resolved Hide resolved
doc/nvgre_tunnel/nvgre_tunnel.md Outdated Show resolved Hide resolved
doc/nvgre_tunnel/nvgre_tunnel.md Outdated Show resolved Hide resolved
doc/nvgre_tunnel/nvgre_tunnel.md Outdated Show resolved Hide resolved
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
@liat-grozovik
Copy link
Collaborator

@kperumalbfn could you please help to review and check if your comments were addressed?

@vadymhlushko-mlnx
Copy link
Contributor Author

@venkatmahalingam, do you have more review comments, or you can approve this PR?

@vadymhlushko-mlnx
Copy link
Contributor Author

@kperumalbfn kind reminder, could you please help to review this PR

@vadymhlushko-mlnx
Copy link
Contributor Author

@tzack000, do you have more review comments, or you can approve this PR?

### SAI API

The NVGRE Tunnel feature require at least `SAI 1.9` or above.

Choose a reason for hiding this comment

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

Some aspects of the SAI API in the initial implementation are not described in the HLD. They should be described:

  • SAI_TUNNEL_ATTR_PEER_MODE_P2MP (default)
  • Only decap mapper entries are created, not encap mapper entries

More importantly, the implementation does not conform to normal SAI tunnel usage. While the implementation seems to be focused on decap, there does not seem to be any code creating sai_tunnel_term_table entries. As far as I know the SAI tunnel definitions, I do not believe any packets will be consumed without entries in the sai_tunnel_term_table. Just creation of sai_tunnel objects is not enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the tunnel termination entry type and fixed implementation.
Remove the encap mappers.

Choose a reason for hiding this comment

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

@svshah-intel Please review as well. Thanks.

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
vadymhlushko-mlnx and others added 4 commits December 20, 2021 10:18
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
@liat-grozovik
Copy link
Collaborator

@venkatmahalingam, @tzack000, @mickeyspiegel and @kperumalbfn could you please review and see if your concern is addressed and we can approve this PR?

@venkatmahalingam
Copy link
Collaborator

@venkatmahalingam, @tzack000, @mickeyspiegel and @kperumalbfn could you please review and see if your concern is addressed and we can approve this PR?

Sure, will do this week.

@liat-grozovik
Copy link
Collaborator

@venkatmahalingam any update?

@liat-grozovik liat-grozovik merged commit 9091931 into sonic-net:master Jan 27, 2022
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.

7 participants