Make it more stupid - forget about tables

This commit is contained in:
Nico Schottelius 2019-07-28 20:08:28 +02:00
commit 53ce47a54e
6 changed files with 298 additions and 36 deletions

View file

@ -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"
}
}