Skip to content

Commit d307999

Browse files
Clarify sending ActionProfile members with duplicate actions.
Specifically, clarify that P4Runtime clients are only discouraged from sending ActionProfile members with duplicate actions when using the `sum_of_weights` group size calculation, since the same may literally not be achievable using the `weight` field otherwise. Signed-off-by: Jonathan DiLorenzo <[email protected]>
1 parent 4f71293 commit d307999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/v1/P4Runtime-Spec.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3990,7 +3990,8 @@ inserted. Therefore, 3 distinct `WriteRequest` batches are required.
39903990

39913991
It is possible to include several `ActionProfileAction` messages with the same
39923992
exact `action` specification in one `ActionProfileActionSet` message. However,
3993-
the P4Runtime client is encouraged not to do so, as the same can be achieved by
3993+
when using the `sum_of_weights` group size calculation, the P4Runtime client is
3994+
encouraged not to do so, as the same can be achieved by
39943995
using the `weight` field. Note that to preserve read-write symmetry, the server
39953996
must not coalesce multiple `ActionProfileAction` messages with the same `action`
39963997
specification into one. Additionally, each `action` specification would count as

0 commit comments

Comments
 (0)