Fix meaning of "send_to_port1"

This commit is contained in:
Nico Schottelius 2019-07-17 17:41:54 +02:00
parent d8d1defa50
commit 55cc9db975
2 changed files with 8 additions and 2 deletions

View File

@ -5581,7 +5581,8 @@ And p4c version:
p4c 0.5 (SHA: 5ae30ee)```
#+END_CENTER
*** 2019-07-17: netpfga compiler also does not support function syntax
*** DONE 2019-07-17: netpfga compiler also does not support function syntax
CLOSED: [2019-07-17 Wed 17:40]
#+BEGIN_CENTER
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
p4c-sdnet -o minip4.sdnet --sdnet_info .sdnet_switch_info.dat minip4_solution.p4
@ -5619,6 +5620,7 @@ bit<16> ones_complement_sum(in bit<16> x, in bit<16> y) {
}
#+END_CENTER
*** TODO 2019-07-17: use 17 bits for addition -> totally off!x
** The NetPFGA saga
Problems encountered:
- The logfile for a compile run is 10k+ lines

View File

@ -5,10 +5,14 @@ action do_nothing() {
;
}
action send_to_port1(port_t port) {
action send_to_port(port_t port) {
sume_metadata.dst_port = port;
}
action send_to_port1() {
sume_metadata.dst_port = 1;
}
table dummy_table_for_netpfga {
key = {
hdr.ethernet.dst_addr: exact;