Skip to content

Commit c25a780

Browse files
Merge pull request #1358 from kfcripps/1292
[#1292] Explicitly state that table entries declared with 'const entries' cannot be assigned numeric priorities
2 parents cd94d75 + 4aa2bd8 commit c25a780

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

p4-16/spec/P4-16-spec.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -7087,6 +7087,12 @@ order, stopping at the first matching entry. Architectures should
70877087
define the significance of entry order (if any) for other kinds of
70887088
tables.
70897089

7090+
Because control-plane APIs cannot insert or remove entries of a table
7091+
that is declared with `const entries`, the relative priorities of such a
7092+
table's entries are determined solely by the program order of the entries.
7093+
Therefore assigning numeric priorities to entries of a table that has
7094+
`const entries` is not allowed.
7095+
70907096
Depending on the `match_kind` of the keys, key set expressions may define
70917097
one or multiple entries. The compiler will synthesize the correct number of
70927098
entries to be installed in the table. Target constraints may further restrict

0 commit comments

Comments
 (0)