[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190125093211.724f6d5c@redhat.com>
Date: Fri, 25 Jan 2019 09:32:11 +0100
From: Jesper Dangaard Brouer <brouer@...hat.com>
To: Maciej Fijalkowski <maciejromanfijalkowski@...il.com>
Cc: daniel@...earbox.net, ast@...nel.org, netdev@...r.kernel.org,
jakub.kicinski@...ronome.com, brouer@...hat.com
Subject: Re: [PATCH bpf-next v3 4/7] samples/bpf: Extend RLIMIT_MEMLOCK for
xdp_{sample_pkts, router_ipv4}
On Thu, 24 Jan 2019 22:47:44 +0100
Maciej Fijalkowski <maciejromanfijalkowski@...il.com> wrote:
> From: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
>
> There is a common problem with xdp samples that happens when user wants
> to run a particular sample and some bpf program is already loaded. The
> default 64kb RLIMIT_MEMLOCK resource limit will cause a following error
> (assuming that xdp sample that is failing was converted to libbpf
> usage):
>
> libbpf: Error in bpf_object__probe_name():Operation not permitted(1).
> Couldn't load basic 'r0 = 0' BPF program.
> libbpf: failed to load object './xdp_sample_pkts_kern.o'
>
> Fix it in xdp_sample_pkts and xdp_router_ipv4 by setting RLIMIT_MEMLOCK
> to RLIM_INFINITY.
>
> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
> Reviewed-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
> ---
> samples/bpf/xdp_router_ipv4_user.c | 7 +++++++
> samples/bpf/xdp_sample_pkts_user.c | 7 +++++++
> 2 files changed, 14 insertions(+)
Acked-by: Jesper Dangaard Brouer <brouer@...hat.com>
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
Powered by blists - more mailing lists