Skip to content
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

Add metadata bytes field #271

Merged
merged 2 commits into from
Mar 13, 2020
Merged

Add metadata bytes field #271

merged 2 commits into from
Mar 13, 2020

Conversation

stefanheule
Copy link
Contributor

Fixes #267.

@ghost
Copy link

ghost commented Mar 12, 2020

LGTM

Copy link
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change LGTM. I am in favor of not changing the cookie field in ForwardingPipelineConfig as the only use case we have for it at the moment is as a client-provided identifier for the pipeline configuration, for which a uint64 seems sufficient. We can change it in the future if required, but it seems there is no need to make that change now and make the interface more complex.

@stefanheule could you update the "Revision History" section as part of this change (https://p4.org/p4runtime/spec/master/P4Runtime-Spec.html#sec-changes-in-v120-under-development), it will make the releasing process easier for me for 1.2.0.

target. There is no requirement of where this is stored, but it must be
returned by the server along with the rest of the entry when the client
performs a read on the entry. This is deprecated in favor of the more flexible
metadata field.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
metadata field.
`metadata` field.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did both, thanks.

Copy link
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas antoninbas merged commit 2f8ee47 into master Mar 13, 2020
@antoninbas antoninbas deleted the metadata branch March 13, 2020 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support a string "cookie" in TableEntry
2 participants