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

Fix control-plane generation for headers containing structs #3331

Merged
merged 1 commit into from
May 17, 2022

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu mbudiu@vmware.com
Fixes #3329

Signed-off-by: Mihai Budiu <mbudiu@vmware.com>
@mihaibudiu
Copy link
Contributor Author

I will amend the test to check for generic structs too.

Copy link
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

You don't have to add a generic struct to the test if not needed, I realized that I was testing the wrong thing in #3329 :) Headers are always flattened, while I want to see how P4Info generation handles generic structs for things like digests. I'll write a new test.

@@ -0,0 +1,81 @@
/*
Copyright 2019 Cisco Systems, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to change this?

@mihaibudiu mihaibudiu merged commit 6c9bc73 into p4lang:main May 17, 2022
@mihaibudiu mihaibudiu deleted the issue3329 branch May 17, 2022 00:05
@antoninbas
Copy link
Member

Thanks for the fix @mbudiu-vmw !

github-sajan pushed a commit to github-sajan/p4c that referenced this pull request May 26, 2022
)

Signed-off-by: Mihai Budiu <mbudiu@vmware.com>
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.

P4Runtime generation does not support generic structs
2 participants