Skip to content

Commit

Permalink
Merge pull request #1358 from kfcripps/1292
Browse files Browse the repository at this point in the history
[#1292] Explicitly state that table entries declared with 'const entries' cannot be assigned numeric priorities
  • Loading branch information
jonathan-dilorenzo authored Feb 3, 2025
2 parents cd94d75 + 4aa2bd8 commit c25a780
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions p4-16/spec/P4-16-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7087,6 +7087,12 @@ order, stopping at the first matching entry. Architectures should
define the significance of entry order (if any) for other kinds of
tables.

Because control-plane APIs cannot insert or remove entries of a table
that is declared with `const entries`, the relative priorities of such a
table's entries are determined solely by the program order of the entries.
Therefore assigning numeric priorities to entries of a table that has
`const entries` is not allowed.

Depending on the `match_kind` of the keys, key set expressions may define
one or multiple entries. The compiler will synthesize the correct number of
entries to be installed in the table. Target constraints may further restrict
Expand Down

0 comments on commit c25a780

Please sign in to comment.