Update P4 Spec with group_actions - #1392
Conversation
Signed-off-by: Matthew Lam <matthew.lam.qwerty@gmail.com>
Signed-off-by: Matthew Lam <matthew.lam.qwerty@gmail.com>
|
LDWG notes: move this to a PR on the PSA spec since groups are not a part of the language itself. |
|
@matthewtlam My apologies for not thinking of this earlier, but during the last language design work group meeting a comment was made about this proposed change that I think is valid: action selectors and action profiles are defined in some (but not all) P4 architecture definitions. They do not exist in the base language. Thus it would make more sense to define the Once it is part of the SPA specification, any other architectures where it makes sense to define it (e.g. v1model) we can update their documentation to point at the definition in the PSA specification, if we want it to be the same definition (which I think in all cases for architectures "owned" by P4.org we would want it to be the same). |
|
@matthewtlam I have looked through the PSA specifcation, and I think a good idea would be to add new text into Section 8.12 "Action Selector". There currently is no separate section in the document mentioning all annotations defined in PSA, but we could add a new appendix, just before the last appendix "Revision History", with the new appendix titled "PSA Reserved Annotations", with contents similar to the appendix titled "P4 Reserved Annotations" in the P4 language spec [1]. [1] https://github.com/p4lang/p4-spec/blob/main/p4-16/spec/P4-16-spec.adoc#sec-p4-reserved-annotations |
|
Hi @matthewtlam, @jafingerhut, and @smolkaj, I was looking through the discussion, and it seems like the plan is to move this documentation from the P4 language spec to the PSA spec, since action selectors and groups are architecture-specific. I would like to work on the PSA spec by adding the Has anyone already started working on this? If not, can I take it up? Thanks. |
I am not aware of anyone working on this yet. Please go ahead. |
|
This alternative PR #1417 making a similar change in the Portable Switch Architecture (PSA) specification was merged today. For the reasons mentioned in earlier comments, no change is considered necessary or even desirable in the P4 language specification document for this topic, so closing this PR. |
Discussion from p4lang/p4runtime#605, stemmed updating the Language spec with information regarding the semantics of group actions, which was introduced in P4Runtime in p4lang/p4runtime#594 and p4lang/p4runtime#604.
cc: @jonathan-dilorenzo, @smolkaj, @jafingerhut, @chrispsommers, @kheradmandG