blob: 87c1ed669078458a935ecf770c5a44831327685b [file] [log] [blame]
#ifndef ACTIONS
#define ACTIONS
#include "defines.p4"
#include "headers.p4"
action send_to_cpu(inout standard_metadata_t standard_metadata) {
standard_metadata.egress_spec = CPU_PORT;
}
action set_egress_port(inout standard_metadata_t standard_metadata, port_t port) {
standard_metadata.egress_spec = port;
}
action drop(inout standard_metadata_t standard_metadata) {
standard_metadata.egress_spec = DROP_PORT;
}
#endif