From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730073.outbound.protection.outlook.com [40.107.73.73]) by dpdk.org (Postfix) with ESMTP id B06F41B000 for ; Sun, 24 Jun 2018 13:31:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t/2Z9UM71CLsYGxzPGUkxyqrLlQNU23blZsXQ5KoEeI=; b=Qm1quw6HcYO9AvudBKMwiAfl6mA18XnmgKy1GTnejaIDlXOchTF+mFio0YJ7jcoUc9Z4BU5yPTnKX/wklZemQKhJjSYl9gDQDp3sHEIx6QuvObz1ZNiaQ4fVj5xiWUebYqdQHEqajnByvGQds2zieddys7356PqqUJaXA73E8lk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.200.236.178) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.22; Sun, 24 Jun 2018 11:31:24 +0000 Date: Sun, 24 Jun 2018 17:01:17 +0530 From: Jerin Jacob To: Gage Eads Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, nikhil.rao@intel.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com, thomas@monjalon.net Message-ID: <20180624113116.GB9384@jerin> References: <20180614135130.30849-1-gage.eads@intel.com> <20180621142323.17598-1-gage.eads@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621142323.17598-1-gage.eads@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [106.200.236.178] X-ClientProxiedBy: BYAPR02CA0025.namprd02.prod.outlook.com (2603:10b6:a02:ee::38) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e481d35-93c2-4968-fb31-08d5d9c60641 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:4W2SGwWTWJUX5gr9SRS1DxDbR8S16Ik3GLVc58bNaIomU6JGJd6pNlvddUARuq39VPMPDHJSmFG7hPyyk8w/eyTU+VxVPCcVNrGOO/A3JQzER1slbNt9Yo8QTj9JPtfDCeTxTYEudCyd9vNsDWbQ1btbMPmJ+487M0cO9HY9FMXsHFGf3XSvC4lCbN5qatgbjDuUnJGdPLefJfEvLMTX8ej7UeNJeRT/4paonE5ULZlv9S48h6WBwHjuRNUo8Sux; 25:qPET3X6uw9arbOt+Ij727PU/CW9TiuXj7XurM+QyPOFfNPVKPDycX5MhgWGbCwu79syXrFj0w9GXEWktsTYenPFZFeQrhN7kcbA4OIqw8QTt/Xw9burzOLn5CN+8PwrQPvxifbbkFZqcLzeYOJ8tXUiavyaL8BCib7XUZZh+scYeXRRd0uvocDpgDWGcjLI/bYmuxW33mXai5L7NfmicGbKGiYttpRTGkbUriVGzrSf5cEnRFhUpAdMxe33lzo6DhHFxXByaOanTzegXRKp+fbFRX4u2YpTMcZT/9v+oPbiZfY2grzPzSyrrmEl8Gsqs/j1nVg6QpPTWRgOCvzXaWA==; 31:dsLaySegIIvGq1bcuWaOgl1Kt0howXoB9HWBZaAijqfXkG6tzWA+E2qzcTUpnDNwODuWldgP5QIxuvyYoHy2aPNZKGXivctH575u3+8QBtXws9p9Cab77t7MAc4qwdiOpi/sVPRfPnWIHDWw3DKyB8oIUy4RTcdAiXgx/w1Wu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EJdD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231254)(944501410)(52105095)(93006095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2526; X-Forefront-PRVS: 0713BC207F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39850400004)(366004)(396003)(39380400002)(346002)(199004)(189003)(13464003)(72206003)(446003)(33656002)(68736007)(47776003)(50466002)(229853002)(55016002)(9686003)(16586007)(25786009)(316002)(478600001)(33716001)(23726003)(486006)(81166006)(3846002)(6116002)(476003)(97736004)(58126008)(44832011)(956004)(1076002)(11346002)(8936002)(186003)(5009440100003)(8676002)(81156014)(106356001)(6246003)(7736002)(6916009)(26005)(2906002)(53936002)(16526019)(76176011)(33896004)(6496006)(5660300001)(59450400001)(386003)(52116002)(105586002)(66066001)(6666003)(4326008)(305945005)(42882007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2526; 23:o1y6jdyK7r9YLuMMNWpxno1Tzb6wd3aKk7UpIqgJ1?= =?us-ascii?Q?XcPQYaFGcG4eFYEEe/nqNtf26zl2U/MHYcEtlCnpxYYap1XlNHDYa2OJeX+0?= =?us-ascii?Q?VBRxUSgoCOtNalU6COSQWHYz5ZaJW+Wz6cfAbsNGuHBhNnBDdfLdDlRndWBD?= =?us-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AQqbA7K6ENttD4ht6kb170khRDKb0T+cwjJFn7Dks+zvn/yo0Q38kXPZKWjNIANBq4I5LMxq5TvDPFXkOGzMbf+bL459x2YQ5XzUJ1xIsPEritR8MQRiBnSHBAd9uVCtBnOn3buNBwzUSoWdUwnaTYGFleffg7wNQZMtbr3XLiKkKgcFGmAaTuUhVKcn/ES4jKuqFSMtoZB0Q8VPgtaSTTTPhkyGEa1HknAzcENww3Bvd7JAcu0ceKnl81zvtCcW+hIcwk6TYt9tvKZhLksXq6Q==; 5:CMVsPD+vlh61mYLjAth5D4z5woy61iTP3vxKcVwBDU3+s7Mr81pJ27K8phbglT0fA1TcV/u4qQCWv4o5bAz8PxcvX8w/YHXWAt5ydpGtpRsENgyh9OM1lDtFkZJVC8lVZ3PyGUABntsXNy5fF/7nFvTn6SZRD4eMstA2wbqQqL4=; 24:yG9U1MdwTJHMAJwfDQSBzYX+NN7m04QuRdv08LfmgbWcCS+QocAiq1d1bkzCyJmK7ELRq6auAOUeG1/O8LGY6PrZg14Yl0O/ftwK+UNQZ5Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 7:yOJbPJKxK8oDMhVg8AFV63d3qXS8v89Zzf5SZngxEOnARd/v2KdxuD0e9i1E3KId4iFU8iNJp93Tfbr5pnjSTezpgcBCvnWS6OHWA8dxOjdWxfgQfkOQcBz7fJuoxz+hRK+G89qJ/yzXdj7Uxqwd0BJrBkepuoEu1jNQuw0p3VqMRoWvtHzvMabgjl/bwSv4MDhX40Dm+ILPnjGZXqTzD9iOPoGkXLuOVQ7F044LLRcMVcUphSYnG67qCIZKsA2/ X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2018 11:31:24.3226 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e481d35-93c2-4968-fb31-08d5d9c60641 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [PATCH v3 0/2] Improve service stop support 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: Sun, 24 Jun 2018 11:31:30 -0000 -----Original Message----- > Date: Thu, 21 Jun 2018 09:23:21 -0500 > From: Gage Eads > To: dev@dpdk.org > 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, > thomas@monjalon.net > Subject: [PATCH v3 0/2] Improve service stop support > X-Mailer: git-send-email 2.13.6 > > > 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 > > v3: > - Move function to EXPERIMENTAL block and add experimental tags > - Fix typo in function documentation > Applied series to dpdk-next-eventdev/master. Thanks. > 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 | 20 +++++ > lib/librte_eal/common/rte_service.c | 32 +++++++- > lib/librte_eal/rte_eal_version.map | 1 + > test/test/test_service_cores.c | 43 +++++++++++ > 6 files changed, 284 insertions(+), 7 deletions(-) > > -- > 2.13.6 >