[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170411144139.GA10662@ast-mbp.thefacebook.com>
Date: Tue, 11 Apr 2017 07:41:41 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: netdev@...r.kernel.org, daniel@...earbox.net,
Johannes Berg <johannes.berg@...el.com>
Subject: Re: [PATCH net-next v4 1/2] bpf: remove struct bpf_prog_type_list
On Tue, Apr 11, 2017 at 03:34:57PM +0200, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@...el.com>
>
> There's no need to have struct bpf_prog_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 a new
> header file and include it in the places needing it.
>
> Signed-off-by: Johannes Berg <johannes.berg@...el.com>
since there were no changes to the patch, plese carry over the acks:
Acked-by: Daniel Borkmann <daniel@...earbox.net>
Acked-by: Alexei Starovoitov <ast@...nel.org>
Powered by blists - more mailing lists