[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
12
doc/plan.org
12
doc/plan.org
|
@ -3328,12 +3328,15 @@ https://en.wikipedia.org/wiki/IPv4_header_checksum
|
||||||
CLOSED: [2019-07-21 Sun 14:01]
|
CLOSED: [2019-07-21 Sun 14:01]
|
||||||
| eth2 <--> nf0 |
|
| eth2 <--> nf0 |
|
||||||
| eth1 <--> nf3 |
|
| eth1 <--> nf3 |
|
||||||
** Compile log
|
** Compile log - VERSIONS
|
||||||
| 5.1. - 5.5 | failure due to variable renaming |
|
| 5.1. - 5.5 | failure due to variable renaming |
|
||||||
| 5.6 | subparser: compiled! |
|
| 5.6 | subparser: compiled! |
|
||||||
| 5.7 | subcontrol: [nsg] |
|
| 5.7 | subcontrol: [nsg] |
|
||||||
| 5.8 | nat64 actions/table: -- |
|
| 5.8 | nat64 actions/table: OK |
|
||||||
| 5.9 | nat64+headers [esprimo]: |
|
| 5.9 | nat64+headers [esprimo]: |
|
||||||
|
| 6.1 | ARP: mixed matches in table, ABORT |
|
||||||
|
| 6.2 | No arp, Vivado Simulator kernel has encounted an exception |
|
||||||
|
| | |
|
||||||
** TODO Benchmark/comparison
|
** TODO Benchmark/comparison
|
||||||
*** TODO Setup / Benchmark Jool
|
*** TODO Setup / Benchmark Jool
|
||||||
*** TODO Setup / Benchmark tayga
|
*** TODO Setup / Benchmark tayga
|
||||||
|
@ -6471,7 +6474,8 @@ nico@nsg-System:~/master-thesis/netpfga/log$
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
|
||||||
*** TODO 2019-07-24: table match types are not the same error
|
*** DONE 2019-07-24: table match types are not the same error
|
||||||
|
CLOSED: [2019-07-24 Wed 22:35]
|
||||||
- Missing feature in
|
- Missing feature in
|
||||||
https://cs344-stanford.github.io/documentation/p4c-sdnet-missing-features.pdf
|
https://cs344-stanford.github.io/documentation/p4c-sdnet-missing-features.pdf
|
||||||
- disabling arp for the moment
|
- disabling arp for the moment
|
||||||
|
@ -6523,6 +6527,8 @@ ARP disabled:
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
*** TODO 2019-07-24: Vivado Simulator kernel has encounted an exception from DPI C function: LPM_VerifyDataset
|
||||||
|
- maybe LPM problem -> rewrite tables
|
||||||
** The NetPFGA saga
|
** The NetPFGA saga
|
||||||
Problems encountered:
|
Problems encountered:
|
||||||
- The logfile for a compile run is 10k+ lines
|
- The logfile for a compile run is 10k+ lines
|
||||||
|
|
|
@ -51,7 +51,11 @@ action controller_debug() {
|
||||||
|
|
||||||
table v6_networks {
|
table v6_networks {
|
||||||
key = {
|
key = {
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
hdr.ipv6.dst_addr: lpm;
|
hdr.ipv6.dst_addr: lpm;
|
||||||
|
#else
|
||||||
|
hdr.ipv6.dst_addr: exact;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
actions = {
|
actions = {
|
||||||
set_egress_port;
|
set_egress_port;
|
||||||
|
@ -68,7 +72,11 @@ table v6_networks {
|
||||||
|
|
||||||
table v4_networks {
|
table v4_networks {
|
||||||
key = {
|
key = {
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
hdr.ipv4.dst_addr: lpm;
|
hdr.ipv4.dst_addr: lpm;
|
||||||
|
#else
|
||||||
|
hdr.ipv4.dst_addr: exact;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
actions = {
|
actions = {
|
||||||
set_egress_port;
|
set_egress_port;
|
||||||
|
|
|
@ -158,7 +158,11 @@ action nat46_icmp_generic()
|
||||||
|
|
||||||
table nat64 {
|
table nat64 {
|
||||||
key = {
|
key = {
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
hdr.ipv6.dst_addr: lpm;
|
hdr.ipv6.dst_addr: lpm;
|
||||||
|
#else
|
||||||
|
hdr.ipv6.dst_addr: exact;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
actions = {
|
actions = {
|
||||||
controller_debug;
|
controller_debug;
|
||||||
|
@ -173,7 +177,11 @@ action nat46_icmp_generic()
|
||||||
|
|
||||||
table nat46 {
|
table nat46 {
|
||||||
key = {
|
key = {
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
hdr.ipv4.dst_addr: lpm;
|
hdr.ipv4.dst_addr: lpm;
|
||||||
|
#else
|
||||||
|
hdr.ipv4.dst_addr: exact;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
actions = {
|
actions = {
|
||||||
controller_debug;
|
controller_debug;
|
||||||
|
|
Loading…
Reference in a new issue