[dpdk-dev] [PATCH v3] eal: fix use wrong time API

2021-05-04 Thread Chengwen Feng
Currently, the mp uses gettimeofday() API to get the time, and used as timeout parameter. But the time which gets from gettimeofday() API isn't monotonically increasing. The process may fail if the system time is changed. This fixes it by using clock_gettime() API with monotonic attribution. Fix

Re: [dpdk-dev] [PATCH v3] eal: fix use wrong time API

2021-05-11 Thread Thomas Monjalon
05/05/2021 05:43, Chengwen Feng: > Currently, the mp uses gettimeofday() API to get the time, and used as > timeout parameter. > > But the time which gets from gettimeofday() API isn't monotonically > increasing. The process may fail if the system time is changed. > > This fixes it by using clock

Re: [dpdk-dev] [PATCH v3] eal: fix use wrong time API

2021-05-11 Thread fengchengwen
On 2021/5/11 15:36, Thomas Monjalon wrote: > 05/05/2021 05:43, Chengwen Feng: >> Currently, the mp uses gettimeofday() API to get the time, and used as >> timeout parameter. >> >> But the time which gets from gettimeofday() API isn't monotonically >> increasing. The process may fail if the syste