p4c-xdp
Backend for the P4 compiler targeting XDP
File Explorer
Download Latest Version (.zip)- test.yml
- p4xdp-workflow.png
- .gitignore
- acmart.cls
- architecture.pdf
- background.tex
- compilation.tex
- conclusions.tex
- introduction.tex
- kernel_test.png
- Makefile
- p4cxdp-lpc18.pdf
- results.tex
- stf.pdf
- stf.vsdx
- testing.tex
- testing_workflow.pdf
- testing_workflow.vsdx
- titlesec.sty
- top.bib
- top.tex
- user_test.png
- lpc18.pdf
- p4c-xdp-lpc18-presentation.pdf
- p4xdp-iovisor17.pdf
- perf.txt
- bpf_helpers.h
- bpf_load.c
- bpf_load.h
- COPYING
- libbpf.c
- libbpf.h
- Makefile
- xdp_model.p4
- ebpf_headers.p4
- ebpf_xdp.h
- empty.stf
- load_and_verify.c
- Makefile
- README.md
- user_xdp10.c
- user_xdp5.c
- xdp.p4
- xdp.stf
- xdp1.p4
- xdp1.stf
- xdp10.p4
- xdp11.p4
- xdp12.p4
- xdp13.p4
- xdp14.p4
- xdp15.p4
- xdp16.p4
- xdp17.p4
- xdp2.p4
- xdp2.stf
- xdp3.p4
- xdp4.p4
- xdp5.p4
- xdp6.p4
- xdp7.p4
- xdp8.p4
- xdp9.p4
- install_dependencies.sh
- .gitignore
- AUTHORS
- CMakeLists.txt
- compile-bpf.sh
- Dockerfile
- LICENSE
- ovs-parse-14.p4
- ovs.c
- ovs.p4
- p4c-xdp.cpp
- README.md
- run-bpf.sh
- run-p4c-xdp.sh
- target.cpp
- target.h
- test_ebpf_map.c
- Vagrantfile
- xdp_target.py
- xdpBackend.cpp
- xdpBackend.h
- xdpControl.cpp
- xdpControl.h
- xdpModel.cpp
- xdpModel.h
- xdpProgram.cpp
- xdpProgram.h
# Installation Guide
git clone https://github.com/vmware-archive/p4c-xdp
Downloads the entire project code from GitHub to your computer.
cd p4c-xdp
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
$ docker pull u9012063/p4xdp
Type this command into your terminal and run it.
root@ubuntu-xenial:/home/ubuntu# docker images
Type this command into your terminal and run it.
root@ubuntu-xenial:/home/ubuntu# docker run -it -u root --privileged <IMAGE ID>
Runs the built image as an actual container.
Pulled directly from this repo's README.
3. CMake
Mediumcmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
Pulled directly from this repo's README.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
make check-xdp
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
