From b5524b636f4c049e0445f9f43122dd0d7e7f108e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 25 Mar 2019 13:13:02 +0100 Subject: [PATCH] Order matters in function definition --- p4src/static-mapping.p4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index fb8f384..4e894cd 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -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; }