Hello Everyone,

Right before our April 13th OCP networking call, we've released an SAI P4
Program and the associated auto-generated API header file containing the
SAI APIs. It was a static release, meaning at that time you couldn't
compile the SAI P4 program to generate the API headers. We released it so
one can take a look at the SAI P4 program and get familiar with it as well
as compare the auto-generated API header file with the SAI header files
released by the SAI team.

During today's OCP call we talked about an update to the Open Source P4
code which will enable you to compile the SAI P4 program to generate the
SAI API headers as well as a soft-switch which realizes the logical
pipeline as defined in the SAI P4 program. This was accomplished by
enhancing p4c-behavioral, which is the compiler back-end for soft-switch
targets, to support sai_p4 target. The update also includes a couple of
Thrift based tests (L2Test & L3Test) which will allow you to test the
auto-generated SAI APIs as well as the SAI soft-switch using packet traffic.

Below are some helpful links:
P4.org's GitHub page <https://github.com/p4lang>
Main repository containing P4 programs <https://github.com/p4lang/p4factory>

Current P4 targets <https://github.com/p4lang/p4factory/tree/master/targets>
SAI-P4 target
<https://github.com/p4lang/p4factory/tree/master/targets/sai_p4>
SAI.p4 file
<https://github.com/p4lang/p4factory/blob/master/targets/sai_p4/p4src/sai_p4.p4>
Sample auto-generated header file with SAI APIs
<https://github.com/p4lang/p4factory/blob/master/targets/sai_p4/sai_templ_sample.h>
.
File containing Thrift based tests
<https://github.com/p4lang/p4factory/blob/master/targets/sai_p4/of-tests/tests/sai_thrift/sai.py>

Thanks,
Prem.
_______________________________________________
opencompute-networking mailing list
Unsubscribe: http://lists.opencompute.org/mailman/options/opencompute-networking

[email protected]
http://lists.opencompute.org/mailman/listinfo/opencompute-networking

Reply via email to