ipc: fix timeout handling in async
authorJianfeng Tan <jianfeng.tan@intel.com>
Fri, 20 Apr 2018 15:20:12 +0000 (15:20 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Apr 2018 20:45:05 +0000 (22:45 +0200)
commitb8c835909ea2056151614780b801331eeeae5333
treed3a1bd5270814bbc611c7ea351f74a999a5743c0
parent2147c0950580ec2a4f24475ae5a7baaf8925272b
ipc: fix timeout handling in async

In original implementation, timeout event for an async request
will be ignored. As a result, an async request will never
trigger the action if it cannot receive any reply any more.

We fix this by counting timeout as a processed reply.

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

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