Subject: Re: [PATCH net-next v4 2/2] bpf: remove struct bpf_map_type_list

From: Daniel Borkmann <[email-masked]>
Date: Tue, 11 Apr 2017 16:48:59 +0200

On 04/11/2017 04:43 PM, Alexei Starovoitov wrote:
> On Tue, Apr 11, 2017 at 03:34:58PM +0200, Johannes Berg wrote:
>> From: Johannes Berg <[email-masked]>
>>
>> There's no need to have struct bpf_map_type_list since
>> it just contains a list_head, the type, and the ops
>> pointer. Since the types are densely packed and not
>> actually dynamically registered, it's much easier and
>> smaller to have an array of type->ops pointer. Also
>> initialize this array statically to remove code needed
>> to initialize it.
>>
>> In order to save duplicating the list, move it to the
>> types header file added by the previous patch and
>> include it in the same fashion.
>>
>> Signed-off-by: Johannes Berg <[email-masked]>
>> ---
>> v4: add ifdef on CONFIG_PERF_EVENTS for stack_map_ops
>
> I'm ok if you keep my ack after minor changes like this.
> Acked-by: Alexei Starovoitov <[email-masked]>

Me as well, thanks:

Acked-by: Daniel Borkmann <[email-masked]>