From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix circular dependency in EAL proc type detection Date: Thu, 19 Jul 2018 12:17:48 +0200 Message-ID: <3133744.V1gL8Xi36k@xps> References: <2DBBFF226F7CF64BAFCA79B681719D953A4F9683@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Burakov, Anatoly" , "Richardson, Bruce" , "Xu, Qian Q" , "Lu, PeipeiX" To: "Yao, Lei A" Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 7B41A2C2F for ; Thu, 19 Jul 2018 12:17:56 +0200 (CEST) In-Reply-To: <2DBBFF226F7CF64BAFCA79B681719D953A4F9683@shsmsx102.ccr.corp.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" 18/07/2018 17:58, Yao, Lei A: > From: Burakov, Anatoly > > > > Currently, we need runtime dir to put all of our runtime info in, > > including the DPDK shared config. However, we use the shared > > config to determine our proc type, and this happens earlier than > > we actually create the config dir and thus can know where to > > place the config file. > > > > Fix this by moving runtime dir creation right after the EAL > > arguments parsing, but before proc type autodetection. Also, > > previously we were creating the config file unconditionally, > > even if we specified no_shconf - fix it by only creating > > the config file if no_shconf is not set. > > > > Fixes: adf1d867361c ("eal: move runtime config file to new location") > > > > Signed-off-by: Anatoly Burakov > Tested-by: Yao Lei > This patch pass the test with simple_mp sample. The secondary process > can recognize itself as "secondary process" even use "--proc-type=auto" > parameter. Applied, thanks