-
Notifications
You must be signed in to change notification settings - Fork 98
(proto change) Add ActionSelectionMode and SizeSemantics to ActionProfileActionSet in P4Runtime. #561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(proto change) Add ActionSelectionMode and SizeSemantics to ActionProfileActionSet in P4Runtime. #561
Conversation
Signed-off-by: Angela Zhang <[email protected]>
You still need to update the generated code, right? |
Suggested a bunch of comments, otherwise looks great (once generated code is updated too). |
Ok! This LGTM! @verios-google, @matthewtlam, @jafingerhut, and @chrispsommers, do we have any idea what's causing the Edit: I guess not since #559 fails that build too and doesn't change the proto at all? So then, do we feel comfortable merging this @jafingerhut and @chrispsommers? |
I think it makes sense to just merge this PR. It seems that this build has been failing since Jun 23 https://github.com/p4lang/p4runtime/actions/runs/15837959752. The build fails out of the blue upon taking a closer look as we can see @verios-google's last change and a series of passing scheduled builds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proto changes LGTM
FYI, I think Google folks are still the most vocal proponents of using Bazel for builds, so I'd ask if anyone there would be interested in looking into why the builds are failing for that particular Ubuntu/Bazel version combination, and see whether something should be changed there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new additions look reasonable to me. Looking forward to reviewing the corresponding additions to the P4Runtime spec that go with these (on a different PR).
Alright, let me open an issue for the Bazel stuff and we can take a look at that separately. @jafingerhut or @chrispsommers, could I ask you to merge this? |
I see that @chrispsommers has already approved the proto changes in the corresponding earlier PR #560 so will go ahead and merge this despite it failing one of the CI tests. I am guessing that likely that failing CI test will be either (a) updated to work fine on this PR's changes, or (b) someone will discover that Ubuntu/Bazel version combo isn't supported, and therefore should no longer be a CI test for this repo. |
Thanks to both of you! |
…fileActionSet in P4Runtime. (p4lang#561) * Create a separate PR for just the P4Runtime proto changes. Signed-off-by: Angela Zhang <[email protected]> * address comments --------- Signed-off-by: Angela Zhang <[email protected]>
Motivation
Our switches currently support per-group hash modes and resource usage modes. We are currently not leveraging this capability. This P4 API change allows for more granular control of the WCMP implementation in GPINS.
Summary of changes
Add
BucketSelectionMode
(with modesDEFAULT_MODE_DETERMINED_BY_ACTION_SELECTOR
,HASH
, andRANDOM
) andSizeSemantics
(with modesDEFAULT_SIZE_DETERMINED_BY_ACTION_SELECTOR
,SUM_OF_WEIGHTS
, andSUM_OF_MEMBERS
) toActionProfileActionSet
in p4runtime.proto.