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

2021-05-05 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, May 5, 2021 8:51 AM > > 05/05/2021 08:26, Morten Brørup: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas > Monjalon > > > Sent: Wednesday, May 5, 2021 8:14 AM > > > > > > 04/05/2021 21:12, Morten Brørup: > >

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

2021-05-04 Thread Thomas Monjalon
05/05/2021 08:26, Morten Brørup: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > > Sent: Wednesday, May 5, 2021 8:14 AM > > > > 04/05/2021 21:12, Morten Brørup: > > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas > > Monjalon > > > > Sent: Tuesday, May 4,

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

2021-05-04 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Wednesday, May 5, 2021 8:14 AM > > 04/05/2021 21:12, Morten Brørup: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas > Monjalon > > > Sent: Tuesday, May 4, 2021 6:50 PM > > > > > > 29/04/2021 04:10, Min

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

2021-05-04 Thread Thomas Monjalon
04/05/2021 21:12, Morten Brørup: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > > Sent: Tuesday, May 4, 2021 6:50 PM > > > > 29/04/2021 04:10, Min Hu (Connor): > > > Currently, the mp uses gettimeofday() API to get the time, and used > > as > > > timeout parameter. > >

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

2021-05-04 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Tuesday, May 4, 2021 6:50 PM > > 29/04/2021 04:10, Min Hu (Connor): > > Currently, the mp uses gettimeofday() API to get the time, and used > as > > timeout parameter. > > > > But the time which gets from gettimeofday()

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

2021-05-04 Thread Thomas Monjalon
29/04/2021 04:10, Min Hu (Connor): > 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 clo

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

2021-04-29 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Min Hu (Connor) > Sent: Thursday, April 29, 2021 4:11 AM > To: dev@dpdk.org > > 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 monotonicall

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

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