Add controller_reply

This commit is contained in:
Nico Schottelius 2019-07-10 08:50:21 +02:00
parent d32543cf1b
commit df73b417c6
1 changed files with 7 additions and 0 deletions

View File

@ -144,6 +144,13 @@ control MyIngress(inout headers hdr,
standard_metadata.egress_spec = out_port;
}
action controller_reply(task_t task) {
meta.task = task;
meta.ingress_port = standard_metadata.ingress_port;
clone3(CloneType.I2E, 100, meta);
}
action controller_debug_table_id(table_t table_id) {
meta.table_id = table_id;
controller_reply(TASK_DEBUG);