Stratum is supported on Barefoot Tofino based switches. There are several documents to help get you understand how to build, run, and test these targets.
There are two different Stratum targets for Tofino:
stratum_bf
is based on the PI C++ API is the
better tested and supported target. This target is still recommended for most
users.
stratum_bfrt
is a newer target based on Barefoot's BfRt C++ API. This target
is still experimental, but gives users access to additional Tofino features.
The plan is to make this target the default when it has matured.
The easiest way to get started is with the pre-built Docker images. See the "Running" guide below for more details.
Building Stratum for Barefoot Tofino based switches provides instructions for users that want to build their own Stratum images, including those who want to customize the BF SDE, Linux kernel, or Stratum code.
Running Stratum on a Barefoot Tofino based switch provides instructions for users who want to get started with a prebuilt image or one that they have built themselves.
P4Runtime p4_device_config formats explains the supported formats in Stratum for Barefoot Tofino based switches.
Testing Stratum on a Barefoot Tofino based switch provides some examples of how to interact with Stratum running on a Barefoot Tofino based switch.