Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-05-06 Thread Chengchang Tang
On 2021/5/6 16:08, Thomas Monjalon wrote: > 06/05/2021 04:06, Chengchang Tang: >> >> On 2021/5/6 5:37, Thomas Monjalon wrote: >>> 15/04/2021 09:12, Min Hu (Connor): From: Chengchang Tang Timer sample example assumes that the frequency of the timer is about 2Ghz to control th

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-05-06 Thread Thomas Monjalon
06/05/2021 04:06, Chengchang Tang: > > On 2021/5/6 5:37, Thomas Monjalon wrote: > > 15/04/2021 09:12, Min Hu (Connor): > >> From: Chengchang Tang > >> > >> Timer sample example assumes that the frequency of the timer is about > >> 2Ghz to control the period of calling rte_timer_manage(). But this

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-05-05 Thread Chengchang Tang
On 2021/5/6 5:37, Thomas Monjalon wrote: > 15/04/2021 09:12, Min Hu (Connor): >> From: Chengchang Tang >> >> Timer sample example assumes that the frequency of the timer is about >> 2Ghz to control the period of calling rte_timer_manage(). But this >> assumption is easy to fail. For example. th

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-05-05 Thread Thomas Monjalon
15/04/2021 09:12, Min Hu (Connor): > From: Chengchang Tang > > Timer sample example assumes that the frequency of the timer is about > 2Ghz to control the period of calling rte_timer_manage(). But this > assumption is easy to fail. For example. the frequency of tsc on ARM64 > is much less than 2G

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-04-21 Thread Chengchang Tang
Hi On 2021/4/22 2:34, Thomas Monjalon wrote: > 15/04/2021 09:12, Min Hu (Connor): >> From: Chengchang Tang >> >> Timer sample example assumes that the frequency of the timer is about >> 2Ghz to control the period of calling rte_timer_manage(). But this >> assumption is easy to fail. For example. t

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-04-21 Thread Carrillo, Erik G
> -Original Message- > From: Min Hu (Connor) > Sent: Thursday, April 15, 2021 2:12 AM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; rsanf...@akamai.com; Carrillo, > Erik G > Subject: [PATCH] examples/timer: fix incorrect time interval > > From: Chengchang Tang > > Timer sample example assum

Re: [dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-04-21 Thread Thomas Monjalon
15/04/2021 09:12, Min Hu (Connor): > From: Chengchang Tang > > Timer sample example assumes that the frequency of the timer is about > 2Ghz to control the period of calling rte_timer_manage(). But this > assumption is easy to fail. For example. the frequency of tsc on ARM64 > is much less than 2G

[dpdk-dev] [PATCH] examples/timer: fix incorrect time interval

2021-04-15 Thread Min Hu (Connor)
From: Chengchang Tang Timer sample example assumes that the frequency of the timer is about 2Ghz to control the period of calling rte_timer_manage(). But this assumption is easy to fail. For example. the frequency of tsc on ARM64 is much less than 2Ghz. This patch uses the frequency of the curre