Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Updated README and Makefile for libxdp
Browse files Browse the repository at this point in the history
Signed-off-by: phansGithub <root@silpixa00401197b.ir.intel.com>
  • Loading branch information
phansGithub committed Nov 15, 2023
1 parent 38317c2 commit 3872797
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,27 @@ e2edaemon: image
@echo
@echo

install-xdp:
@echo "****** Install libxdp ******"
@echo
sudo apt update && \
sudo apt install -y wget build-essential golang && \
sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf1_1.1.0-1_amd64.deb && \
sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf-dev_1.1.0-1_amd64.deb && \
sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp1_1.3.0-2ubuntu2_amd64.deb &&\
sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp-dev_1.3.0-2ubuntu2_amd64.deb && \
sudo apt install -y ./libbpf1_1.1.0-1_amd64.deb && \
sudo apt install -y ./libbpf-dev_1.1.0-1_amd64.deb && \
sudo apt install -y ./libxdp1_1.3.0-2ubuntu2_amd64.deb && \
sudo apt install -y ./libxdp-dev_1.3.0-2ubuntu2_amd64.deb
@echo
@echo "****** Cleanup ******"
rm ./libbpf1_1.1.0-1_amd64.deb && \
rm ./libbpf-dev_1.1.0-1_amd64.deb && \
rm ./libxdp1_1.3.0-2ubuntu2_amd64.deb && \
rm ./libxdp-dev_1.3.0-2ubuntu2_amd64.deb
@echo

e2efulldaemon: image
@echo "****** Full E2E DaemSet ******"
@echo
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ The following prerequisites are required to build and deploy the plugins from so
- **llvm**
- Compiling the bpf progs for Kind.
- Install on Ubuntu: `apt install llvm`
- **libxdp**
- Same as Libbpf, to load and uload the XDP program onto the network device.
- Installation: `make install-xdp`

### Static analysis, linting and formatting

Expand Down

0 comments on commit 3872797

Please sign in to comment.