[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ca3840bd-91a9-0780-975d-75740ceea77f@iogearbox.net>
Date: Tue, 20 Nov 2018 00:57:49 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Stanislav Fomichev <sdf@...gle.com>, netdev@...r.kernel.org,
ast@...nel.org
Cc: vladum@...gle.com
Subject: Re: [PATCH bpf-next v2] bpf: libbpf: retry map creation without the
name
On 11/19/2018 11:49 PM, Stanislav Fomichev wrote:
> Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support
> to specify BPF obj name"), libbpf unconditionally sets bpf_attr->name
> for maps. Pre v4.14 kernels don't know about map names and return an
> error about unexpected non-zero data. Retry sys_bpf without a map
> name to cover older kernels.
>
> v2 changes:
> * check for errno == EINVAL as suggested by Daniel Borkmann
>
> Signed-off-by: Stanislav Fomichev <sdf@...gle.com>
Applied to bpf-next, thanks!
Powered by blists - more mailing lists