Re: [dpdk-dev] [PATCH v2] test: add delay time in test alarm

2017-05-15 Thread Yang, Qiming
Hi, > -Original Message- > From: Chen, Jing D > Sent: Friday, May 5, 2017 2:29 PM > To: Yang, Qiming ; dev@dpdk.org > Cc: Wu, Jingjing > Subject: RE: [PATCH v2] test: add delay time in test alarm > > Hi, > > > diff --git a/test/test/test_alarm.c b/test/test/test_alarm.c index > > ecb2f6

Re: [dpdk-dev] [PATCH v2] test: add delay time in test alarm

2017-05-04 Thread Chen, Jing D
Hi, > diff --git a/test/test/test_alarm.c b/test/test/test_alarm.c index > ecb2f6d..cbae1a0 100644 > --- a/test/test/test_alarm.c > +++ b/test/test/test_alarm.c > @@ -96,6 +96,7 @@ static int > test_multi_alarms(void) > { > int rm_count = 0; > + int count = 0; > cb_count.cnt =

[dpdk-dev] [PATCH v2] test: add delay time in test alarm

2017-05-04 Thread Qiming Yang
Because accuracy of timing to the microsecond is not guaranteed in rte_eal_alarm_set, this function will not be called before the requested time, but may be called a period of time afterwards which can not be calculated. In order to ensure test alarm running success, this patch added the delay time