-
Notifications
You must be signed in to change notification settings - Fork 131
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
Accept action IDs on DirectCounterEntry
in Stratum-bfrt
#942
Conversation
Those are still valid and the action field has to be ignored, according to the P4RT spec.
Thanks @daniele-moro for reporting. |
cc @pierventre |
Codecov Report
@@ Coverage Diff @@
## main #942 +/- ##
==========================================
+ Coverage 79.19% 79.20% +0.01%
==========================================
Files 339 339
Lines 30924 30918 -6
==========================================
- Hits 24489 24488 -1
+ Misses 6435 6430 -5
|
I think ONOS code is not affected but wait for confirmation from @pierventre. Direct counters in ONOS are either read as part of a read of table entries, or doing reads by specifying only the table entry handle (i.e., match + priority). See: https://github.com/opennetworkinglab/onos/blob/dc08c95eed882936edf47527ca64d416009e8514/drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/P4RuntimeFlowRuleProgrammable.java#L536-L551 |
Yup - we talked about this in private me and @pudelkoM and I confirm what you are saying. On our end we can remove some code around |
Sounds good to me. "affected" was poorly worded here. "potential chance for simplification" is more appropriate as old behavior will continue to work. |
Signed-off-by: Derek G Foster <derek.foster@intel.com>
Signed-off-by: Derek G Foster <derek.foster@intel.com>
Those are still valid and the action field has to be ignored, according to the P4RT spec.