[P4-dev] switch.p4 design document needed.

Antonin Bas antonin at barefootnetworks.com
Thu May 11 13:25:23 EDT 2017


I am not aware of such a document. In general I think it is helpful to
generate the table graph for large P4 programs. Unfortunately graph
generation is not available yet with the new p4lang/p4c compiler, so I used
p4-hlir to generate the table graph for switch.p4, which I have attached to
this email. Of course, this graph is only helpful to get an overview of the
control flow, it doesn't provide information about individual tables.
I am not aware of any ongoing work to write and open-source a design
document. If you're willing to contribute something, I believe it would be



On Wed, May 10, 2017 at 8:53 PM, Yongfeng Sun <sunnogo at gmail.com> wrote:

> Dear all,
> Is there a switch.p4 design document? As you know, it's hard to master all
> design of the pipeline through raw p4 code.
> Is there any roadmap about this? And if you're working on this, please let
> me know. I am interesting in this, and would like to contribute to it.
> _______________________________________________
> 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/20170511/d2274e01/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch.tables.png
Type: image/png
Size: 2443032 bytes
Desc: not available
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170511/d2274e01/attachment.png>

More information about the P4-dev mailing list