sonic-net / DASH

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

[sai-gen] Parse P4 metadata into SAI spec for lib generation. #576

Closed r12f closed 2 weeks ago

r12f commented 1 month ago

The current SAI spec has all the information for header generation. To simplify the lib generation as well, parse the SAI to P4 info mapping into SAI spec too.

This can simplify the SAI lib templates, as we don't have to do too many checks in the templates anymore.

r12f commented 1 month ago

Hi @marian-pritsak check out the ca to pa spec! : D with this info, we should be able to fix the field id problem for good!

r12f commented 1 month ago

Splitted this change into 2: this one and #577 . Since this change is dependent on #577 , I am making this one a draft for now. Otherwise, this change will be too large to review.