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

2017-07-14 Thread Thomas Monjalon
> > > 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, > > > t

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

2017-07-11 Thread Chen, Jing D
> > > > -Original Message- > > From: Yang, Qiming > > Sent: Tuesday, June 20, 2017 11:24 AM > > To: dev@dpdk.org > > Cc: Chen, Jing D ; Wu, Jingjing > > ; Yang, Qiming > > Subject: [PATCH v3] test: add delay time in test alarm > > > > Because accuracy of timing to the microsecond is not g

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

2017-07-06 Thread Yang, Qiming
Hi, Mark "2" and "10" is the special number in this test case, not a general number. /* Test that we cannot cancel an alarm from within the callback itself * Also test that we can cancel head-of-line callbacks ok.*/ flag = 0; recursive_error = 0; rte_eal_ala

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

2017-07-06 Thread Chen, Jing D
+ while (flag != 2 && count++ < RTE_TEST_MAX_REPEAT) + rte_delay_ms(10); Why you don't replace "2" and "10" with macro? -Original Message- From: Yang, Qiming Sent: Tuesday, June 20, 2017 11:24 AM To: dev@dpdk.org Cc: Chen, Jing D ; Wu, Jingjing ; Yang, Qiming Subje

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

2017-06-19 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