Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AF XDP-example operation not supported #124

Open
lgs96 opened this issue Jan 3, 2025 · 0 comments
Open

AF XDP-example operation not supported #124

lgs96 opened this issue Jan 3, 2025 · 0 comments

Comments

@lgs96
Copy link

lgs96 commented Jan 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant