p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
670 stars 441 forks source link

Minor fix-ups to support for tables with initial entries and their P4Runtime API output files #4016

Open jafingerhut opened 1 year ago

jafingerhut commented 1 year ago

I approved of PR https://github.com/p4lang/p4c/pull/3748 because I think it is a good significant start at a full implementation of tables with entries without const before entries, and I preferred having something that is nearly complete merged in sooner, and make minor additions or fixes to it later, because I do not know how long it will take for the P4 API work group to finalize their decisions on those details.

See https://github.com/p4lang/p4runtime/issues/426 for the issue on the P4Runtime API specification. When that issue is resolved, this one should be revisited.

The minor issues that I know of that remain are:

jafingerhut commented 1 year ago

Also create a PTF test that verifies:

For a table with const entries:

For a table with const default_action

For a table with entries without const before entries:

jafingerhut commented 1 year ago

PR https://github.com/p4lang/p4c/pull/4080 has been merged now, which is significant progress on completing this issue.

What remains to be done: