Tonghao Zhang 9b41c276fd eal: fix PRNG init with HPET enabled
When rte_rand_init is invoked, and the kernel running dpdk does not
support *getentropy, at the same time, the cpu does not support rdseed,
then rte_rand_init invoked rte_get_timer_cycles.

If HPET was enabled in the DPDK build (CONFIG_RTE_LIBEAL_USE_HPET=y) and
the system, rte_get_timer_cycles will invoke rte_get_hpet_cycles while
*eal_hpet is not available.

To fix that, use rte_get_tsc_cycles instead of rte_get_timer_cycles.

Fixes: 3f002f069612 ("eal: replace libc-based random generation with LFSR")
Cc: stable@dpdk.org

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
2020-04-21 18:13:34 +02:00
..
2019-07-10 23:27:46 +02:00
2019-04-03 18:34:59 +02:00
2020-04-16 18:30:58 +02:00
2019-11-19 22:03:27 +01:00
2019-11-19 22:03:38 +01:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:30:58 +02:00
2019-10-27 10:39:56 +01:00
2019-07-06 10:32:34 +02:00
2020-03-31 13:08:55 +02:00
2018-01-25 23:25:57 +01:00
2019-11-20 14:08:39 +01:00
2020-03-31 13:08:55 +02:00