Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 1 | #include "defines.p4" |
2 | #include "headers.p4" | ||||
3 | |||||
4 | action send_to_cpu(inout standard_metadata_t standard_metadata) { | ||||
5 | standard_metadata.egress_spec = CPU_PORT; | ||||
6 | } | ||||
7 | |||||
8 | action set_egress_port(inout standard_metadata_t standard_metadata, Port port) { | ||||
9 | standard_metadata.egress_spec = port; | ||||
10 | } | ||||
11 | |||||
12 | action drop(inout standard_metadata_t standard_metadata) { | ||||
13 | standard_metadata.egress_spec = DROP_PORT; | ||||
14 | } |