コンテンツにスキップ

Appendix C P4 reserved annotations

The following table shows all P4 reserved annotations.

Annotation Purpose See Section
atomic specify atomic execution Concurrency model
defaultonly action can only appear in the default action Annotations on the table action list
hidden hides a controllable entity from the control plane Annotations controlling naming
match specify match_kind of a field in a value_set Value set annotations
name assign local control-plane name Annotations controlling naming
optional parameter is optional Optional parameter annotations
tableonly action cannot be a default_action Annotations on the table action list
deprecated Construct has been deprecated Deprecated annotation
pure pure function Extern function/method annotations
noSideEffects function with no side effects Extern function/method annotations
noWarn Has a string argument; inhibits compiler warnings No warnings annotation