[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1508240115.31614.94.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Tue, 17 Oct 2017 04:35:15 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>, davem@...emloft.net,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Sabrina Dubroca <sd@...asysnail.net>
Subject: Re: [PATCH net] sock_diag: request _diag module only when the
family or proto has been registered
On Tue, 2017-10-17 at 04:16 -0700, Eric Dumazet wrote:
> On Tue, 2017-10-17 at 13:13 +0800, Xin Long wrote:
>
> > +bool sock_is_registered(int family)
> > +{
> > + return family < NPROTO && rcu_access_pointer(net_families[family]);
> > +}
>
> EXPORT_SYMBOL() ?
I take this back. Since there is one single user in vmlinux, no need yet
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists