[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200724190855.3gdvbuut6ge7o7im@ast-mbp.dhcp.thefacebook.com>
Date: Fri, 24 Jul 2020 12:08:55 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: davem@...emloft.net, torvalds@...ux-foundation.org,
netdev@...r.kernel.org, bpf@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH v3 bpf-next 3/4] bpf: Add kernel module with user mode
driver that populates bpffs.
On Fri, Jul 24, 2020 at 04:53:47PM +0200, Daniel Borkmann wrote:
>
> static const struct bpf_preload_umd_ops umd_ops = {
> .preload = do_preload,
> .finish = do_finish,
> .owner = THIS_MODULE,
> };
Thanks for the suggestion. It helped to get rid of ugly #if IS_BUILTIN too.
I'm kinda surprised that THIS_MODULE works for builtin too. Nice.
Powered by blists - more mailing lists