[dpdk-dev] [PATCH] eal: add asynchronous request API to DPDK IPC

Stephen Hemminger stephen at networkplumber.org
Fri Mar 2 19:51:32 CET 2018


On Tue, 27 Feb 2018 14:59:29 +0000
Anatoly Burakov <anatoly.burakov at intel.com> wrote:

> This API is similar to the blocking API that is already present,
> but reply will be received in a separate callback by the caller.
> 
> Under the hood, we create a separate thread to deal with replies to
> asynchronous requests, that will just wait to be notified by the
> main thread, or woken up on a timer (it'll wake itself up every
> minute regardless of whether it was called, but if there are no
> requests in the queue, nothing will be done and it'll go to sleep
> for another minute).
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>

The problem with this callback model is it makes it possible to
have a single wait for multiple events model (like epoll) which
is the most scaleable way to write applications.



More information about the dev mailing list