From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v3 5/5] eal: don't hardcode socket filter value in IPC Date: Wed, 28 Feb 2018 10:21:40 +0000 Message-ID: <8cc51c18-9999-642c-f8e3-3b3834104cc3@intel.com> References: <31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519672713.git.anatoly.burakov@intel.com> <2f9a4da56e7f31f141db8cb2bb34d3c7fef97691.1519740527.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Tan, Jianfeng" , "dev@dpdk.org" Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id A514A23C for ; Wed, 28 Feb 2018 11:21:43 +0100 (CET) In-Reply-To: Content-Language: en-US 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 28-Feb-18 1:52 AM, Tan, Jianfeng wrote: > Hi Anatoly, > >> -----Original Message----- >> From: Burakov, Anatoly >> Sent: Tuesday, February 27, 2018 10:36 PM >> To: dev@dpdk.org >> Cc: Tan, Jianfeng >> Subject: [PATCH v3 5/5] eal: don't hardcode socket filter value in IPC >> >> Currently, filter value is hardcoded and disconnected from actual >> value returned by eal_mp_socket_path(). > > I can understand the hardcode is not good. But why it's not consistent with the actual value returned from eal_mp_socket_path()? It is consistent. It's just that it's disconnected from the value returned by eal_mp_socket_path(). Meaning, if you change how eal_mp_socket_path() works, you'll also have to update the filter (or you may forget to do it and have a bug). This patch makes it so that mp_filter value is automatically updated, should you change internal workings of eal_mp_socket_path(). > >> Fix this to generate filter >> value by deriving it from eal_mp_socket_path() instead. >> >> Signed-off-by: Anatoly Burakov > > Anyway, I think your way looks good to me, so > > Acked-by: Jianfeng Tan > > Thanks, > Jianfeng > -- Thanks, Anatoly