Relative Content

Tag Archive for mapsebpfxdp-bpfxdp-pdf

eBPF XDP – Bad map relocation

I have a short program with two eBPF maps, one used to redirect to an AF_XDP socket, and another to keep track on statistics.
However, when trying to load this program, the following error appears:
libbpf: prog 'xdp_sock_prog': bad map relo against 'xsks_map' in section '.maps'
But, when I comment out the second map (xdp_stats_map), the program loads as usual.