-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support a string "cookie" in TableEntry #267
Comments
The decision at the 02/26/2020 P4 API WG was to add a new "metadata" field to the |
@konne-google should the exact Protobuf type for this type be |
It should be bytes, so arbitrary data can be stored there easily (including the 64bit cookie from before, if someone just needs that after we remove the now deprecated field). |
The ForwardingPipelineConfig message has a 64bit cookie field, too. Do we want to deprecate that in favor of a bytes metadata field as well? Or only for TableEntries? @konne-google @antoninbas, and anyone else who has an opinion? |
Pull request #271 addresses the TableEntry case for now. |
I don't feel strongly about the |
The current "controller_metadata" has type uint64: https://github.com/p4lang/p4runtime/blob/v1.1.0/proto/p4/v1/p4runtime.proto#L160. This is probably legacy from OpenFlow, where each flow can have a 64-bit integer cookie. We would like to be able to store an arbitrary string as metadata with each table entry.
The text was updated successfully, but these errors were encountered: