-
Notifications
You must be signed in to change notification settings - Fork 445
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
p4c-bm2-ss compiler bug: could not convert Checksum16 to Json #741
Comments
The documentation is really lacking, indeed. |
I was running a test case yesterday with someone using v1model.p4 using the 2017-Jun-19 latest versions of p4c-bm2-ss and p4lang/behavioral-model's simple_switch, and it seems that nothing in the verifyCheckum and updateChecksum controls is executed in simple_switch. Not 100% sure, but we had some evidence pointing that way. |
Actually bmv2 now logs an error message if a packet has an invalid checksum, but does not drop the packet. This was implemented a couple months ago. |
I hope that the new checksum APIs in v1model make this a non-issue, |
I wrote the following program to try out the Checksum16 extern: checksum.p4.txt
But p4c-bm2-ss says:
Is Checksum16 supported in p4c-bm2-ss? If not, I would expect to see some remark about that in the documentation and a better error message from the compiler.
The text was updated successfully, but these errors were encountered: