Gitiles
Code Review
Sign In
gerrit.onosproject.org
/
onos
/
a5b5b9cfdf633d642615ae12c2b4767dfeb5bb26
/
.
/
tools
/
test
/
p4src
/
p4-14
/
include
/
actions.p4
blob: 8649da0b1e7d898c148d6fcc0648dbe19206d0bd [
file
] [
log
] [
blame
]
action set_egress_port
(
port
)
{
modify_field
(
standard_metadata
.
egress_spec
,
port
);
}
action drop
()
{
modify_field
(
standard_metadata
.
egress_spec
,
DROP_PORT
);
}
action send_to_cpu
()
{
modify_field
(
standard_metadata
.
egress_spec
,
CPU_PORT
);
}