sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
77 stars 88 forks source link

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

Open r12f opened 1 month ago

r12f commented 1 month ago

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.

KrisNey-MSFT commented 1 month ago

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

r12f commented 1 month ago

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

r12f commented 1 month ago

Thanks Kristina.