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

Emit bitwidths of P4 fields #46

Closed
pudelkoM opened this issue Aug 17, 2020 · 1 comment · Fixed by #76
Closed

Emit bitwidths of P4 fields #46

pudelkoM opened this issue Aug 17, 2020 · 1 comment · Fixed by #76

Comments

@pudelkoM
Copy link
Member

pudelkoM commented Aug 17, 2020

gen-p4-constants.py should emit constants for the bitwidths of P4 fields and headers, so we can remove stuff like this:

ccascone added a commit that referenced this issue Sep 22, 2020
By using auto-generate bitwidth constants

Closes #46
@ccascone
Copy link
Member

Bitwidth for header fields are not needed since the onos core takes care of reading them from the p4info when translating/building table entries. I added support for emitting bitwidth constants for controller packet metadata, since the onos core doesn't do any translation for packet in/out operations.

ccascone added a commit that referenced this issue Sep 22, 2020
By using auto-generate bitwidth constants

Closes #46
bocon13 pushed a commit that referenced this issue Dec 7, 2020
By using auto-generate bitwidth constants

Closes #46
bocon13 pushed a commit that referenced this issue Dec 7, 2020
By using auto-generate bitwidth constants

Closes #46
bocon13 pushed a commit that referenced this issue Dec 8, 2020
By using auto-generate bitwidth constants

Closes #46
bocon13 pushed a commit that referenced this issue Dec 8, 2020
By using auto-generate bitwidth constants

Closes #46
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 a pull request may close this issue.

2 participants