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

Clarify section on Packet I/O messages #422

Merged
merged 2 commits into from
May 9, 2023
Merged

Clarify section on Packet I/O messages #422

merged 2 commits into from
May 9, 2023

Conversation

smolkaj
Copy link
Member

@smolkaj smolkaj commented May 8, 2023

In particular with regards to translated types.

In particular with regards to translated types.
`ControllerPacketMetadata.Metadata` message with the same `id`, in the
following sense:
+ If `ControllerPacketMetadata.Metadata.bitwidth` is set, or if
`ControllerPacketMetadata.Metadata.type_name` is set and
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a related point, It seems like the P4RT spec doesn't have any examples of a ControllerPacketMetadata with type_name being utilized. Do you think it'd be valuable to add such an example and show corresponding P4NewTypeSpec?

for the type name, then `PacketMetadata.value` must be a binary string of
the specified bit width conforming to the [Bytestrings](#sec-bytestrings)
requirements.
+ If `ControllerPacketMetadata.Metadata.type_name` is set and
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again, a worked-out example might help here.

Copy link
Collaborator

@chrispsommers chrispsommers left a comment

Choose a reason for hiding this comment

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

LGTM. Suggest to add some more examples to illustrate some cases involving P4NewTypeSpec

@smolkaj
Copy link
Member Author

smolkaj commented May 9, 2023

I agree that adding examples would be useful.
Unfortunately I'm a bit pressed on time right now.
We could submit this imperfect PR now (assuming we agree that it is an incremental improvement), or I would be happy to add examples once I'm back from vacation.

@chrispsommers
Copy link
Collaborator

Sure, that's why I approved, you can put this idea in backlog. Feel free to merge.

@smolkaj
Copy link
Member Author

smolkaj commented May 9, 2023

Sounds good. Thanks.

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.

2 participants