Thread (6 messages) flat view 6 messages, 3 authors, 2018-08-10

Re: Error running AF_XDP sample application

From: Jakub Kicinski <hidden>
Date: 2018-08-10 04:18:48

On Thu, 09 Aug 2018 18:18:08 +0200, kdjimeli wrote:
Hello,

I have been trying to test a sample AF_XDP program, but I have been
experiencing some issues.
After building the sample code
https://github.com/torvalds/linux/tree/master/samples/bpf,
when running the xdpsock binary, I get the errors
"libbpf: failed to create map (name: 'xsks_map'): Invalid argument"
"libbpf: failed to load object './xdpsock_kern.o"

I tried to figure out the cause of the error but all I know is that it
occurs at line 910 with the function
call "bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)".

Please I would like to inquire what could be a possible for this error.
which kernel version are you running?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help