From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0041.outbound.protection.outlook.com [104.47.41.41]) by dpdk.org (Postfix) with ESMTP id 54A151B3D8 for ; Tue, 3 Apr 2018 03:31:45 +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; bh=tM3qrRV3EHtmPzec9/WvUGziQj7Yk4ekLf59ssv3lwg=; b=MBPUUDi1LO1SuizKnnCgmqhRUoro/4YeDLQZRo1/hmAJy5fPIusugeg8D45TXAbT7A05/lETF9oLd4lNirPHdf2vkLjCBJ8lRlCubr5ZbmZFl7sIARmJD8YLbnZM/GgWShszHkErLahDzOsjcB6g0HHEFadn/Wse40iYwssAyi8= Received: from jerin (106.201.49.151) by CO2PR07MB2518.namprd07.prod.outlook.com (2603:10b6:102:12::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Tue, 3 Apr 2018 01:31:39 +0000 Date: Tue, 3 Apr 2018 07:01:26 +0530 From: Jerin Jacob To: Gage Eads Cc: dev@dpdk.org, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, bruce.richardson@intel.com, santosh.shukla@caviumnetworks.com, nipun.gupta@nxp.com, liang.j.ma@intel.com Message-ID: <20180403013125.GA21750@jerin> References: <1521555187-25710-1-git-send-email-gage.eads@intel.com> <1522692210-15376-1-git-send-email-gage.eads@intel.com> <20180403012648.GA21246@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180403012648.GA21246@jerin> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [106.201.49.151] X-ClientProxiedBy: BMXPR01CA0037.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::23) To CO2PR07MB2518.namprd07.prod.outlook.com (2603:10b6:102:12::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3227208a-b18c-4f7c-9c34-08d59902a7f6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 3:YWIW2pxU6AXVfHQActHMzFFTDfQYPrhC1Li7KPdjVGPvByjMgCK0llLCz51ebVrznlnhBPPT2rcb4ncfCTkvzXK7DhLtA9clXcBPMH5ofXfYNW/FR69uYLG1NlAAOp+jk0r/PX1R2FhY4uxkP5jIk4BJHPj8aAP7Vp2lcuwLwsJOGDJt4fP5/GIYbENW6AxjFAh3EybqbDG2gWL0LxlXrxGueOjSgopFwbMiVUQVr8rBQBZqHddSxb/2bwRMJPrl; 25:g3hB6qfzsTlhu3cRsCuzIyyC/0PxWfANEmhjnCjSDOlwQ0V1l3/sVEC5vIo2GZ4oDfNmgsBJcANmuEV+WvZfmn1zXxAPvELhqsp7vymp8/JkmJyL+2be9xnC5/Q3bkSToDhq015kwLgEgKvZncWk9kseZ6k3pqO7CB8XDMpCDc28LUjVamlQwIft0d69mydGvoaxGuvO6ouj6D+jHwph3eDD+/7PzPnKVMCgVqEEcAxV/+5yiah1dFjHgYwvOzXEtaqS7rQmrATVfXEOxoKBp7ZNCFRcmX7rUl7VpmA38LEmo9d3Jnw5yfCTSY6dBki7LmGggch43fZ267CN6xxHDQ==; 31:fVKocMyRAjxBEFJnPLOYkjoau48fQCuDraAwv6zZXWUPwt6iMIwp8/5u7TdaAwjxtvHuEOx5fp+Hlbb1QKASR56Ve2PQExaloAXJ+09MDH43VPQA7ixcb7/FS4bSTcq90hFeqNVl5L7a9qUq71ky/DButhcz/IuxDLrxaoXqe+9XjrhPD9ikzix+dIiQmavbwuubs6l5skTla3COqUqL60NspEUcBy2qv+pVqq4IUfs= X-MS-TrafficTypeDiagnostic: CO2PR07MB2518: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 20:9XzKwiPGCRAC4l8sWVj8LqDeBTsdM6TIVHr1qtPYTjc3BwFhcGT2EJ9UuFA4JNcDBoof7PrxrvPJgG8rQ9WajhcxM6nVWy0ljge6WjbRP3jd1hmd94vRHU1M3i4+KhtQ1PiQDboYd7oWknZIYdh/kiFJJxcAUGZ+n8e+/dLTe0wcWl2ItygmZyWo2NFO59TuPo2UNZ7hVzp6cLY1rdLlrhs0AttT02Zz7mEGU8u5ySOAYFMwA63bnQcViSqs0dHYnZ9KrZCLasEWN1H+h61MxVoWp/HcKdiKZ3VxB+A5hpcpT+cWJGjrSmEXDXrl45IlyOygxnnXBHt2xT8DMwZz7HuHSJQDYUq10rFjBQgPX5BOmYu4OJHyIicKe/4GqhrVykhZAYC3PAP/eGNxTJW+eQ5q0FzrAI5e36/ds9PUeIQRHMIygZer//eYZMQdQW2PHAaAQrsXmnFN9ZqtydfG/anAuv1xKHzplJm2D5CS792npTP/ZocVLwEZ0XMKQlPCnQ6qFp0k7pzSl7XiroocK1zQ7YgSbcBcRX0aKhZ8jbBiFH5F57LdJOXXt9WsZ7L5PGB3AE07hnm8a1VN3vzFrdFH4bL7mWFvESCPlj6X+xc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(10201501046)(3231221)(944501327)(52105095)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:CO2PR07MB2518; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 4:G1f/H9fltfpRUEx78i1+fDb34kj6V7SvlT9bi+CiXIJ04p7il3woZoLBFQ+5wTLCK4VVmquNMJEoEYgGqdLGEMnGgtkgugTTKciUpKsbpToSyaQfZCygkt3p+ruF//7nsvID163DWowEyGrnoObLE633FkGk1k45Rkyjrrc+oDkXVv71HrcQ5ldsqV+IOeYKLwRj/a6pQawimkxz3JxpHbDxlI/fvtihlwUN7tIjFY7kbnX557vE1BYZecruzRhAJIuBZi8iamiY3wSxY7AUhTj5nvvCEitpDuXTTeD4AKozKwIK4H/OOmbdCEcKYbdmEXR05mtL5NrUiO69EVkJof+3yNryEnAVHAoyUlhug78= X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(396003)(39380400002)(39860400002)(13464003)(189003)(377424004)(199004)(25786009)(6916009)(6306002)(53376002)(305945005)(9686003)(6116002)(33656002)(966005)(23726003)(229853002)(5660300001)(55236004)(1076002)(97736004)(4326008)(6666003)(55016002)(53936002)(8656006)(3846002)(186003)(16526019)(316002)(26005)(386003)(105586002)(8936002)(106356001)(16586007)(2906002)(47776003)(81156014)(81166006)(50466002)(8676002)(66066001)(58126008)(52116002)(476003)(478600001)(72206003)(68736007)(446003)(11346002)(7736002)(486005)(6496006)(6246003)(486005)(956004)(33896004)(33716001)(76176011)(5009440100003)(42882007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2518; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2518; 23:IPhofl/VZp6PNgyzIaUMtZLjClgwjNWMvYid7phxd?= =?us-ascii?Q?LMrIBmIFjgH9lqLjFrH+cYupjKnKlXrv3CzbYO2aWYR+LTHKAMaNmEJ2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ad9uIYJgXxqhoXxMVf2Df+ao8BgxkasBZsAmmw/n+hVF0Q4/?= =?us-ascii?Q?9BygK6JNbVZjdaol/9BtTRLtLbubnqj+JRszx5RcQgKz69/tVkWm56z/BxxD?= =?us-ascii?Q?Iuzmy0Pz6HMtsvrSR4LdjY8qMY58aeSXIaMMcYcCF+OdkLKZ2VzVJdQpWdNl?= =?us-ascii?Q?SjXDZNh8MYShHrO64bHJEAj0oT4llMtxye/1U8eQUqvRCitTqO0LZRc7zNC7?= =?us-ascii?Q?yrAAKVg6Ay0oKgPxvB1QAGN1tO1tJpWHnmJpZIUZNpAw7C5s2PXLPjORS30s?= =?us-ascii?Q?GjsaTyDOUzahOdZ+LRb2zKkN/1GiOPTfopIOfeNbOhmfI8i3nVO5qPagGRLd?= =?us-ascii?Q?0Bgo5Bdkt/pYWitaCIr+mC6a/qZ9naRSVlY4iGcr0DWhqyNR1crLCS115mZi?= =?us-ascii?Q?jnQZG4RbjMnhlzAm+YWzXoG/GSmxnV40dfv3soKi3YW8nTyIVSlrVVKDSzO7?= =?us-ascii?Q?UXhAYfBHsF8OoIDa2onJiDJzh6QrHbDlNIjdonMvOE3h2awnkNQldareHbY6?= =?us-ascii?Q?bg2kR2b+c9DAg=3D=3D?= X-Microsoft-Antispam-Message-Info: 1gA5wIpeLdM5Si/aT8ScED6KYlfpHcLGeNbheVxYMziq48P2LVq4WS0HSEECNPk90VuTnepQ6ciHNVWAkPCcLtHvGAS1ZgTvFbhJaZXWJgttnEE0v/O6w3RM/hlVTJumxUZiOA4eHySQj36IYgpCzHL39cYLUbyFDXJcC1GwmvuXMgJ0vt+DO1WVOpb3/A28 X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 6:AQysTQWfNMapmTmpHkZbm2dQnZl4iKZDEnj3UuyS6uiVCS1lro6e7puM/+/M1Hp/brY5iI93vjVLMnQZzowfoUM93vb3AMO0LfjF0kWjy05AqP7sDsSI45Di86uBr+vZGUEM25iBz24W86hqivVnwqTPsC1n5LUMyIwBaqyTwmtGX5xDdx62IEK4rBZsJ/PGBCssp0doJmexMxZct34ugHkC5NNfcPp5U0PIs+yE8ylvehNys6Tt+qqefYrbl9/F/A75KButI7ba+pz41ukYOaipLs4eZQxYv5aErTLOdJ7kBoTMTtnt+HvIXXpq4dTkx7ECUema7vkhbOJJOI+/H4aeulJfzPmZCuXXoa5AyoM254ObLQT5N+vudiIL87S7Y1SAJ6J5NPfknO7MvoFDjKpMX3uEBiKBQolsgil5dXhE9jTGJMc2mjRKIm8I3tppYT1FW6HxE1NqqZGwdtv42g==; 5:lgSNTUN3EgbkO3rAsX1eGuM52wYKD+cEgBeScu/dHhJ3idAd3ZZsVzzV2RJFv6wF2Siv56eGmZxXBGESLo69uoUY3Lkf4ceWcKFa3Y/hKbD5WsY8+vGL9POmMJhNhU1kxapEJ0rjD/vKBHEWcsR56+HSLzQV3wt5Xcz03QkN/a4=; 24:W02sFWZ/fptnhykojsqLj0FxJy9PJBWIErkifBU8h/xJZ4ytEiKigWjtN9mTtWIVchC06Bcvd5pEN7aFrqp1qEgiyhbHZp8SSG0RDwi9fh0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 7:ziwA7EZxuVXSirfyQqJzYFEX2ml7Nmoxtqbflc3WWXq37g0WVSN10cyZSxqGtHA3UgD9VNJh5nJnUxAf8RVrxlnFvDQ8mcFVVS9tnix4OK9tbstt0srMM7PfPY0eInepDluVL7cp9LWTid07xTV/ZDEInnXan8MyKtyVgLvZk6wixBfbg2nyG2csVY98BapUx5iQUFXGCMga9mFWuNmDuX9GRFjQZI4Pf8a3tGxWwcG8sD+jkWwAijZr/6/6wTHO X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 01:31:39.8796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3227208a-b18c-4f7c-9c34-08d59902a7f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2518 Subject: Re: [dpdk-dev] [PATCH v5] eventdev: add device stop flush callback 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: Tue, 03 Apr 2018 01:31:45 -0000 -----Original Message----- > Date: Tue, 3 Apr 2018 06:56:49 +0530 > From: Jerin Jacob > To: Gage Eads > CC: dev@dpdk.org, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, > bruce.richardson@intel.com, santosh.shukla@caviumnetworks.com, > nipun.gupta@nxp.com, liang.j.ma@intel.com > Subject: Re: [dpdk-dev] [PATCH v5] eventdev: add device stop flush callback > User-Agent: Mutt/1.9.4 (2018-02-28) > > -----Original Message----- > > Date: Mon, 2 Apr 2018 13:03:30 -0500 > > From: Gage Eads > > To: dev@dpdk.org > > CC: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, > > hemant.agrawal@nxp.com, bruce.richardson@intel.com, > > santosh.shukla@caviumnetworks.com, nipun.gupta@nxp.com, > > liang.j.ma@intel.com > > Subject: [PATCH v5] eventdev: add device stop flush callback > > X-Mailer: git-send-email 2.7.4 > > > > When an event device is stopped, it drains all event queues and ports. > > These events may contain pointers, so to prevent memory leaks eventdev now > > supports a user-provided flush callback that is called during the queue > > drain process. This callback is stored in process memory, so the callback > > must be registered by any process that may call rte_event_dev_stop(). > > > > This commit also clarifies the behavior of rte_event_dev_stop(). > > > > This follows this mailing list discussion: > > http://dpdk.org/ml/archives/dev/2018-January/087484.html > > > > Signed-off-by: Gage Eads > > Acked-by: Jerin Jacob Applied to dpdk-next-eventdev/master. Thanks.