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

[dash-p4] Refactor incoming packet encap handling and inbound routing stage. #569

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

r12f
Copy link
Collaborator

@r12f r12f commented May 26, 2024

Currently, several stages / tables in DASH directly uses the headers to lookup entries, such as direction. inbound routing, and etc. It it ok currently, because DASH only accepts traffic with a single layer and a single type of encap. However, once we start to handle multiple layers and types of encaps, it will make the pipeline very complicated.

This change refactors the pipeline to add a pre-pipeline stage to preprocess the underlay and overlay data for pipeline lookup and actions, so we can keep the rest of the pipeline more future-proof.

@r12f r12f marked this pull request as draft May 26, 2024 01:24
@r12f r12f force-pushed the user/r12f/inbound-routing branch from fd8f88f to ab5c2be Compare May 28, 2024 23:08
@r12f r12f marked this pull request as ready for review May 28, 2024 23:09
@KrisNey-MSFT
Copy link
Collaborator

Does this need a reviewer @r12f ? Let me know if I can help...

@r12f
Copy link
Collaborator Author

r12f commented May 28, 2024

yea, I have added Marian in the PR. Let's see how it goes.

@r12f
Copy link
Collaborator Author

r12f commented May 28, 2024

Thanks Kristina.

@r12f r12f force-pushed the user/r12f/inbound-routing branch 2 times, most recently from fd54544 to d1f33be Compare June 21, 2024 16:30
@KrisNey-MSFT KrisNey-MSFT added help wanted Extra attention is needed Ready to merge? and removed Ready to merge? help wanted Extra attention is needed labels Jul 10, 2024
@r12f r12f force-pushed the user/r12f/inbound-routing branch 2 times, most recently from bc3dbbf to f843645 Compare July 12, 2024 06:46
Copy link
Collaborator

@marian-pritsak marian-pritsak left a comment

Choose a reason for hiding this comment

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

Looks clean with regards to API.

@KrisNey-MSFT
Copy link
Collaborator

@r12f - looks good to reviewer, if you'd like to take a look

@KrisNey-MSFT
Copy link
Collaborator

@r12f - looks like this has branch conflicts now - we will wait for you to return from your OOF.

@KrisNey-MSFT
Copy link
Collaborator

checking in here @r12f

@r12f r12f force-pushed the user/r12f/inbound-routing branch from f843645 to fa2444a Compare August 30, 2024 04:49
@r12f r12f merged commit 78fca1e into sonic-net:main Aug 30, 2024
4 checks passed
@r12f r12f deleted the user/r12f/inbound-routing branch August 30, 2024 15:59
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.

3 participants