- 
                Notifications
    
You must be signed in to change notification settings  - Fork 116
 
Description
Hi,
I'm trying to run AX_XDP-example code, but I can't run it. Even though I can load XDP kernel program to the network interface, it ends to show operation not supported in xsk_configure_socket.
Environment is as follows:
kernel: ubuntu 22.04
version: 6.8.0-49-generic
bpftool v7.4.0
using libbpf v1.4
I attach my logs:
bpf-examples/AF_XDP-example$ sudo taskset -c 2 ./xdpsock -i enp58s0  -l -N -B -b 256
libbpf: elf: skipping unrecognized data section(8) .xdp_run_config
libbpf: elf: skipping unrecognized data section(9) xdp_metadata
libbpf: elf: skipping unrecognized data section(8) xdp_metadata
libbpf: prog 'xdp_pass': missing .BTF.ext function info for the main program, skipping all of .BTF.ext func info.
libbpf: prog 'xdp_pass': missing .BTF.ext line info for the main program, skipping all of .BTF.ext line info.
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': -- BEGIN PROG LOAD LOG --
same or smaller insn offset (0) than previous func info record (0)processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
-- END PROG LOAD LOG --
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object 'xdp-dispatcher.o'
libbpf: elf: skipping unrecognized data section(8) xdp_metadata
libbpf: prog 'xdp_pass': missing .BTF.ext function info for the main program, skipping all of .BTF.ext func info.
libbpf: prog 'xdp_pass': missing .BTF.ext line info for the main program, skipping all of .BTF.ext line info.
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': -- BEGIN PROG LOAD LOG --
same or smaller insn offset (0) than previous func info record (0)processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
-- END PROG LOAD LOG --
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object 'xdp-dispatcher.o'
libxdp: Failed to load dispatcher: Invalid argument
libxdp: Falling back to loading single prog without dispatcher
libbpf: Kernel error message: Underlying driver does not support XDP in native mode
libxdp: Error attaching XDP program to ifindex 2: Operation not supported
libxdp: XDP mode not supported; try using SKB mode
xdpsock.c:xsk_configure_socket:1068: errno: 95/"Operation not supported"
Thanks in advance!
Best, Goodsol.