Make it more stupid - forget about tables
This commit is contained in:
parent
e13d0b974d
commit
53ce47a54e
6 changed files with 298 additions and 36 deletions
|
|
@ -58,20 +58,17 @@ control RealMain(
|
|||
#include "actions_egress.p4"
|
||||
#include "actions_delta_checksum.p4"
|
||||
|
||||
|
||||
#include "netpfga_dummy.p4"
|
||||
|
||||
apply {
|
||||
bit<17> tmp17 = 0;
|
||||
bool apply_v4networks = true;
|
||||
bool apply_v6networks = true;
|
||||
|
||||
// #include "netpfga_nat64.p4"
|
||||
/* does not compile without a table - give it a table */
|
||||
dummy_table_for_netpfga.apply();
|
||||
|
||||
// if(apply_v4networks == true) {
|
||||
v4_networks.apply();
|
||||
// }
|
||||
|
||||
// if(apply_v6networks == true) {
|
||||
// v6_networks.apply();
|
||||
// }
|
||||
/* continue without tables */
|
||||
#include "netpfga_nat64_stupid_hardcoded.p4"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue