From mboxrd@z Thu Jan 1 00:00:00 1970 From: kdjimeli Subject: Error running AF_XDP sample application Date: Thu, 09 Aug 2018 18:18:08 +0200 Message-ID: <88ef46e09c2849ff89aae6bf1d1d8104@igalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Return-path: Received: from fanzine.igalia.com ([91.117.99.155]:45059 "EHLO fanzine.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732471AbeHITUo (ORCPT ); Thu, 9 Aug 2018 15:20:44 -0400 Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine.igalia.com with esmtps (Cipher TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1fnndb-0005co-4i for ; Thu, 09 Aug 2018 18:18:11 +0200 Received: from webmail.local.igalia.com ([192.168.10.121]) by mail.igalia.com with esmtps (Cipher TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1fnndZ-0003jM-0k for ; Thu, 09 Aug 2018 18:18:11 +0200 Received: from localhost ([127.0.0.1] helo=webmail.igalia.com) by webmail.local.igalia.com with esmtp (Exim 4.84_2) (envelope-from ) id 1fnndY-0003q9-TQ for netdev@vger.kernel.org; Thu, 09 Aug 2018 18:18:08 +0200 Sender: netdev-owner@vger.kernel.org List-ID: 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. Thanks Konrad