bmv2
Designing your own switch target with bmv2
|
Public Member Functions | |
void | apply (Packet *pkt) |
Pipeline (const Pipeline &other)=delete | |
Deleted copy constructor. More... | |
Pipeline & | operator= (const Pipeline &other)=delete |
Deleted copy assignment operator. More... | |
Pipeline (Pipeline &&other)=default | |
Default move constructor. More... | |
Pipeline & | operator= (Pipeline &&other)=default |
Default move assignment operator. More... | |
![]() | |
const std::string & | get_name () const |
Get the name of the P4 instance. More... | |
p4object_id_t | get_id () const |
Get the compiler-provided id. More... | |
NamedP4Object (const NamedP4Object &other)=delete | |
Deleted copy constructor. More... | |
NamedP4Object & | operator= (const NamedP4Object &other)=delete |
Deleted copy assignment operator. More... | |
NamedP4Object (NamedP4Object &&other)=default | |
Default move constructor. More... | |
NamedP4Object & | operator= (NamedP4Object &&other)=default |
Default assignment operator. More... | |
Implements a P4 control flow. It essentially consists of a apply() method which is in charge of sending the Packet through the correct match-action tables and conditions.
|
delete |
Deleted copy constructor.
|
default |
Default move constructor.
void bm::Pipeline::apply | ( | Packet * | pkt | ) |
Sends the pkt
through the correct match-action tables and condiitons. Each step is determined based on the result of the previous step (table lookup or condition evaluation), according to the P4 control flow graph.
Deleted copy assignment operator.