An open API service indexing awesome lists of open source software.

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)

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
```