Change PER_GROUP_ONLY to PER_GROUP and update P4Runtime spec#604
Change PER_GROUP_ONLY to PER_GROUP and update P4Runtime spec#604matthewtlam wants to merge 1 commit intop4lang:mainfrom
Conversation
Signed-off-by: Matthew Lam <matthew.lam.qwerty@gmail.com>
| ** `id`, the `uint32` identifier of the action. | ||
| ** `scope`, an enum value which can take one of four values: | ||
| `TABLE_AND_DEFAULT`, `TABLE_ONLY`, `PER_GROUP_ONLY` and `DEFAULT_ONLY`. The | ||
| `TABLE_AND_DEFAULT`, `TABLE_ONLY`, `PER_GROUP` and `DEFAULT_ONLY`. The |
There was a problem hiding this comment.
Why not GROUP_ACTION?
There was a problem hiding this comment.
Or, it seems sorta nice that they are the same...
There was a problem hiding this comment.
Agreed that if @groupaction is the annotation, then GROUP_ACTION as the value of the enum would be nice to keep it similar to existing corresponding attribute/enum-value-names:
- @defaultonly -> DEFAULT_ONLY
- @tableonly -> TABLE_ONLY
- @groupaction -> GROUP_ACTION
|
@matthewtlam could you update the description on why we are proposing this change? This is to avoid the confusion regarding the expected semantics of the Also it seems there is consensus on @groupaction / GROUP_ACTION. Could you please update the PR. |
|
@jafingerhut @jonathan-dilorenzo @smolkaj if everyone happy with the idea, let's get this in soon before we have developments with the older annotation. |
No description provided.