blob: 0ef053392da84bb7c2071f4b156dc69baab4ee45 [file] [log] [blame]
Yi Tseng21629932017-06-06 11:17:43 -07001#include "defines.p4"
2#include "headers.p4"
3
4action send_to_cpu(inout standard_metadata_t standard_metadata) {
5 standard_metadata.egress_spec = CPU_PORT;
6}
7
8action set_egress_port(inout standard_metadata_t standard_metadata, Port port) {
9 standard_metadata.egress_spec = port;
10}
11
12action drop(inout standard_metadata_t standard_metadata) {
13 standard_metadata.egress_spec = DROP_PORT;
14}