Order matters in function definition

This commit is contained in:
Nico Schottelius 2019-03-25 13:13:02 +01:00
parent 0dc8791afb
commit b5524b636f
1 changed files with 4 additions and 4 deletions

View File

@ -26,16 +26,16 @@ control MyIngress(inout headers hdr,
standard_metadata.egress_spec = out_port;
}
action controller_debug() {
controller_reply(TASK_DEBUG);
}
action controller_reply(task_t task) {
meta.task = task;
meta.ingress_port = standard_metadata.ingress_port;
clone3(CloneType.I2E, 100, meta);
}
action controller_debug() {
controller_reply(TASK_DEBUG);
}
action multicast_pkg(mcast_t mcast_grp) { /* Output PKG on correct ports (plural) */
standard_metadata.mcast_grp = mcast_grp;
}