Loading of XDP program fails with `missing BPF prog type, check ELF section name 'xdp/dispatcher'`
fnordahl opened this issue · comments
The Open vSwitch project makes use of libbpf and libxdp to enable use of AF_XDP.
If Open vSwitch is compiled with libbpf 0.8 (which corresponds to libpf from a 5.19 kernel) it works OK.
If it is compiled with a more recent libbpf, attaching the XDP program fails with:
libbpf: prog 'xdp_dispatcher': missing BPF prog type, check ELF section name 'xdp/dispatcher'
libbpf: prog 'xdp_dispatcher': failed to load: -22
I suspect xdp-tools need an update similar to [0] after [1].
0: https://lore.kernel.org/lkml/tencent_7DD02046A8398BE3324F85E0F56ED41EB105@qq.com/T/
1: torvalds/linux@450b167
cc @igsilya
@fnordahl i think u need to copy everything *.o <- generated when u run together in the folder too.
Thank you for the pointer @tohojo, building with xdp-tools from tip of master does indeed work.
The commit does not appear to be part of any xdp-tools tag/release and the last release is a few months old, is a new release planned anytime soon?
This is now included in v1.2.9
Thank you for the quick turnaround @tohojo, much appreciated! We'll make sure those bits get out there
Great! You're welcome :)