README.txt
1This folder contains tests for the P4->C->EBPF compiler
2
3- cleanup.sh should be run if for some reason endToEndTest.py crashes
4 and leaves garbage namespaces or links
5
6- testP4toEbpf.py compiles all P4 files in the testprograms folder and
7 deposits the corresponding C files in the testoutputs folder
8
9- endToEndTest.py runs a complete end-to-end test compiling the
10 testprograms/simple.p4 program, creating a virtual network with 3
11 boxes (using network namespaces): client, server, switch, loading
12 the EBPF into the kernel of the switch box using the TC, and
13 implementing the forwarding in the switch solely using the P4
14 program.
15
16
17