XDP compatibility checker and runtime verification
xdp-check verifies that your Linux system supports XDP and checks if XDP programs (specifically agave_xdp) are currently loaded and active.
- kernel compatibility check - verifies kernel version and XDP support
- capabilities check - validates required system capabilities
- system resources - checks rlimit and memlock settings
- network interface check - verifies NIC driver support for XDP
- runtime detection - detects loaded XDP programs using BPF syscalls (via aya)
- linux kernel 4.18+ (6.xx recommended for full XDP support)
- root/sudo privileges (for runtime checks and BPF operations)
cargo build --releasethe binary will be available at ./target/release/xdp-check
sudo ./xdp-checkverify if agave_xdp or other XDP programs are currently loaded:
sudo ./xdp-check runtimesudo ./xdp-check nic eth0enable detailed debug logs:
sudo RUST_LOG=debug ./xdp-check runtimeruntime check uses the aya library to query loaded BPF programs directly via syscalls. it will detect:
- whether
agave_xdpprogram is loaded - program ID and tag/hash
- program type (XDP)
- other XDP programs in the system
do what ever you want