[P4-dev] clarify nested struct support in P4-16?

Andy Fingerhut andy.fingerhut at gmail.com
Wed Aug 23 20:24:10 EDT 2017

Related Github issues:

https://github.com/p4lang/p4-spec/issues/342 - "Allow headers to contain
bit-vector structs".  Structs are currently disallowed as member fields
within headers by the P4_16 spec.

https://github.com/p4lang/p4-spec/issues/383 - "Allow 'bit-vector structs'
to be used everywhere that type bit<W> can".  There is some discussion on
this issue about parts of that proposal that require non-trivial work in
the current open source P4 tools, e.g. allowing nested structs as a table
search key, or a parameter to an action of a table.


On Wed, Aug 23, 2017 at 4:46 PM, <hemant at mnkcg.com> wrote:

> I don’t see any text in the P4-16 spec that says nested struct is not
> supported.  At least, when I use p4test, I see a nested struct pass
> compilation.  When folks get a chance, the EBPF backend could use the same
> behavior because p4c-ebpf does not support a nested struct.
> Hemant
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170823/9de2cf8e/attachment-0002.html>

More information about the P4-dev mailing list