diff --git a/doc/plan.org b/doc/plan.org index a158ecb..a9d23d8 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -6560,6 +6560,20 @@ actions_nat64_generic.p4(173): error: could not not map table size size #+END_CENTER +#+END_CENTER +*** TODO 2019-07-24: unsupported data plane arguments (BUG) + +#+BEGIN_CENTER +actions_egress.p4(89): error: data-plane arguments in default_actions are currently unsupported: realmain_controller_debug_table_id_0 + default_action = controller_debug_table_id(TABLE_V4_NETWORKS); + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +terminate called after throwing an instance of 'Util::CompilerBug' + what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/translate/core/lookupEngine.cpp:137 +Compiler Bug: actions_egress.p4(89): unhandled expression realmain_controller_debug_table_id/realmain_controller_debug_table_id_0(5); + default_action = controller_debug_table_id(TABLE_V4_NETWORKS); + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + #+END_CENTER ** The NetPFGA saga Problems encountered: diff --git a/p4src/actions_egress.p4 b/p4src/actions_egress.p4 index b0d8661..7b3301d 100644 --- a/p4src/actions_egress.p4 +++ b/p4src/actions_egress.p4 @@ -67,7 +67,12 @@ table v6_networks { } size = ROUTING_TABLE_SIZE; + #ifndef _SUME_SWITCH_P4_ default_action = controller_debug_table_id(TABLE_V6_NETWORKS); + #else + default_action = controller_debug; + #endif + } table v4_networks { @@ -86,6 +91,11 @@ table v4_networks { NoAction; } size = ROUTING_TABLE_SIZE; + + #ifndef _SUME_SWITCH_P4_ default_action = controller_debug_table_id(TABLE_V4_NETWORKS); + #else + default_action = controller_debug; + #endif } #endif \ No newline at end of file