From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2018 09:16:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,446,1517904000"; d="scan'208";a="47670841" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.255.29.166]) ([10.255.29.166]) by orsmga001.jf.intel.com with ESMTP; 13 Apr 2018 09:16:16 -0700 To: Anatoly Burakov , dev@dpdk.org References: <648478c5ff8bcbe49306d96022eef1f89c7a935a.1523634914.git.anatoly.burakov@intel.com> From: "Tan, Jianfeng" Message-ID: <39d5ced1-0597-e529-3325-bbe7d94ae74b@intel.com> Date: Sat, 14 Apr 2018 00:16:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <648478c5ff8bcbe49306d96022eef1f89c7a935a.1523634914.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal/ipc: fix missing ignore message name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2018 16:16:20 -0000 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",