Skip to content

Commit f5187a2

Browse files
authored
Update comment for weights_disallowed in ActionProfile (#566)
Signed-off-by: Matthew Lam <[email protected]>
1 parent 1a72547 commit f5187a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go/p4/config/v1/p4info.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/p4/config/v1/p4info.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ message ActionProfile {
345345
SumOfMembers sum_of_members = 7;
346346
}
347347

348-
// dictates whether the controller can specify weights for groups programmed
348+
// Dictates whether the controller can specify weights for groups programmed
349349
// in this ActionProfile. If `weights_disallowed` is true, then all weights
350-
// must be absent. Unset (false) in action profiles.
350+
// must be absent. Unset (false) in action profiles without selectors.
351351
// Added in v1.5.0.
352352
bool weights_disallowed = 8;
353353
}

rust/src/p4.config.v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,9 +1015,9 @@ pub struct ActionProfile {
10151015
/// specified by `selector_size_semantics` below.
10161016
#[prost(int32, tag="5")]
10171017
pub max_group_size: i32,
1018-
/// dictates whether the controller can specify weights for groups programmed
1018+
/// Dictates whether the controller can specify weights for groups programmed
10191019
/// in this ActionProfile. If `weights_disallowed` is true, then all weights
1020-
/// must be absent. Unset (false) in action profiles.
1020+
/// must be absent. Unset (false) in action profiles without selectors.
10211021
/// Added in v1.5.0.
10221022
#[prost(bool, tag="8")]
10231023
pub weights_disallowed: bool,

0 commit comments

Comments
 (0)