From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH] eal/ipc: fix missing ignore message name Date: Sat, 14 Apr 2018 00:16:16 +0800 Message-ID: <39d5ced1-0597-e529-3325-bbe7d94ae74b@intel.com> References: <648478c5ff8bcbe49306d96022eef1f89c7a935a.1523634914.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Anatoly Burakov , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9F91C1C685 for ; Fri, 13 Apr 2018 18:16:19 +0200 (CEST) In-Reply-To: <648478c5ff8bcbe49306d96022eef1f89c7a935a.1523634914.git.anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/13/2018 11:55 PM, Anatoly Burakov wrote: > 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") > Cc: anatoly.burakov@intel.com > > Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan > --- > lib/librte_eal/common/eal_common_proc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c > index 2d3bda3..5c2acd4 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",