Re: [dpdk-dev] [PATCH v2] eal: fix crash when the random init

2020-04-16 Thread Mattias Rönnblom
On 2020-04-15 09:43, xiangxia.m@gmail.com wrote: > From: Tonghao Zhang > > When rte_rand_init is invoked, and the kernel running dpdk does't > support *getentropy, at the same time, the cpu does't support rdseed, > then rte_rand_init invoked rte_get_timer_cycles which invoked > rte_get_hpet_cy

[dpdk-dev] [PATCH v2] eal: fix crash when the random init

2020-04-16 Thread xiangxia . m . yue
From: Tonghao Zhang When rte_rand_init is invoked, and the kernel running dpdk does't support *getentropy, at the same time, the cpu does't support rdseed, then rte_rand_init invoked rte_get_timer_cycles which invoked rte_get_hpet_cycles while *eal_hpet is not available. To fix that, use rte_get