Merge branch 'master' of gitlab.ethz.ch:nicosc/master-thesis
This commit is contained in:
commit
d6766422d5
255
doc/plan.org
255
doc/plan.org
|
@ -3329,14 +3329,16 @@ https://en.wikipedia.org/wiki/IPv4_header_checksum
|
||||||
| eth2 <--> nf0 |
|
| eth2 <--> nf0 |
|
||||||
| eth1 <--> nf3 |
|
| eth1 <--> nf3 |
|
||||||
** Compile log - VERSIONS
|
** 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: OK |
|
||||||
| 5.7 | subcontrol: [nsg] |
|
| 5.7 | subcontrol: [nsg]: OK |
|
||||||
| 5.8 | nat64 actions/table: OK |
|
| 5.8 | nat64 actions/table: OK |
|
||||||
| 5.9 | nat64+headers [esprimo]: |
|
| 5.9 | nat64+headers [esprimo]: OK |
|
||||||
| 6.1 | ARP: mixed matches in table, ABORT |
|
| 6.1 | ARP: mixed matches in table: ABORT |
|
||||||
| 6.2 | No arp, Vivado Simulator kernel has encounted an exception |
|
| 6.2 | No arp, Vivado Simulator kernel has encounted an exception: ABORT |
|
||||||
| | |
|
| 6.3 | Fixed lpm bug: ABORT |
|
||||||
|
| 6.4 | table size = 64, [nsg]: |
|
||||||
|
| 6.5 | udp in ipv6 integrated with ugly define [esprimo]: |
|
||||||
** TODO Benchmark/comparison
|
** TODO Benchmark/comparison
|
||||||
*** TODO Setup / Benchmark Jool
|
*** TODO Setup / Benchmark Jool
|
||||||
*** TODO Setup / Benchmark tayga
|
*** TODO Setup / Benchmark tayga
|
||||||
|
@ -6085,7 +6087,8 @@ def config_tables():
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
~/master-thesis/netpfga/minip4/simple_sume_switch/test/sim_switch_default/config_writes.py
|
~/master-thesis/netpfga/minip4/simple_sume_switch/test/sim_switch_default/config_writes.py
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
*** 2019-07-22: trying to "fix" the config_writes.py
|
*** DONE 2019-07-22: trying to "fix" the config_writes.py
|
||||||
|
CLOSED: [2019-07-24 Wed 22:44]
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
nico@nsg-System:~/master-thesis/netpfga/minip4/simple_sume_switch/test/sim_switch_default$ cat config_writes.py
|
nico@nsg-System:~/master-thesis/netpfga/minip4/simple_sume_switch/test/sim_switch_default$ cat config_writes.py
|
||||||
|
|
||||||
|
@ -6444,7 +6447,7 @@ release, use 'get_user_parameters' instead
|
||||||
**** TODO install mate for getting xlibraries
|
**** TODO install mate for getting xlibraries
|
||||||
**** Install sdnet
|
**** Install sdnet
|
||||||
|
|
||||||
*** DONE 2019-07-24: add features to netpfga: LPM tables cannot be 64
|
*** DONE 2019-07-24: LIMIT add features to netpfga: LPM tables cannot be 64
|
||||||
CLOSED: [2019-07-24 Wed 13:23]
|
CLOSED: [2019-07-24 Wed 13:23]
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
minip4_solution.p4(38): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
minip4_solution.p4(38): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
@ -6474,7 +6477,7 @@ nico@nsg-System:~/master-thesis/netpfga/log$
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
|
||||||
*** DONE 2019-07-24: table match types are not the same error
|
*** DONE 2019-07-24: LIMIT table match types are not the same error
|
||||||
CLOSED: [2019-07-24 Wed 22:35]
|
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
|
||||||
|
@ -6527,7 +6530,7 @@ ARP disabled:
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
*** DONE 2019-07-24: Vivado Simulator kernel has encounted an exception from DPI C function: LPM_VerifyDataset
|
*** DONE 2019-07-24: BUG Vivado Simulator kernel has encounted an exception from DPI C function: LPM_VerifyDataset
|
||||||
CLOSED: [2019-07-24 Wed 22:41]
|
CLOSED: [2019-07-24 Wed 22:41]
|
||||||
- maybe LPM problem -> rewrite tables
|
- maybe LPM problem -> rewrite tables
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
|
@ -6539,7 +6542,8 @@ s/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/realmain_l
|
||||||
FATAL_ERROR: Vivado Simulator kernel has encounted an exception from DPI C function: LPM_VerifyDataset(). Please correct.
|
FATAL_ERROR: Vivado Simulator kernel has encounted an exception from DPI C function: LPM_VerifyDataset(). Please correct.
|
||||||
Time: 2016466 ps Iteration: 0 Process: /SimpleSumeSwitch_tb/LPM_VerifyDataset
|
Time: 2016466 ps Iteration: 0 Process: /SimpleSumeSwitch_tb/LPM_VerifyDataset
|
||||||
File: /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/Testbench/SimpleSumeSwitch_tb.sv
|
File: /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/Testbench/SimpleSumeSwitch_tb.sv
|
||||||
*** 2019-07-24: table size too small
|
*** DONE 2019-07-24: LIMIT table size too small
|
||||||
|
CLOSED: [2019-07-24 Wed 22:44]
|
||||||
- raising again - this is a total madness
|
- raising again - this is a total madness
|
||||||
|
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
|
@ -6558,6 +6562,231 @@ actions_nat64_generic.p4(173): error: could not not map table size size
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
*** DONE 2019-07-24: BUG unsupported data plane arguments
|
||||||
|
CLOSED: [2019-07-24 Wed 22:54]
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
actions_egress.p4(89): error: data-plane arguments in default_actions are currently unsupported: realmain_controller_debug_table_id_0
|
||||||
|
default_action = controller_debug_table_id(TABLE_V4_NETWORKS);
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/translate/core/lookupEngine.cpp:137
|
||||||
|
Compiler Bug: actions_egress.p4(89): unhandled expression realmain_controller_debug_table_id/realmain_controller_debug_table_id_0(5);
|
||||||
|
default_action = controller_debug_table_id(TABLE_V4_NETWORKS);
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
*** DONE 2019-07-24: BUG unhandled node: <IfStatement>(471564)
|
||||||
|
CLOSED: [2019-07-24 Wed 23:34]
|
||||||
|
- Removing the call to " delta_udp_from_v6_to_v4()" fixes the
|
||||||
|
problem.
|
||||||
|
- Calling v4sum() only works
|
||||||
|
- Calling v4sum() and v6sum() works
|
||||||
|
- Calling delta_prepare() that calls v4sum() and v6sum() works
|
||||||
|
- Calling delta_prepare() and delta_udp_from_v6_to_v4() FAILS
|
||||||
|
- Renaming delta_udp_from_v6_to_v4() to stupid() FAILS
|
||||||
|
- Emptying delta_udp_from_v6_to_v4() WORKS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
Compiler Bug: unhandled node: <IfStatement>(471564)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Commenting out 2 ifs (not nested) makes it compile again:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
// if(hdr.udp.isValid()) {
|
||||||
|
// #ifdef USE_NICO_DELTA_CHECKSUM
|
||||||
|
// delta_udp_from_v6_to_v4();
|
||||||
|
// #else
|
||||||
|
// meta.chk_udp_v4 = 1;
|
||||||
|
// #endif
|
||||||
|
// }
|
||||||
|
// if(hdr.tcp.isValid()) {
|
||||||
|
// #ifdef USE_NICO_DELTA_CHECKSUM
|
||||||
|
// delta_tcp_from_v6_to_v4();
|
||||||
|
// #else
|
||||||
|
|
||||||
|
// meta.chk_tcp_v4 = 1;
|
||||||
|
// #endif
|
||||||
|
// }
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Only enabling the following triggers the bug again:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
#ifdef USE_NICO_DELTA_CHECKSUM
|
||||||
|
delta_udp_from_v6_to_v4();
|
||||||
|
#else
|
||||||
|
meta.chk_udp_v4 = 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Even this code is enough:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
delta_udp_from_v6_to_v4();
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
This apply block still triggers the bug:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
apply {
|
||||||
|
if(hdr.ipv6.isValid()) {
|
||||||
|
if(nat64.apply().hit) { /* generic / static nat64 done */
|
||||||
|
// if(hdr.icmp6.isValid()) {
|
||||||
|
// nat64_icmp6_generic();
|
||||||
|
|
||||||
|
// // if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
|
||||||
|
// // hdr.icmp.type = ICMP_ECHO_REPLY;
|
||||||
|
// // hdr.icmp.code = 0;
|
||||||
|
// // }
|
||||||
|
// // if(hdr.icmp6.type == ICMP6_ECHO_REQUEST) {
|
||||||
|
// // hdr.icmp.type = ICMP_ECHO_REQUEST;
|
||||||
|
// // hdr.icmp.code = 0;
|
||||||
|
// // }
|
||||||
|
// }
|
||||||
|
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
delta_udp_from_v6_to_v4();
|
||||||
|
}
|
||||||
|
// if(hdr.tcp.isValid()) {
|
||||||
|
// #ifdef USE_NICO_DELTA_CHECKSUM
|
||||||
|
// delta_tcp_from_v6_to_v4();
|
||||||
|
// #else
|
||||||
|
|
||||||
|
// meta.chk_tcp_v4 = 1;
|
||||||
|
// #endif
|
||||||
|
// }
|
||||||
|
|
||||||
|
v4_networks.apply(); /* apply egress for IPv4 */
|
||||||
|
exit; /* no further v6 processing */
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
lookup_table.apply();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
This works:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
v4sum();
|
||||||
|
v6sum();
|
||||||
|
|
||||||
|
// delta_udp_from_v6_to_v4();
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
This works:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
// v4sum();
|
||||||
|
// v6sum();
|
||||||
|
delta_prepare();
|
||||||
|
|
||||||
|
// delta_udp_from_v6_to_v4();
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
This does not work:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
delta_prepare();
|
||||||
|
delta_udp_from_v6_to_v4();
|
||||||
|
}
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Also fails:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
//delta_prepare();
|
||||||
|
//delta_udp_from_v6_to_v4();
|
||||||
|
stupid();
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Works:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
action delta_udp_from_v6_to_v4() {}
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Works also:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
action delta_udp_from_v6_to_v4()
|
||||||
|
{
|
||||||
|
delta_prepare();
|
||||||
|
|
||||||
|
bit<17> tmp = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum;
|
||||||
|
// if (tmp[16:16] == 1) {
|
||||||
|
// tmp = tmp + 1;
|
||||||
|
// tmp[16:16] = 0;
|
||||||
|
// }
|
||||||
|
// tmp = tmp + (bit<17>) (0xffff - meta.v6sum);
|
||||||
|
// if (tmp[16:16] == 1) {
|
||||||
|
// tmp = tmp + 1;
|
||||||
|
// tmp[16:16] = 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
hdr.udp.checksum = (bit<16>) tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
Fails:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
action delta_udp_from_v6_to_v4()
|
||||||
|
{
|
||||||
|
delta_prepare();
|
||||||
|
|
||||||
|
bit<17> tmp = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum;
|
||||||
|
if (tmp[16:16] == 1) {
|
||||||
|
tmp = tmp + 1;
|
||||||
|
tmp[16:16] = 0;
|
||||||
|
}
|
||||||
|
// tmp = tmp + (bit<17>) (0xffff - meta.v6sum);
|
||||||
|
// if (tmp[16:16] == 1) {
|
||||||
|
// tmp = tmp + 1;
|
||||||
|
// tmp[16:16] = 0;
|
||||||
|
// }
|
||||||
|
|
||||||
|
hdr.udp.checksum = (bit<16>) tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
** 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
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 22:52:54 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(471564)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,193 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 22:58:06 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
||||||
|
Compilation successful
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_externs.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ ./testdata/ ./sw/ --base_address 0x44020000
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_API.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ sw/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ --base_address 0x44020000
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_CLI.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ sw/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ --base_address 0x44020000
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/CLI'
|
||||||
|
cc -c -fPIC /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API/CAM.c -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API
|
||||||
|
cc -std=c99 -Wall -Werror -fPIC -c libcam.c -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/sw/sume -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API
|
||||||
|
cc -L/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/sw/sume -shared -o libcam.so libcam.o CAM.o -lsumereg
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/CLI'
|
||||||
|
# The following command only applies if running P4_SWITCH Questa Simulation with Ubuntu
|
||||||
|
sed -i 's/vsim/vsim \-ldflags \"\-B\/usr\/lib\/x86\_64\-linux-gnu\"/g' nf_sume_sdnet_ip/SimpleSumeSwitch/questa.bash
|
||||||
|
# modify the P4_SWITCH_tb so that it writes the table configuration writes to a file
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/modify_P4_SWITCH_tb.py nf_sume_sdnet_ip/SimpleSumeSwitch/Testbench/SimpleSumeSwitch_tb.sv
|
||||||
|
# Fix introduced for SDNet 2017.4
|
||||||
|
sed -i 's/xsim\.dir\/xsc\/dpi\.so/dpi\.so/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim.bash
|
||||||
|
sed -i 's/xsim\.dir\/xsc\/dpi\.so/dpi\.so/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
# Fix introduced for SDNet 2018.2
|
||||||
|
sed -i 's/glbl_sim/glbl/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
sed -i 's/SimpleSumeSwitch_tb_sim#work.glbl/SimpleSumeSwitch_tb/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
cp src/*.tbl nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
cp testdata/*.txt nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
cp testdata/*.axi nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 22:58:13 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch
|
||||||
|
+ ./vivado_sim.bash
|
||||||
|
+ find -name '*.v' -o -name '*.vp' -o -name '*.sv'
|
||||||
|
+ xargs -I % /opt/Xilinx/Vivado/2018.2/bin/xvlog -sv %
|
||||||
|
INFO: [VRFC 10-2263] Analyzing SystemVerilog file "/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/TopPipe_lvl_0_t.HDL/TopPipe_lvl_0_t.v" into library work
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t
|
||||||
|
INFO: [VRFC 10-2263] Analyzing SystemVerilog file "/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/TopPipe_lvl_0_t.HDL/TopPipe_lvl_0_t.vp" into library work
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_Engine
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_4
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_4_compute_realmain_lookup_table_0_req_lookup_request_key
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_4_compute_local_state_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_4_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_4_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_1
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_0_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_0_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_0_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_2
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_NoAction_3_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_NoAction_3_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_NoAction_3_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec_compute_user_metadata_task
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec_compute_user_metadata_ingress_port
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec_compute_sume_metadata_dst_port
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_2_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_user_metadata_table_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_user_metadata_task
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_user_metadata_ingress_port
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_sume_metadata_dst_port
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_controller_debug_table_id_2_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_TopPipe_fl_realmain_src_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_TopPipe_fl_realmain_dst_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_version
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_ihl
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_diff_serv
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_ecn
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_totalLen
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_identification
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_flags
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_fragOffset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_ttl
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_protocol
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_src_addr
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_dst_addr
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ethernet_ethertype
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv4_checksum
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_p_ipv6_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_static_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_3
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_3
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_3_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_3_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_4
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_0_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_0_sec_compute_TopPipe_fl_realmain_tmp_2
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_0_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_0_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_sec_compute_TopPipe_fl_realmain_tmp_2
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_5
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_2
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_2_compute_realmain_lookup_table_0_req_lookup_request_key
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_2_compute_local_state_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_2_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_2_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_6
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_1
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_1_compute_realmain_lookup_table_0_req_lookup_request_key
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_1_compute_local_state_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_1_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_1_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_7
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_p_icmp_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_p_ipv4_protocol
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_user_metadata_switch_task
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_user_metadata_chk_icmp
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_p_icmp6_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_p_icmp6_na_ns_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_p_icmp6_option_link_layer_addr_isValid
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_realmain_nat64_icmp6_generic_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_8
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_0_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_0_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_9
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_1_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_1_sec_compute_p_icmp_type
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_1_sec_compute_p_icmp_code
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_1_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_1_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_10
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_compute_realmain_v4_networks_0_req_lookup_request_key_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_compute_local_state_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_condition_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_11
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_p_icmp_type
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_p_icmp_code
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_realmain_v4_networks_0_req_lookup_request_key_0
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_local_state_id
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_act_2_sec_compute_control_increment_offset
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_EngineStage_12
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_local_end
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_local_end_compute_control_nextSection
|
||||||
|
INFO: [VRFC 10-311] analyzing module TopPipe_lvl_0_t_local_end_compute_control_increment_offset
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 22:59:50 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f ./nf_sume_sdnet_ip/SimpleSumeSwitch/xvlog.log
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(428613)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:01:04 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(428613)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:02:04 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(429024)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:02:45 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(420697)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:03:32 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(409360)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:04:49 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:06:01 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:06:39 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(429147)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:07:33 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(433822)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,26 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:08:23 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
minip4_solution.p4(146): error: Could not find declaration for stupid
|
||||||
|
stupid();
|
||||||
|
^^^^^^
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 1
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:08:43 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(429150)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:09:11 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,77 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:09:59 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
||||||
|
Compilation successful
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_externs.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ ./testdata/ ./sw/ --base_address 0x44020000
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_API.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ sw/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ --base_address 0x44020000
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/gen_P4_SWITCH_CLI.py src/.sdnet_switch_info.dat nf_sume_sdnet_ip/SimpleSumeSwitch/ sw/ /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/templates/ --base_address 0x44020000
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/CLI'
|
||||||
|
cc -c -fPIC /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API/CAM.c -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API
|
||||||
|
cc -std=c99 -Wall -Werror -fPIC -c libcam.c -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/sw/sume -I/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/API
|
||||||
|
cc -L/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/sw/sume -shared -o libcam.so libcam.o CAM.o -lsumereg
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/sw/CLI'
|
||||||
|
# The following command only applies if running P4_SWITCH Questa Simulation with Ubuntu
|
||||||
|
sed -i 's/vsim/vsim \-ldflags \"\-B\/usr\/lib\/x86\_64\-linux-gnu\"/g' nf_sume_sdnet_ip/SimpleSumeSwitch/questa.bash
|
||||||
|
# modify the P4_SWITCH_tb so that it writes the table configuration writes to a file
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/modify_P4_SWITCH_tb.py nf_sume_sdnet_ip/SimpleSumeSwitch/Testbench/SimpleSumeSwitch_tb.sv
|
||||||
|
# Fix introduced for SDNet 2017.4
|
||||||
|
sed -i 's/xsim\.dir\/xsc\/dpi\.so/dpi\.so/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim.bash
|
||||||
|
sed -i 's/xsim\.dir\/xsc\/dpi\.so/dpi\.so/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
# Fix introduced for SDNet 2018.2
|
||||||
|
sed -i 's/glbl_sim/glbl/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
sed -i 's/SimpleSumeSwitch_tb_sim#work.glbl/SimpleSumeSwitch_tb/g' nf_sume_sdnet_ip/SimpleSumeSwitch/vivado_sim_waveform.bash
|
||||||
|
cp src/*.tbl nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
cp testdata/*.txt nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
cp testdata/*.axi nf_sume_sdnet_ip/SimpleSumeSwitch/
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:10:05 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch
|
||||||
|
+ ./vivado_sim.bash
|
||||||
|
+ find -name '*.v' -o -name '*.vp' -o -name '*.sv'
|
||||||
|
+ xargs -I % /opt/Xilinx/Vivado/2018.2/bin/xvlog -sv %
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:11:02 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f ./nf_sume_sdnet_ip/SimpleSumeSwitch/xvlog.log
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:12:17 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(422347)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:13:26 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(429175)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:14:59 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:16:04 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
./gen_testdata.py
|
||||||
|
Applying pkt on nf0 at 1:
|
||||||
|
Applying pkt on nf1 at 2:
|
||||||
|
Applying pkt on nf2 at 3:
|
||||||
|
Applying pkt on nf3 at 4:
|
||||||
|
nf0_applied times: [1]
|
||||||
|
nf1_applied times: [2]
|
||||||
|
nf2_applied times: [3]
|
||||||
|
nf3_applied times: [4]
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_in.axi --bus_width 256 src.pcap
|
||||||
|
/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/pcap2axi --output Packet_expect.axi --bus_width 256 dst.pcap
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
sdnet ./src/minip4.sdnet -skipEval -busType axi -busWidth 256 -singlecontrolport -workDir nf_sume_sdnet_ip -altVivadoScripts
|
||||||
|
Xilinx SDNet Compiler version 2018.2, build 2342300
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:16:43 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
actions_egress.p4(52): warning: Table v6_networks is not used; removing
|
||||||
|
table v6_networks {
|
||||||
|
^^^^^^^^^^^
|
||||||
|
actions_nat64_generic.p4(178): warning: Table nat46 is not used; removing
|
||||||
|
table nat46 {
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(42): [--Wwarn=uninitialized_out_param] warning: out parameter meta may be uninitialized when RealParser terminates
|
||||||
|
out metadata meta,
|
||||||
|
^^^^
|
||||||
|
minip4_solution.p4(39)
|
||||||
|
parser RealParser(
|
||||||
|
^^^^^^^^^^
|
||||||
|
terminate called after throwing an instance of 'Util::CompilerBug'
|
||||||
|
what(): In file: /wrk/hdscratch/staff/mohan/p4c_sdnet/build/p4c/extensions/sdnet/writers/pxWriter.h:20
|
||||||
|
[31mCompiler Bug[0m: unhandled node: <IfStatement>(419979)
|
||||||
|
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 134
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
|
@ -0,0 +1,59 @@
|
||||||
|
+ date
|
||||||
|
Mit Jul 24 23:26:01 CEST 2019
|
||||||
|
+ cd /home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
|
||||||
|
+ make
|
||||||
|
make -C src/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
rm -f *.sdnet *.tbl .sdnet_switch_info.dat
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
make -C testdata/ clean
|
||||||
|
make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/testdata'
|
||||||
|
rm -rf nf_sume_sdnet_ip/
|
||||||
|
rm -f
|
||||||
|
rm -f sw/config_tables.c
|
||||||
|
make -C src/
|
||||||
|
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
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
minip4_solution.p4(149): error: Could not find declaration for tmp17
|
||||||
|
delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
^^^^^
|
||||||
|
Makefile:34: recipe for target 'all' failed
|
||||||
|
make[1]: *** [all] Error 1
|
||||||
|
make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
|
||||||
|
Makefile:31: recipe for target 'frontend' failed
|
||||||
|
make: *** [frontend] Error 2
|
File diff suppressed because it is too large
Load Diff
|
@ -50,22 +50,31 @@ action delta_prepare()
|
||||||
v6sum();
|
v6sum();
|
||||||
}
|
}
|
||||||
|
|
||||||
action delta_udp_from_v4_to_v6()
|
|
||||||
|
#ifdef _SUME_SWITCH_P4_
|
||||||
|
#define delta_udp_from_v6_to_v4 delta_prepare (); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
#define delta_tcp_from_v6_to_v4 delta_prepare (); tmp17 = (bit<17>) hdr.tcp.checksum + (bit<17>) meta.v4sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v6sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.tcp.checksum = (bit<16>) tmp17;
|
||||||
|
|
||||||
|
#define delta_tcp_from_v4_to_v6 delta_prepare(); tmp17 = (bit<17>) hdr.tcp.checksum + (bit<17>) meta.v6sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v4sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.tcp.checksum = (bit<16>) tmp17;
|
||||||
|
#define delta_udp_from_v4_to_v6 delta_prepare(); tmp17 = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v6sum; if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } tmp17 = tmp17 + (bit<17>) (0xffff - meta.v4sum); if (tmp17[16:16] == 1) { tmp17 = tmp17 + 1; tmp17[16:16] = 0; } hdr.udp.checksum = (bit<16>) tmp17;
|
||||||
|
|
||||||
|
#else
|
||||||
|
action delta_tcp_from_v6_to_v4()
|
||||||
{
|
{
|
||||||
delta_prepare();
|
delta_prepare();
|
||||||
|
|
||||||
bit<17> tmp = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v6sum;
|
bit<17> tmp = (bit<17>) hdr.tcp.checksum + (bit<17>) meta.v4sum;
|
||||||
if (tmp[16:16] == 1) {
|
if (tmp[16:16] == 1) {
|
||||||
tmp = tmp + 1;
|
tmp = tmp + 1;
|
||||||
tmp[16:16] = 0;
|
tmp[16:16] = 0;
|
||||||
}
|
}
|
||||||
tmp = tmp + (bit<17>) (0xffff - meta.v4sum);
|
tmp = tmp + (bit<17>) (0xffff - meta.v6sum);
|
||||||
if (tmp[16:16] == 1) {
|
if (tmp[16:16] == 1) {
|
||||||
tmp = tmp + 1;
|
tmp = tmp + 1;
|
||||||
tmp[16:16] = 0;
|
tmp[16:16] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr.udp.checksum = (bit<16>) tmp;
|
hdr.tcp.checksum = (bit<16>) tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
action delta_udp_from_v6_to_v4()
|
action delta_udp_from_v6_to_v4()
|
||||||
|
@ -104,24 +113,26 @@ action delta_tcp_from_v4_to_v6()
|
||||||
hdr.tcp.checksum = (bit<16>) tmp;
|
hdr.tcp.checksum = (bit<16>) tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
action delta_tcp_from_v6_to_v4()
|
action delta_udp_from_v4_to_v6()
|
||||||
{
|
{
|
||||||
delta_prepare();
|
delta_prepare();
|
||||||
|
|
||||||
bit<17> tmp = (bit<17>) hdr.tcp.checksum + (bit<17>) meta.v4sum;
|
bit<17> tmp = (bit<17>) hdr.udp.checksum + (bit<17>) meta.v6sum;
|
||||||
if (tmp[16:16] == 1) {
|
if (tmp[16:16] == 1) {
|
||||||
tmp = tmp + 1;
|
tmp = tmp + 1;
|
||||||
tmp[16:16] = 0;
|
tmp[16:16] = 0;
|
||||||
}
|
}
|
||||||
tmp = tmp + (bit<17>) (0xffff - meta.v6sum);
|
tmp = tmp + (bit<17>) (0xffff - meta.v4sum);
|
||||||
if (tmp[16:16] == 1) {
|
if (tmp[16:16] == 1) {
|
||||||
tmp = tmp + 1;
|
tmp = tmp + 1;
|
||||||
tmp[16:16] = 0;
|
tmp[16:16] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr.tcp.checksum = (bit<16>) tmp;
|
hdr.udp.checksum = (bit<16>) tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
action delta_ipv4_from_v6_to_v4()
|
action delta_ipv4_from_v6_to_v4()
|
||||||
{
|
{
|
||||||
bit<16> tmp = 0;
|
bit<16> tmp = 0;
|
||||||
|
@ -137,34 +148,17 @@ action delta_ipv4_from_v6_to_v4()
|
||||||
( ((bit<16>) hdr.ipv4.diff_serv) << 2) +
|
( ((bit<16>) hdr.ipv4.diff_serv) << 2) +
|
||||||
( (bit<16>) hdr.ipv4.ecn);
|
( (bit<16>) hdr.ipv4.ecn);
|
||||||
tmp = tmp + shift_tmp;
|
tmp = tmp + shift_tmp;
|
||||||
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.version; /* 4 bit */
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.ihl; /* 4 bit */
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.diff_serv; /* 6 bit */
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.ecn; /* 2 bit */
|
|
||||||
|
|
||||||
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.totalLen; /* 16 bit */
|
tmp = tmp + (bit<16>) hdr.ipv4.totalLen; /* 16 bit */
|
||||||
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.identification; /* 16 bit */
|
tmp = tmp + (bit<16>) hdr.ipv4.identification; /* 16 bit */
|
||||||
|
|
||||||
shift_tmp = ((bit<16>) (hdr.ipv4.flags) << 13) +
|
shift_tmp = ((bit<16>) (hdr.ipv4.flags) << 13) +
|
||||||
((bit<16>) hdr.ipv4.fragOffset);
|
((bit<16>) hdr.ipv4.fragOffset);
|
||||||
tmp = tmp + shift_tmp;
|
tmp = tmp + shift_tmp;
|
||||||
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.flags; /* 3 bit */
|
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.fragOffset; /* 13 bit */
|
|
||||||
|
|
||||||
shift_tmp = ((bit<16>) (hdr.ipv4.ttl) << 8) +
|
shift_tmp = ((bit<16>) (hdr.ipv4.ttl) << 8) +
|
||||||
((bit<16>) hdr.ipv4.protocol);
|
((bit<16>) hdr.ipv4.protocol);
|
||||||
tmp = tmp + shift_tmp;
|
tmp = tmp + shift_tmp;
|
||||||
|
tmp = tmp + (bit<16>) hdr.ipv4.src_addr[15:0]; /* 16 bit */
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.ttl; /* 8 bit */
|
tmp = tmp + (bit<16>) hdr.ipv4.src_addr[31:16]; /* 16 bit */
|
||||||
// tmp = tmp + (bit<16>) hdr.ipv4.protocol; /* 8 bit */
|
tmp = tmp + (bit<16>) hdr.ipv4.dst_addr[15:0]; /* 16 bit */
|
||||||
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.src_addr[15:0]; /* 16 bit */
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.src_addr[31:16]; /* 16 bit */
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.dst_addr[15:0]; /* 16 bit */
|
|
||||||
tmp = tmp + (bit<16>) hdr.ipv4.dst_addr[31:16]; /* 16 bit */
|
tmp = tmp + (bit<16>) hdr.ipv4.dst_addr[31:16]; /* 16 bit */
|
||||||
|
|
||||||
hdr.ipv4.checksum = ~tmp;
|
hdr.ipv4.checksum = ~tmp;
|
||||||
|
|
|
@ -67,7 +67,12 @@ table v6_networks {
|
||||||
}
|
}
|
||||||
size = ROUTING_TABLE_SIZE;
|
size = ROUTING_TABLE_SIZE;
|
||||||
|
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
default_action = controller_debug_table_id(TABLE_V6_NETWORKS);
|
default_action = controller_debug_table_id(TABLE_V6_NETWORKS);
|
||||||
|
#else
|
||||||
|
default_action = controller_debug;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table v4_networks {
|
table v4_networks {
|
||||||
|
@ -86,6 +91,11 @@ table v4_networks {
|
||||||
NoAction;
|
NoAction;
|
||||||
}
|
}
|
||||||
size = ROUTING_TABLE_SIZE;
|
size = ROUTING_TABLE_SIZE;
|
||||||
|
|
||||||
|
#ifndef _SUME_SWITCH_P4_
|
||||||
default_action = controller_debug_table_id(TABLE_V4_NETWORKS);
|
default_action = controller_debug_table_id(TABLE_V4_NETWORKS);
|
||||||
|
#else
|
||||||
|
default_action = controller_debug;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
|
@ -2,29 +2,10 @@
|
||||||
#include <sume_switch.p4>
|
#include <sume_switch.p4>
|
||||||
#include "headers.p4"
|
#include "headers.p4"
|
||||||
|
|
||||||
// typedef bit<48> EthAddr_t;
|
|
||||||
// header Ethernet_h {
|
|
||||||
// EthAddr_t dstAddr;
|
|
||||||
// EthAddr_t srcAddr;
|
|
||||||
// bit<16> etherType;
|
|
||||||
// }
|
|
||||||
|
|
||||||
//typedef struct headers Parsed_packet;
|
|
||||||
|
|
||||||
#define Parsed_packet headers
|
#define Parsed_packet headers
|
||||||
#define user_metadata_t metadata
|
#define user_metadata_t metadata
|
||||||
|
|
||||||
//struct Parsed_packet {
|
// digest_data, MUST be 256 bits -- not using it
|
||||||
// Ethernet_h ethernet;
|
|
||||||
//}
|
|
||||||
|
|
||||||
// user defined metadata: can be used to share information between
|
|
||||||
// TopParser, TopPipe, and TopDeparser
|
|
||||||
//struct user_metadata_t {
|
|
||||||
// bit<8> unused;
|
|
||||||
//}
|
|
||||||
|
|
||||||
// digest_data, MUST be 256 bits -- what is this used for?
|
|
||||||
struct digest_data_t {
|
struct digest_data_t {
|
||||||
bit<256> unused;
|
bit<256> unused;
|
||||||
}
|
}
|
||||||
|
@ -75,6 +56,7 @@ control RealMain(
|
||||||
|
|
||||||
#include "actions_nat64_generic.p4"
|
#include "actions_nat64_generic.p4"
|
||||||
#include "actions_egress.p4"
|
#include "actions_egress.p4"
|
||||||
|
#include "actions_delta_checksum.p4"
|
||||||
|
|
||||||
|
|
||||||
action swap_eth_addresses() {
|
action swap_eth_addresses() {
|
||||||
|
@ -122,10 +104,12 @@ control RealMain(
|
||||||
}
|
}
|
||||||
|
|
||||||
apply {
|
apply {
|
||||||
|
bit<17> tmp17 = 0;
|
||||||
if(hdr.ipv6.isValid()) {
|
if(hdr.ipv6.isValid()) {
|
||||||
if(nat64.apply().hit) { /* generic / static nat64 done */
|
if(nat64.apply().hit) { /* generic / static nat64 done */
|
||||||
if(hdr.icmp6.isValid()) {
|
if(hdr.icmp6.isValid()) {
|
||||||
nat64_icmp6_generic();
|
nat64_icmp6_generic();
|
||||||
|
|
||||||
if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
|
if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
|
||||||
hdr.icmp.type = ICMP_ECHO_REPLY;
|
hdr.icmp.type = ICMP_ECHO_REPLY;
|
||||||
hdr.icmp.code = 0;
|
hdr.icmp.code = 0;
|
||||||
|
@ -134,10 +118,46 @@ control RealMain(
|
||||||
hdr.icmp.type = ICMP_ECHO_REQUEST;
|
hdr.icmp.type = ICMP_ECHO_REQUEST;
|
||||||
hdr.icmp.code = 0;
|
hdr.icmp.code = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
delta_udp_from_v6_to_v4
|
||||||
|
}
|
||||||
|
|
||||||
|
if(hdr.tcp.isValid()) {
|
||||||
|
delta_tcp_from_v6_to_v4
|
||||||
|
}
|
||||||
|
|
||||||
|
v4_networks.apply(); /* apply egress for IPv4 */
|
||||||
|
exit; /* no further v6 processing */
|
||||||
|
|
||||||
|
} else if(hdr.ipv4.isValid()) {
|
||||||
|
if(icmp.apply().hit) {
|
||||||
|
v4_networks.apply();
|
||||||
|
exit;
|
||||||
|
} else if(nat46.apply().hit) {
|
||||||
|
if(hdr.icmp.isValid()) {
|
||||||
|
nat46_icmp_generic();
|
||||||
|
|
||||||
|
if(hdr.icmp.type == ICMP_ECHO_REPLY) {
|
||||||
|
hdr.icmp6.type = ICMP6_ECHO_REPLY;
|
||||||
|
}
|
||||||
|
if(hdr.icmp.type == ICMP_ECHO_REQUEST) {
|
||||||
|
hdr.icmp6.type = ICMP6_ECHO_REQUEST;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(hdr.udp.isValid()) {
|
||||||
|
delta_udp_from_v4_to_v6
|
||||||
|
}
|
||||||
|
if(hdr.tcp.isValid()) {
|
||||||
|
delta_tcp_from_v4_to_v6
|
||||||
|
}
|
||||||
|
|
||||||
|
v6_networks.apply();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
v4_networks.apply(); /* regular routing, egress */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
lookup_table.apply();
|
lookup_table.apply();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue