lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180904170912.2ca43ffa@cakuba>
Date:   Tue, 4 Sep 2018 17:09:12 +0200
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Jesper Dangaard Brouer <brouer@...hat.com>
Cc:     Nick Viljoen <nick.viljoen@...ronome.com>,
        oss-drivers@...ronome.com, netdev@...r.kernel.org,
        "John W. Linville" <linville@...driver.com>, jhsiao@...hat.com,
        Quentin Monnet <quentin.monnet@...ronome.com>
Subject: Re: [RFC bpf-next PATCH] samples/bpf: xdp1 add XDP hardware offload
 option

On Tue, 04 Sep 2018 16:59:19 +0200, Jesper Dangaard Brouer wrote:
> Trying to use XDP hardware offloading via XDP_FLAGS_HW_MODE
> and setting the ifindex in prog_load_attr.ifindex before
> loading the BPF code via bpf_prog_load_xattr().
> 
> This unfortunately does not seem to work...
> - Am I doing something wrong?
> 
> Notice, I also disable the map BPF_MAP_TYPE_PERCPU_ARRAY
> to make sure it was not related to the map (not supporting
> offloading).
> 
> Failed with:
>  # ./xdp1 -O $(</sys/class/net/enp130s0np1/ifindex)
>  libbpf: load bpf program failed: Invalid argument
>  libbpf: failed to load program 'xdp1'
>  libbpf: failed to load object './xdp1_kern.o'
> 
> Tested on kernel 4.18.0-2.el8.x86_64 with driver nfp
>  Ethernet controller: Netronome Systems, Inc. Device 4000

Are you running the BPF capable FW?

https://help.netronome.com/support/solutions/articles/36000050009-agilio-ebpf-2-0-6-extended-berkeley-packet-filter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ