From: Anatoly Burakov Date: Fri, 2 Mar 2018 08:41:33 +0000 (+0000) Subject: eal: fix IPC timeout X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=620952e060469ca966333c90cab3ca00281eff7d;p=dpdk.git eal: fix IPC timeout Fixes: 783b6e54971d ("eal: add synchronous multi-process communication") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan --- diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index caa8774aef..e4d81044fc 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -583,7 +583,7 @@ mp_request_one(const char *dst, struct rte_mp_msg *req, /* Check if time is out */ if (gettimeofday(&now, NULL) < 0) break; - if (now.tv_sec < ts->tv_sec) + if (ts->tv_sec < now.tv_sec) break; else if (now.tv_sec == ts->tv_sec && now.tv_usec * 1000 < ts->tv_nsec)