This repository contains an example AF_XDP client and server implementation in Go
sudo apt install clang llvm libelf-dev libpcap-dev build-essential libc6-dev-i386 m4 libbpf-deveval $(./env/testenv.sh alias)Use t to test the environment setup.
t setup --name afxdpTo clean
t teardownmake runThis starts the server application with AF_XDP enabled
Note
VERY IMPORTANT:
sudo ip link set dev veth0 mtu 3000 # inside the namespacesudo ip link set dev afxdp mtu 3000 # outside the namespaceExec into the network namespace afxdp to run the client application.
sudo ip netns exec afxdp bash Then run the client application:
./kyber-bin client