[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-05 Thread Selmon Yang
Hi, Bruce, Thank you very much for your explanation. I will send my patch in that way. I am so sorry for any inconvenience causes you. 2015-06-04 17:39 GMT+08:00 Bruce Richardson : > On Thu, Jun 04, 2015 at 10:29:48AM +0800, Selmon Yang wrote: >> Hi, Bruce, Jay, >> >> I am sorry that the patch

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-04 Thread Bruce Richardson
On Thu, Jun 04, 2015 at 10:29:48AM +0800, Selmon Yang wrote: > Hi, Bruce, Jay, > > I am sorry that the patch in last mail is the wrong one, > please replace it with the attached one in this mail. > Thanks for the patch. Could you perhaps submit this using git send-email as an official patch,

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-04 Thread Selmon Yang
Hi, Bruce, Jay, I am sorry that the patch in last mail is the wrong one, please replace it with the attached one in this mail. 2015-06-04 10:09 GMT+08:00 Selmon Yang : > Hi, Bruce, > > Thank you very much for your positive response. > The attachment is the patch. > Please have a look. > > Hi,

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-04 Thread Selmon Yang
Hi, Bruce, Thank you very much for your positive response. The attachment is the patch. Please have a look. Hi, Jay, Thank you so much for your kindly reminding. However, due to I really like the alarm functionalities not to be affected. I guess I need to replace CLOCK_MONOTONIC_RAW with

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-03 Thread Selmon Yang
Hi, I found that, in dpdk 2.0, rte_eal_alarm_set() is affected by discontinuous jumps in the system time because eal_alarm_callback() and rte_eal_alarm_set() use gettimeofday() to get the current time. Here is what I encountered. I set up a rte eal alarm as below, and I like it to be triggered

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-03 Thread Bruce Richardson
On Wed, Jun 03, 2015 at 02:31:47PM +0800, Selmon Yang wrote: > Hi, > > I found that, in dpdk 2.0, rte_eal_alarm_set() is affected by > discontinuous jumps in the system time because eal_alarm_callback() > and rte_eal_alarm_set() use gettimeofday() to get the current time. > > Here is what I

[dpdk-dev] rte_eal_alarm_set() is affected by discontinuous jumps in the system time

2015-06-03 Thread Jay Rolette
On Wed, Jun 3, 2015 at 7:54 AM, Bruce Richardson wrote: > On Wed, Jun 03, 2015 at 02:31:47PM +0800, Selmon Yang wrote: > > Hi, > > > > I found that, in dpdk 2.0, rte_eal_alarm_set() is affected by > > discontinuous jumps in the system time because eal_alarm_callback() > > and rte_eal_alarm_set()