[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

[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

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

2015-06-04 Thread Selmon Yang
CLOCK_MONOTONIC and do more tests to see if it also works for me. 2015-06-03 21:07 GMT+08:00 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, >> > >> &

[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 ev