diff --git a/doc/plan.org b/doc/plan.org index 126d329..1cee8bc 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -143,6 +143,7 @@ | | | | | 2019-03-27 | | | | | switch cannot be used in actions! | | +| | Refactor program to use multiple tables instead of switch | | | | | | | 2019-03-28 | Meet Laurent #4 | | | | - Router solicitation for finding router on startup! | | @@ -1391,14 +1392,16 @@ me available? I could work around this by using if(! .. .hit) { my_action(table_id) }, but it would not work with using default_action = ... -**** No switch in actions +**** No switch in actions, No conditional execution in actions + +Imho, compiler should be able to unroll these to some degree. + #+BEGIN_SRC ../p4src/static-mapping.p4(60): error: SwitchStatement: switch statements not allowed in actions switch(hdr.icmp6.type) { ^^^^^^ #+END_SRC -**** No conditional execution in actions #+BEGIN_SRC ../p4src/static-mapping.p4(57): error: MethodCallStatement: Conditional execution in actions is not supported on this target hdr.icmp.setValid();