-
Notifications
You must be signed in to change notification settings - Fork 16
Updated README for libxdp #84
base: main
Are you sure you want to change the base?
Conversation
69159cc
to
3872797
Compare
Makefile
Outdated
@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 && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation here needs fixing
README.md
Outdated
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*unload (spellcheck)
Might be worth adding just a brief about what we're doing - installing libbpf, the wget packages and libxdp.
Also, I think we should be doing a libbpf check on the host first as we're including it as the first step of the libxdp installation:
If not present = first install libbpf
else = install libxdp
If we're to break the installation process to 2 sections (libbpf and libxdp) both steps will be required for the ci-public.yml.
@garyloug, we might discuss this further.
d2cb853
to
d851338
Compare
Makefile
Outdated
install-xdp: | ||
@echo "****** Install libxdp ******" | ||
@echo | ||
sudo apt update && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if someone is running on Fedora, apt instructions won't work.
I don't know about adding this to the Makefile, we don't typically install any other dependencies for the project, we list them in the readme and the expectation is that the user ensures the dependencies are installed.
README.md
Outdated
@@ -97,6 +97,10 @@ 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 unload the XDP program onto the network device. | |||
- Installation: `make install-xdp` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Installation: `make install-xdp` | |
- Install on Ubuntu: `make install-xdp` |
Makefile
Outdated
install-xdp: | ||
@echo "****** Install libxdp ******" | ||
@echo | ||
sudo apt update && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively add a check to verify one is running on ubuntu before proceeding.
Signed-off-by: phansGithub <[email protected]>
d851338
to
6241e24
Compare
Note: New libxdp installation commands are unaligned, will fix.