xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

advanced03-AF_XDP: load file fails on recent Linux kernels

Open uablrek opened this issue 2 years ago • 1 comments

Some time around linux-5.13 loading fails with;

# ./af_xdp_user -d eth1 --filename af_xdp_kern.o
libbpf: Netlink-based XDP prog detected, please unload it in order to launch AF_XDP prog
ERROR: Can't setup AF_XDP socket "Invalid argument"

uablrek avatar May 19 '22 13:05 uablrek

Start without --filename works;

# ./af_xdp_user -d eth1
AF_XDP RX:             0 pkts (         0 pps)           0 Kbytes (     0 Mbits/s) period:2.000275
       TX:             0 pkts (         0 pps)           0 Kbytes (     0 Mbits/s) period:2.000275

AF_XDP RX:             0 pkts (         0 pps)           0 Kbytes (     0 Mbits/s) period:2.003799
       TX:             0 pkts (         0 pps)           0 Kbytes (     0 Mbits/s) period:2.003799

uablrek avatar May 19 '22 13:05 uablrek