All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexei Starovoitov <ast@plumgrid.com>
To: Daniel Borkmann <daniel@iogearbox.net>, davem@davemloft.net
Cc: hannes@stressinduktion.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v2 4/5] random32: add prandom_init_once helper for own rngs
Date: Wed, 7 Oct 2015 16:54:36 -0700	[thread overview]
Message-ID: <5615B0BC.7030005@plumgrid.com> (raw)
In-Reply-To: <7852684945acede41915662c1cbc6a83904e5d57.1444258406.git.daniel@iogearbox.net>

On 10/7/15 4:20 PM, Daniel Borkmann wrote:
> Add a prandom_init_once() facility that works on the rnd_state, so that
> users that are keeping their own state independent from prandom_u32() can
> initialize their taus113 per cpu states.
>
> The motivation here is similar to net_get_random_once(): initialize the
> state as late as possible in the hope that enough entropy has been
> collected for the seeding. prandom_init_once() makes use of the recently
> introduced prandom_seed_full_state() helper and is generic enough so that
> it could also be used on fast-paths due to the DO_ONCE().
>
> Signed-off-by: Daniel Borkmann<daniel@iogearbox.net>
> Acked-by: Hannes Frederic Sowa<hannes@stressinduktion.org>

Acked-by: Alexei Starovoitov <ast@kernel.org>

  reply	other threads:[~2015-10-07 23:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 23:20 [PATCH net-next v2 0/5] BPF/random32 updates Daniel Borkmann
2015-10-07 23:20 ` [PATCH net-next v2 1/5] net: move net_get_random_once to lib Daniel Borkmann
2015-10-07 23:55   ` Alexei Starovoitov
2015-10-08  5:12   ` kbuild test robot
2015-10-08  6:42     ` Daniel Borkmann
2015-10-07 23:20 ` [PATCH net-next v2 2/5] once: make helper generic for calling functions once Daniel Borkmann
2015-10-07 23:52   ` Alexei Starovoitov
2015-10-07 23:20 ` [PATCH net-next v2 3/5] random32: add prandom_seed_full_state helper Daniel Borkmann
2015-10-07 23:54   ` Alexei Starovoitov
2015-10-07 23:20 ` [PATCH net-next v2 4/5] random32: add prandom_init_once helper for own rngs Daniel Borkmann
2015-10-07 23:54   ` Alexei Starovoitov [this message]
2015-10-07 23:20 ` [PATCH net-next v2 5/5] bpf: split state from prandom_u32() and consolidate {c,e}BPF prngs Daniel Borkmann
2015-10-08 12:27 ` [PATCH net-next v2 0/5] BPF/random32 updates David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5615B0BC.7030005@plumgrid.com \
    --to=ast@plumgrid.com \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=hannes@stressinduktion.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.