[netpfga] Fix default actions / cannot have arguments
This commit is contained in:
parent
dc7d78252e
commit
8c94c1ac09
2 changed files with 24 additions and 0 deletions
14
doc/plan.org
14
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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue