From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DAD2B1B248 for ; Wed, 25 Oct 2017 15:25:01 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 25 Oct 2017 06:25:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,431,1503385200"; d="scan'208";a="913597443" Received: from silpixa00398672.ir.intel.com ([10.237.223.128]) by FMSMGA003.fm.intel.com with ESMTP; 25 Oct 2017 06:24:59 -0700 From: Harry van Haaren To: pbhagavatula@caviumnetworks.com Cc: dev@dpdk.org, Harry van Haaren Date: Wed, 25 Oct 2017 14:25:27 +0100 Message-Id: <1508937929-115852-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508779012-56186-1-git-send-email-harry.van.haaren@intel.com> References: <1508779012-56186-1-git-send-email-harry.van.haaren@intel.com> Subject: [dpdk-dev] [PATCH v2 0/2] service: enable app lcore to run service iter 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: Wed, 25 Oct 2017 13:25:02 -0000 This patchset enables an application lcore (non-service core) to run an iteration of a service. This is useful in a variety of cases, from advanced applications to unit-testing. A second function is added to allow the application to disable the check that a service-core is mapped to a service, in the return value from runstate_get(). This function passes responsibility to the application to run the service as required, allowing the first function to actually be of use. See the second commit message for details. This patchset is in response to rework on the Eventdev SW PMD tests[1], which made it clear that there is a need for applications to be able to run exactly one iteration of a service exactly when required. Regards, -Harry [1] http://dpdk.org/dev/patchwork/patch/30666/ --- v2: - Rebase on master to fix version.map file conflicts - Reword function parameter for clarity (Pavan) - Add Acks from ML Harry van Haaren (2): service: add function for app lcore to run service service: add runtime service core check disable lib/librte_eal/common/include/rte_service.h | 44 +++++++++++++++- lib/librte_eal/common/rte_service.c | 81 +++++++++++++++++++++-------- lib/librte_eal/rte_eal_version.map | 2 + 3 files changed, 103 insertions(+), 24 deletions(-) -- 2.7.4