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

Add generic structs to P4Runtime digest example #3332

Conversation

antoninbas
Copy link
Member

To show how they are represented in the P4Info.

To show how they are represented in the P4Info.
@antoninbas antoninbas requested a review from mihaibudiu May 16, 2022 23:25
@onf-cla-manager
Copy link

Hi @antoninbas, this is the ONF bot 🤖 I'm glad you want to contribute to our projects! However, before accepting your contribution, we need to ask you to sign a Contributor License Agreement (CLA). You can do it online, it will take only a few minutes:

✒️ 👉 https://cla.opennetworking.org

After signing, make sure to add your Github user ID antoninbas to the agreement.

For more information or help:"
https://wiki.opennetworking.org/x/BgCUI

bit<32> f;
}

@name("s3_t") struct s3_t_0 {
Copy link
Member Author

Choose a reason for hiding this comment

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

@mbudiu-vmw I don't know if that was discussed at the time of adding generic structs, but this is a bit problematic. It's easy to shoot yourself in the foot as all generated structs will have the same annotation, and the P4Info will actually remove all of the conflicting definitions save for one (so the P4Info will be incorrect).

Copy link
Contributor

Choose a reason for hiding this comment

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

no, the interaction between generic structs and the control plane was never discussed.

@mihaibudiu mihaibudiu merged commit ee419ee into p4lang:main May 17, 2022
github-sajan pushed a commit to github-sajan/p4c that referenced this pull request May 26, 2022
To show how they are represented in the P4Info.
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