[netpfga] change table key to exact instead of LPM

Known bug of netpfga not correctly supporting LPM. Current bug
might be triggered by it:
This commit is contained in:
Nico Schottelius 2019-07-24 22:38:55 +02:00
commit 4afbf053af
3 changed files with 32 additions and 10 deletions

View file

@ -51,7 +51,11 @@ action controller_debug() {
table v6_networks {
key = {
#ifndef _SUME_SWITCH_P4_
hdr.ipv6.dst_addr: lpm;
#else
hdr.ipv6.dst_addr: exact;
#endif
}
actions = {
set_egress_port;
@ -68,7 +72,11 @@ table v6_networks {
table v4_networks {
key = {
#ifndef _SUME_SWITCH_P4_
hdr.ipv4.dst_addr: lpm;
#else
hdr.ipv4.dst_addr: exact;
#endif
}
actions = {
set_egress_port;

View file

@ -157,8 +157,12 @@ action nat46_icmp_generic()
}
table nat64 {
key = {
hdr.ipv6.dst_addr: lpm;
key = {
#ifndef _SUME_SWITCH_P4_
hdr.ipv6.dst_addr: lpm;
#else
hdr.ipv6.dst_addr: exact;
#endif
}
actions = {
controller_debug;
@ -173,7 +177,11 @@ action nat46_icmp_generic()
table nat46 {
key = {
hdr.ipv4.dst_addr: lpm;
#ifndef _SUME_SWITCH_P4_
hdr.ipv4.dst_addr: lpm;
#else
hdr.ipv4.dst_addr: exact;
#endif
}
actions = {
controller_debug;