[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5615B058.2010804@plumgrid.com>
Date: Wed, 7 Oct 2015 16:52:56 -0700
From: Alexei Starovoitov <ast@...mgrid.com>
To: Daniel Borkmann <daniel@...earbox.net>, davem@...emloft.net
Cc: hannes@...essinduktion.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2 2/5] once: make helper generic for calling
functions once
On 10/7/15 4:20 PM, Daniel Borkmann wrote:
> From: Hannes Frederic Sowa<hannes@...essinduktion.org>
>
> Make the get_random_once() helper generic enough, so that functions
> in general would only be called once, where one user of this is then
> net_get_random_once().
>
> The only implementation specific call is to get_random_bytes(), all
> the rest of this *_once() facility would be duplicated among different
> subsystems otherwise. The new DO_ONCE() helper will be used by prandom()
> later on, but might also be useful for other scenarios/subsystems as
> well where a one-time initialization in often-called, possibly fast
> path code could occur.
>
> Signed-off-by: Hannes Frederic Sowa<hannes@...essinduktion.org>
> Signed-off-by: Daniel Borkmann<daniel@...earbox.net>
nice! you even added sparse tags.
Acked-by: Alexei Starovoitov <ast@...nel.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists