From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CAE922BB3 for ; Wed, 24 Feb 2016 14:50:48 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 24 Feb 2016 05:50:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,494,1449561600"; d="scan'208";a="920166673" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga002.jf.intel.com with ESMTP; 24 Feb 2016 05:50:46 -0800 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.197]) by IRSMSX107.ger.corp.intel.com ([163.33.3.99]) with mapi id 14.03.0248.002; Wed, 24 Feb 2016 13:50:38 +0000 From: "Tahhan, Maryam" To: "Van Haaren, Harry" , "david.marchand@6wind.com" Thread-Topic: [PATCH v4] eal: add function to check if primary proc alive Thread-Index: AQHRbkPyD03PJGs1+E63lKuZzRLWe587LWtg Date: Wed, 24 Feb 2016 13:50:37 +0000 Message-ID: <1A27633A6DA49C4A92FCD5D4312DBF536B0C5A90@IRSMSX106.ger.corp.intel.com> References: <1454422283-14025-1-git-send-email-harry.van.haaren@intel.com> <1456236612-30021-1-git-send-email-harry.van.haaren@intel.com> In-Reply-To: <1456236612-30021-1-git-send-email-harry.van.haaren@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjYxODdjOTUtNzgxOC00MDNlLTgyNTMtMzAyMjhlYjIyMzZkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkdhWGFIVzNmSUpYaWhuVFdqeDJsK0ZxdVczNjZQR2RRazhmYUEzRldFXC9BPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] 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 v4] 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, 24 Feb 2016 13:50:49 -0000 > From: Van Haaren, Harry > Sent: Tuesday, February 23, 2016 2:10 PM > To: david.marchand@6wind.com > Cc: Tahhan, Maryam ; dev@dpdk.org; Van > Haaren, Harry > Subject: [PATCH v4] eal: add function to check if primary proc alive >=20 > This patch adds a new function to the EAL API: > int rte_eal_primary_proc_alive(const char *path); >=20 > The function indicates if a primary process is alive right now. > This functionality is implemented by testing for a write- lock on the > config file, and the function tests for a lock. >=20 > The use case for this functionality is that a secondary process can wait > until a primary process starts by polling the function and waiting. When > the primary is running, the secondary continues to poll to detect if the > primary process has quit unexpectedly, the secondary process can detect > this. >=20 > The RTE_MAGIC number is written to the shared config by the primary > process, this is the signal to the secondary process that the EAL is set = up, > and ready to be used. The function > rte_eal_mcfg_complete() writes RTE_MAGIC. This has been delayed in > the EAL init proceedure, as the PCI probing in the primary process can > interfere with the secondary running. >=20 > Signed-off-by: Harry van Haaren Acked-by: Maryam Tahhan