From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 May 2018 13:16:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,363,1520924400"; d="scan'208";a="52504088" Received: from txasoft-yocto.an.intel.com (HELO txasoft-yocto.an.intel.com.) ([10.123.72.192]) by fmsmga001.fm.intel.com with ESMTP; 04 May 2018 13:16:30 -0700 From: Erik Gabriel Carrillo To: harry.van.haaren@intel.com Cc: jerin.jacob@caviumnetworks.com, narender.vangati@intel.com, gage.eads@intel.com, dev@dpdk.org Date: Fri, 4 May 2018 15:16:03 -0500 Message-Id: <1525464964-5342-1-git-send-email-erik.g.carrillo@intel.com> X-Mailer: git-send-email 1.7.10 Subject: [dpdk-dev] [PATCH v1 0/1] Add service lcore attributes API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 20:16:32 -0000 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