ipc: fix missing ignore message name
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 13 Apr 2018 15:55:44 +0000 (16:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 23:27:45 +0000 (01:27 +0200)
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 <anatoly.burakov@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c

index a8ca7b8..5b670df 100644 (file)
@@ -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",