From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Gabriel Carrillo Subject: [PATCH v1 0/1] Add service lcore attributes API Date: Fri, 4 May 2018 15:16:03 -0500 Message-ID: <1525464964-5342-1-git-send-email-erik.g.carrillo@intel.com> Cc: jerin.jacob@caviumnetworks.com, narender.vangati@intel.com, gage.eads@intel.com, dev@dpdk.org To: harry.van.haaren@intel.com Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D81882952 for ; Fri, 4 May 2018 22:16:31 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch proposes the addition of an API which allows an application to query the attributes of a service lcore. It adds one such new attribute, named "loops", which is a counter that tracks the number of times the service core has looped in the service runner function (the driver function that invokes services mapped to a service core). This is useful to applications that desire a "liveness" check to make sure a service core is not stuck. Erik Gabriel Carrillo (1): service: Add service lcore attr APIs lib/librte_eal/common/include/rte_service.h | 30 ++++++++++++ lib/librte_eal/common/rte_service.c | 43 ++++++++++++++++- lib/librte_eal/rte_eal_version.map | 2 + test/test/test_service_cores.c | 73 +++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+), 1 deletion(-) -- 2.6.4