ipc: stop async IPC loop on callback request
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 10 Apr 2018 15:28:51 +0000 (16:28 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 23:27:20 +0000 (01:27 +0200)
commit2ae831fb42b1aa273cf4ef20775fa964463be083
treeb7aaabcfb1a8524c58bded79e66a161c402c434b
parent6e8a721044c6ef677e67991f3f2a9bd0870eecc2
ipc: stop async IPC loop on callback request

EAL did not stop processing further asynchronous requests on
encountering a request that should trigger the callback. This
resulted in erasing valid requests but not triggering them.

Fix this by stopping the loop once we have a request that
can trigger the callback. Once triggered, we go back to scanning
the request queue until there are no more callbacks to trigger.

Fixes: f05e26051c15 ("eal: add IPC asynchronous request")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c