From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH v3 5/5] eal: don't hardcode socket filter value in IPC Date: Wed, 28 Feb 2018 23:01:01 +0800 Message-ID: <81e0656d-ee88-ba05-0215-a9efa486e598@intel.com> References: <31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519672713.git.anatoly.burakov@intel.com> <2f9a4da56e7f31f141db8cb2bb34d3c7fef97691.1519740527.git.anatoly.burakov@intel.com> <8cc51c18-9999-642c-f8e3-3b3834104cc3@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Burakov, Anatoly" , "dev@dpdk.org" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E81424CA6 for ; Wed, 28 Feb 2018 16:01:04 +0100 (CET) In-Reply-To: <8cc51c18-9999-642c-f8e3-3b3834104cc3@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 2/28/2018 6:21 PM, Burakov, Anatoly wrote: > 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(). Yeah, that makes sense. Thank you for fixing it. Thanks, Jianfeng