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

[sai-gen] Update SAI specs to have more p4 meta info #647

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

jimmyzhai
Copy link
Collaborator

This PR updates p4 meta of sai api to include table keys and action params in detail.
It will be the single truth to generate sai api implementation later.

@r12f r12f self-requested a review December 5, 2024 07:05
Copy link
Collaborator

@r12f r12f left a comment

Choose a reason for hiding this comment

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

looks straight forward enough and does contains a good amount of the info that we need to generate the dash libsai. thanks Junhua!

@r12f r12f merged commit 3013f33 into sonic-net:main Dec 6, 2024
4 checks passed
KrisNey-MSFT pushed a commit that referenced this pull request Dec 11, 2024
Base on #647, refactor the
templates of libsai implementation
to make it more readable and maintainable. It replaces one single
template `saiapi.cpp.j2` with several
small templates under directory `SAI/templates/impls`.

The changes will not change any generated cpp code for sai api
implementation:
```
junhuazhai@junhuazhai-dev-vm:~/workspace/DASH/dash-pipeline$ diff -Nur -x '*.[od]' ~/DASH/dash-pipeline/SAI/lib/ SAI/lib
junhuazhai@junhuazhai-dev-vm:~/workspace/DASH/dash-pipeline$
```
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.

2 participants