Skip to content

Commit

Permalink
Explicitly state that entries declared with 'const entries' cannot be…
Browse files Browse the repository at this point in the history
… assigned numeric priorities

Signed-off-by: kfcripps <kyle@pensando.io>
  • Loading branch information
kfcripps committed Jan 21, 2025
1 parent a45fd71 commit 4aa2bd8
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 4aa2bd8

Please sign in to comment.