[dpdk-dev] [PATCH v2 1/5] eal: fix IPC timeouts
Anatoly Burakov
anatoly.burakov at intel.com
Fri Mar 2 09:41:33 CET 2018
Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")
Cc: jianfeng.tan at intel.com
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan at 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
More information about the dev
mailing list