eal: choose initial PRNG seed source at runtime
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | eal: check for rdseed at run time for random seedconfig/ lib/ mk/ | +26 | 1 reply | |
| 2/2 | eal: resolve getentropy at run time for random seedlib/ lib/ | +27 | 25 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Mattias Rönnblom |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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