From: Anatoly Burakov Date: Fri, 13 Apr 2018 15:55:44 +0000 (+0100) Subject: ipc: fix missing ignore message name X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7d863e253ead83e6fd2c35557be22bcfcc64a99a;p=dpdk.git ipc: fix missing ignore message name We are trying to notify sender that response from current process should be ignored, but we didn't specify which request this response was for. Fix by copying request name from the original message. Fixes: 579a4ccc345c ("eal: ignore IPC messages until init is complete") 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 a8ca7b8cc4..5b670df6eb 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -323,6 +323,8 @@ process_msg(struct mp_msg_internal *m, struct sockaddr_un *s) */ struct rte_mp_msg dummy; memset(&dummy, 0, sizeof(dummy)); + snprintf(dummy.name, sizeof(dummy.name), + "%s", msg->name); mp_send(&dummy, s->sun_path, MP_IGN); } else { RTE_LOG(ERR, EAL, "Cannot find action: %s\n",