On Fri, Oct 14, 2016 at 10:30:33AM +0000, Hemant Agrawal wrote: > > > Am I reading this correctly that there is no way to support an > > > indefinite waiting capability? Or is this just saying that if a timed > > > wait is performed there are min/max limits for the wait duration? > > > > Application can wait indefinite if required. see > > RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT configuration option. > > > > Trivial application may not need different wait values on each dequeue.This > > is a > > performance optimization opportunity for implementation. > > Jerin, It is irrespective of wait configuration, whether you are using per > device wait or per dequeuer wait. > Can the value of MAX_U32 or MAX_U64 be treated as infinite weight?
That will be yet another check in the fast path in the implementation, I think, for more fine-grained wait scheme. Let application configure the device with RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT so that the application can have two different function pointer-based implementation for dequeue function if required. With RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT configuration, implicitly MAX_U64 becomes infinite weight as the wait is uint64_t. I can add this info in v3 if required. Jerin > > >