Hi, I want to use C++/C based control plane, but I do not know how to compile it and run it with Tofino switch. Is there any tutorial helps me to learn and use it?
Dear @aoiland ,
The answer depends somewhat on whether you want to use Intel’s P4 Studio SDE or open-p4studio. I’ve just seen an almost identical question on ICRP Forum and I replied there with respect to Intels’ P4 Studio SDE situation.
With respect to open-p4studio, it does contain examples in $SDE/pkgsrc/bf-drivers/bf_switch/bfrt_examples
, but they are not built (in fact, for whatever reason the subdirectory was removed from $SDE/pkgsrc/bf-drivers/bf_switch/CMakeLists.txt
Happy hacking,
Vladimir