Skip to content

Clarify the equivalence of actions in default actions#1393

Open
shyukahn wants to merge 1 commit into
p4lang:mainfrom
shyukahn:default-action-equiv
Open

Clarify the equivalence of actions in default actions#1393
shyukahn wants to merge 1 commit into
p4lang:mainfrom
shyukahn:default-action-equiv

Conversation

@shyukahn
Copy link
Copy Markdown

Closes #1388
This PR is made from the April 2026 P4 LDWG meeting.

A default_action of a table must be one of the actions that appear in the actions list. The PR clarifies how to determine the equivalence of the default action and an action in the actions list.

  • The name of the default action must be same as the action of the actions list, after resolving them both to full hierarchical names.
  • The expressions passed as in, out, or inout parameters must be syntactically identical to the expressions used in the action of the actions list. A P4 implementation may choose to accept default actions with arguments that are semantically equivalent to the expressions in the actions list, instead of requiring them to be syntacitcally identical.

Signed-off-by: Sehyuk Ahn <shyukahn@gmail.com>
Copy link
Copy Markdown
Collaborator

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

To what extent do we check equivalence of table actions?

2 participants