https://github.com/rogercoll/xdp
Testing eBPF - XDP (eXpress Data Path)
https://github.com/rogercoll/xdp
Last synced: 11 months ago
JSON representation
Testing eBPF - XDP (eXpress Data Path)
- Host: GitHub
- URL: https://github.com/rogercoll/xdp
- Owner: rogercoll
- Created: 2020-09-23T13:58:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T15:14:24.000Z (almost 6 years ago)
- Last Synced: 2025-08-22T03:34:05.195Z (11 months ago)
- Language: C
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Development
Tested in Amazon Linux 2 operating system.
# Prerequisits
- Two network interfaces (to not lose the SSH connection)
- ENA driver version >= 2.2.0 (to support XDP, if not available you cannot you XDP Native Mode)
# Compilation && Net Interface attachment
```
clang -O2 -Wall -target bpf -g -c xdp-example.c -o xdp-example.o
ip link set dev eth1 xdpdrv object xdp-example.o (Native mode)
ip link set dev eth1 xdpgeneric object xdp-example.o (Generic mode)
```
# Verification and dis(attachment)
```
ping -I eth1 1.1.1.1
ip link set dev eth1 xdp off
```