Refactor
This commit is contained in:
parent
01a89d9ace
commit
0924655e4b
2 changed files with 17 additions and 0 deletions
17
xdp/README.md
Normal file
17
xdp/README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
Compile:
|
||||||
|
|
||||||
|
```
|
||||||
|
clang -O2 -Wall -target bpf -c main.c -o main.o
|
||||||
|
```
|
||||||
|
|
||||||
|
Load:
|
||||||
|
|
||||||
|
```
|
||||||
|
ip link set dev lo xdp obj main.o
|
||||||
|
```
|
||||||
|
|
||||||
|
Unload:
|
||||||
|
|
||||||
|
```
|
||||||
|
ip link set dev lo xdp off
|
||||||
|
```
|
Loading…
Reference in a new issue