[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:
parent
9e6bb893ac
commit
4afbf053af
3 changed files with 32 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue