From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 5C5F02BAA for ; Wed, 9 Mar 2016 14:37:37 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 09 Mar 2016 05:37:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,311,1455004800"; d="scan'208";a="906018632" Received: from sie-lab-212-120.ir.intel.com (HELO silpixa00394367.ir.intel.com) ([10.237.212.120]) by orsmga001.jf.intel.com with ESMTP; 09 Mar 2016 05:37:34 -0800 From: Harry van Haaren To: david.marchand@6wind.com Date: Wed, 9 Mar 2016 13:37:23 +0000 Message-Id: <1457530645-14776-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457518362-32762-1-git-send-email-harry.van.haaren@intel.com> References: <1457518362-32762-1-git-send-email-harry.van.haaren@intel.com> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH v9 0/2] eal: add function to check primary 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, 09 Mar 2016 13:37:37 -0000 The first patch of this patchset contains a fix for EAL PCI probing, to avoid a race-condition where a primary and secondary probe PCI devices at the same time. The second patch adds a function that can be polled by a process to detect if a DPDK primary process is alive. This function does not rely on rte_eal_init(), as this uses the EAL and thus stops a primary from starting. The functionality provided by this patch is very useful for providing additional services to DPDK primary applications such as monitoring statistics and performing fault detection. v9: - Improve commit message for EAL fix v8: - include implementation of function (got lost in v7) v7: - split patch into two, one for eal fix, one for adding functionality v6: - Fix license header v5: - Renamed returns in doc from words to digits - Fixed line spacing in docs - Fixed line spacing in EAL header - Rebased to master (Makefile conflicts) v4: - Rebased to git head (2.3 -> 16.04 changes) v3: - Fixed Copyright years v2: - Passing NULL as const char* uses default /var/run/.rte_config - Moved co Harry van Haaren (2): eal: fix race-condition in pri/sec proc startup eal: add function to check if primary proc alive doc/guides/rel_notes/release_16_04.rst | 8 ++++ lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/eal.c | 6 +-- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/eal_common_proc.c | 61 +++++++++++++++++++++++++ lib/librte_eal/common/include/rte_eal.h | 20 +++++++- lib/librte_eal/linuxapp/eal/Makefile | 3 +- lib/librte_eal/linuxapp/eal/eal.c | 6 +-- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + 9 files changed, 99 insertions(+), 8 deletions(-) create mode 100644 lib/librte_eal/common/eal_common_proc.c -- 2.5.0