Skip to content

eal: choose initial PRNG seed source at runtime

Dan Gora dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2eal: check for rdseed at run time for random seedconfig/x86/meson.build lib/librte_eal/common/rte_random.c mk/rte.cpuflags.mk+26 -131 reply
2/2eal: resolve getentropy at run time for random seedlib/librte_eal/common/rte_random.c lib/librte_eal/meson.build+27 -925 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMattias Rönnblom
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/2] eal: choose initial PRNG seed source at runtime

Hi All,

The following patches updates the rte_random subsystem to dynamically find the best source of the initial seed to the PRNG at run time.

The first patch enables dynamic checking for the rdseed instruction and removes the requirement for it on the execution system. It also ensures that the code to use the rdseed instruction is generated, even if the host compilation system does not support it (on x86 systems).

The second patch enables dynamic checking for the getentropy() function using dlload()/dlsym() to allow the code to use getentropy() if it is available on the execution system, regardless of whether or not it was available on the compilation system.

Thanks
Dan

Dan Gora (2):
eal: check for rdseed at run time for random seed
eal: resolve getentropy at run time for random seed

 config/x86/meson.build             | 11 +++++--
 lib/librte_eal/common/rte_random.c | 50 ++++++++++++++++++++++--------
 lib/librte_eal/meson.build         |  3 --
 mk/rte.cpuflags.mk                 |  9 ++++--
 4 files changed, 52 insertions(+), 21 deletions(-)
Signature · 1 line
2.24.1.425.g7034cd094b