Netdev List
 help / color / mirror / Atom feed
From: Konrad Djimeli <kdjimeli@igalia.com>
To: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: netdev@vger.kernel.org, netdev-owner@vger.kernel.org
Subject: Re: Error running AF_XDP sample application
Date: Fri, 10 Aug 2018 11:58:47 +0200	[thread overview]
Message-ID: <23a938260df3326eb036207f6e193f1b@igalia.com> (raw)
In-Reply-To: <20180809185100.588f33a1@cakuba.netronome.com>

On 2018-08-10 03:51, Jakub Kicinski wrote:
> 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?

My kernel version is 4.18.0-rc8+. I cloned it from
https://github.com/torvalds/linux before building a running.

My commit head(git show-ref --head) is at
1236568ee3cbb0d3ac62d0074a29b97ecf34cbbc HEAD
1236568ee3cbb0d3ac62d0074a29b97ecf34cbbc refs/heads/master
1236568ee3cbb0d3ac62d0074a29b97ecf34cbbc refs/remotes/origin/HEAD
1236568ee3cbb0d3ac62d0074a29b97ecf34cbbc refs/remotes/origin/master
...


I also applied the patch https://patchwork.ozlabs.org/patch/949884/
(samples: bpf: convert xdpsock_user.c to libbpf ), as the error was
initially in the form show below:
  "failed to create a map: 22 Invalid argument"
  "ERROR: load_bpf_file"

Thanks
Konrad

  reply	other threads:[~2018-08-10 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-09 16:18 Error running AF_XDP sample application kdjimeli
2018-08-10  1:51 ` Jakub Kicinski
2018-08-10  9:58   ` Konrad Djimeli [this message]
2018-08-10 13:21     ` Konrad Djimeli
2018-08-10 15:45       ` Björn Töpel
2018-08-10 21:02         ` Konrad Djimeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23a938260df3326eb036207f6e193f1b@igalia.com \
    --to=kdjimeli@igalia.com \
    --cc=jakub.kicinski@netronome.com \
    --cc=netdev-owner@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox