From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gage Eads Subject: [PATCH v2 0/2] Improve service stop support Date: Thu, 14 Jun 2018 08:51:28 -0500 Message-ID: <20180614135130.30849-1-gage.eads@intel.com> References: <20180531135557.7544-1-gage.eads@intel.com> Cc: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, bruce.richardson@intel.com, nikhil.rao@intel.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com To: dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id AEE151DFAE for ; Thu, 14 Jun 2018 15:51:52 +0200 (CEST) In-Reply-To: <20180531135557.7544-1-gage.eads@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Existing service functions allow us to stop a service, but doing so doesn't guarantee that the service has finished running on a service core. This patch set introduces a function, rte_service_may_be_active(), to check whether a stopped service is truly stopped. This is needed for flows that modify a resource that the service is using; for example when stopping an eventdev, any event adapters and/or scheduler service need to be quiesced first. This patch set also adds support for the event sw PMD's device stop flush callback, which relies on this new mechanism to ensure that the scheduler service is no longer active. v2: - Move function to DPDK_18.08 block in rte_eal_version.map - Fix signed vs. unsigned comparison compiler warning Gage Eads (2): service: add mechanism for quiescing a service event/sw: support device stop flush callback drivers/event/sw/sw_evdev.c | 114 +++++++++++++++++++++++++++- drivers/event/sw/sw_evdev_selftest.c | 81 +++++++++++++++++++- lib/librte_eal/common/include/rte_service.h | 16 ++++ lib/librte_eal/common/rte_service.c | 31 +++++++- lib/librte_eal/rte_eal_version.map | 7 ++ test/test/test_service_cores.c | 43 +++++++++++ 6 files changed, 285 insertions(+), 7 deletions(-) -- 2.13.6