Re: [PATCH bpf-next 1/3] bpf: pass struct btf pointer to the map_check_btf() callback

From: Martin Lau
Date: Sat Dec 08 2018 - 21:07:02 EST


On Fri, Dec 07, 2018 at 04:53:13PM -0800, Roman Gushchin wrote:
> If key_type or value_type are of non-trivial data types
> (e.g. structure or typedef), it's not possible to check them without
> the additional information, which can't be obtained without a pointer
> to the btf structure.
>
> So, let's pass btf pointer to the map_check_btf() callbacks.
Acked-by: Martin KaFai Lau <kafai@xxxxxx>