From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: Error running AF_XDP sample application Date: Thu, 9 Aug 2018 18:51:07 -0700 Message-ID: <20180809185100.588f33a1@cakuba.netronome.com> References: <88ef46e09c2849ff89aae6bf1d1d8104@igalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: kdjimeli Return-path: Received: from mail-qt0-f181.google.com ([209.85.216.181]:37182 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725198AbeHJESs (ORCPT ); Fri, 10 Aug 2018 00:18:48 -0400 Received: by mail-qt0-f181.google.com with SMTP id n6-v6so8784178qtl.4 for ; Thu, 09 Aug 2018 18:51:12 -0700 (PDT) In-Reply-To: <88ef46e09c2849ff89aae6bf1d1d8104@igalia.com> Sender: netdev-owner@vger.kernel.org List-ID: 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?