Order matters in function definition
This commit is contained in:
parent
0dc8791afb
commit
b5524b636f
1 changed files with 4 additions and 4 deletions
|
@ -26,16 +26,16 @@ control MyIngress(inout headers hdr,
|
||||||
standard_metadata.egress_spec = out_port;
|
standard_metadata.egress_spec = out_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
action controller_debug() {
|
|
||||||
controller_reply(TASK_DEBUG);
|
|
||||||
}
|
|
||||||
|
|
||||||
action controller_reply(task_t task) {
|
action controller_reply(task_t task) {
|
||||||
meta.task = task;
|
meta.task = task;
|
||||||
meta.ingress_port = standard_metadata.ingress_port;
|
meta.ingress_port = standard_metadata.ingress_port;
|
||||||
clone3(CloneType.I2E, 100, meta);
|
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) */
|
action multicast_pkg(mcast_t mcast_grp) { /* Output PKG on correct ports (plural) */
|
||||||
standard_metadata.mcast_grp = mcast_grp;
|
standard_metadata.mcast_grp = mcast_grp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue