Gitiles
Code Review
Sign In
gerrit.onosproject.org
/
onos
/
46b3e85717aafb002f339efe198ea696208c918f
/
.
/
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
);
}