From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A328E9599 for ; Wed, 27 Jan 2016 11:36:10 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 27 Jan 2016 02:35:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,354,1449561600"; d="scan'208";a="890143152" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga001.fm.intel.com with ESMTP; 27 Jan 2016 02:35:51 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.97]) by IRSMSX104.ger.corp.intel.com ([163.33.3.159]) with mapi id 14.03.0248.002; Wed, 27 Jan 2016 10:35:50 +0000 From: "Van Haaren, Harry" To: "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH] eal: add function to check if primary proc alive Thread-Index: AQHRU4YWhvADP+xDWU6YXyDiXb5ALp8FrD4ggAIj7QCABDChwIACM1mAgADtZBA= Date: Wed, 27 Jan 2016 10:35:50 +0000 Message-ID: References: <1453296322-1210-1-git-send-email-harry.van.haaren@intel.com> <533710CFB86FA344BFBF2D6802E6028622F1E7EA@SHSMSX101.ccr.corp.intel.com> <20160122173747.GB13424@bricha3-MOBL3> <20160126191310.GA19208@bricha3-MOBL3> In-Reply-To: <20160126191310.GA19208@bricha3-MOBL3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTkzNzFkNjQtMDIyYS00MzMzLWEyNjEtOTJlYjkwZDA2NDFmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS40LjEwLjE5IiwiVHJ1c3RlZExhYmVsSGFzaCI6Iml2WjZmOEhxeE9uTjBPZ0poOUVvUVNIZEVsM01aS2xSc1YrNVwvendJcTk4PSJ9 x-ctpclassification: CTP_PUBLIC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] eal: add function to check if primary proc alive X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 10:36:11 -0000 > From: Richardson, Bruce > > Agreed, however hiding it totally removes the flexibility of waiting fo= r a primary > > that is starting with --file-prefix (aka: in a non-default location). I= mposing > > a limit on only monitoring primary procs in the default location seems = wrong. >=20 > But the secondary also needs the same prefix. Is that prefix not accessib= le by > this function to be used? The issue is that the EAL parsing code is performed during rte_init(), whic= h is exactly what this function tries to avoid - initializing EAL before a pr= imary process starts. I looked at changing the EAL parsing to come before rte_init(), and conside= red adding a minimal parser for --file-prefix. Both routes seem a bad solution, either for complexity or code-duplication. v2 of this patch posted to list: http://dpdk.org/dev/patchwork/patch/10126/ -Harry