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

2021-04-28 Thread Min Hu (Connor)
Hi, Morten, fixed in v2, thanks. 在 2021/4/28 18:59, Morten Brørup 写道: From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of fengchengwen Sent: Wednesday, April 28, 2021 12:36 PM On 2021/4/28 17:24, Morten Brørup wrote: From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Min Hu (Connor) Sen

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

2021-04-28 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of fengchengwen > Sent: Wednesday, April 28, 2021 12:36 PM > > On 2021/4/28 17:24, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Min Hu (Connor) > >> Sent: Wednesday, April 28, 2021 10:13 AM > >> > >> From: Chengw

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

2021-04-28 Thread fengchengwen
On 2021/4/28 17:24, Morten Brørup wrote: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Min Hu (Connor) >> Sent: Wednesday, April 28, 2021 10:13 AM >> >> From: Chengwen Feng >> >> Currently, the mp uses gettimeofday() API to get the time, and used as >> timeout parameter. >> >> But the

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

2021-04-28 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Min Hu (Connor) > Sent: Wednesday, April 28, 2021 10:13 AM > > From: 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 mon

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

2021-04-28 Thread Min Hu (Connor)
From: 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 monot