Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")
Cc: jianfeng....@intel.com

Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>
Acked-by: Jianfeng Tan <jianfeng....@intel.com>
---

Notes:
    v2: no changes

 lib/librte_eal/common/eal_common_proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/eal_common_proc.c 
b/lib/librte_eal/common/eal_common_proc.c
index caa8774..e4d8104 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)
-- 
2.7.4

Reply via email to