• Home
Name Date Size #Lines LOC

..--

testoutputs/03-May-2024-

testprograms/03-May-2024-561475

README.txtD03-May-2024648 1711

cleanup.shD03-May-2024216 125

endToEndTest.pyD03-May-202412.3 KiB376252

testP4toEbpf.pyD03-May-20242.4 KiB8659

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