]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_proc.c
ipc: fix timeout handling in async
[dpdk.git] / lib / librte_eal / common / eal_common_proc.c
index f8cb0e86d96a0cf3c1668557541296bc2ae11f51..9136fb0a3b3f4f74adfb805eda679916b994d2b0 100644 (file)
@@ -419,7 +419,13 @@ process_async_request(struct pending_request *sr, const struct timespec *now)
        } else if (sr->reply_received == -1) {
                /* we were asked to ignore this process */
                reply->nb_sent--;
+       } else if (timeout) {
+               /* count it as processed response, but don't increment
+                * nb_received.
+                */
+               param->n_responses_processed++;
        }
+
        free(sr->reply);
 
        last_msg = param->n_responses_processed == reply->nb_sent;