From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0052.outbound.protection.outlook.com [104.47.34.52]) by dpdk.org (Postfix) with ESMTP id E289DA56E for ; Mon, 2 Apr 2018 10:01:43 +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=zaCB+nFFzMRDHMt2nDHwtXN7bXkaNeoAS0kkQavUKxI=; b=UbxoYmHoHJV0yRLJ+kuxFS7synPtv6lIpMkTehCJMGUV+FtRSTok0FUdffUbVj7k7WI6tya3kvneMppbaIQpG0blBRnEpRESJO39jfI8FQCGeRhsbppG4YGkNYCDtQqamBQlBd0DARdyYIXkM1O23EOTLttNHQJvxDqXshi5gI0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.95.141) by BN3PR07MB2515.namprd07.prod.outlook.com (2a01:111:e400:7bbf::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Mon, 2 Apr 2018 08:01:39 +0000 Date: Mon, 2 Apr 2018 13:31:15 +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 Message-ID: <20180402080114.GA7280@jerin> References: <1521087130-20244-1-git-send-email-gage.eads@intel.com> <1521555187-25710-1-git-send-email-gage.eads@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521555187-25710-1-git-send-email-gage.eads@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [122.167.95.141] X-ClientProxiedBy: BM1PR0101CA0072.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::34) To BN3PR07MB2515.namprd07.prod.outlook.com (2a01:111:e400:7bbf::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d0f437d-e5cc-4773-0819-08d5986ff883 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 3:9konzGp7yGs2Xg/BqTg68Hjt34F7qPuOU3NYBEM6h7KHFMQuJoZuyA1NWBueptO/Pw1DX7N1PH1P7JyMrA1ILLWgxl/mIwJ27PONiXJVtzT2MkU2Gk1geu6I+TtNYFpxDYkc58oqn5FagE5RflIDJzbsYRVtPSVEFR13QoisdU5RbBv5oS4UE8n/7uC/xBglAIrK33W5ojsriB6YqbnesdSHgjKgS5NBY4KpltI2Yjs7xsFfSG7x1HcVGUqCFSjh; 25:E1f1Rhgoq8MwM4UoFfyh+CBVN7DTXATNejB5bgqrUZL5OSuZU+6gyUp6XlvwPhNpOmqZSaKxoIq9Pym4WQ5FLQz6/+N8xMO7u2tc0mh4Ksrn9NT2Bsg8iwe3QxdIbVxr85jDedOU2r+5yo81fBis14PufPmFFlzB0hXz2m6Hpu3g+UdSb8YSzRsoL8sjtZTv+sKBuAW+RHrf3yhTHflN53MgCfBUhGK/ptxP/IG/8JkMsvFZUxfUUcjs9F4yBaM0HlfuGo5fZ+uDaIsX0B3/9KOq8mDFCuEfF1NzcDVraCd/O2GGRQz21A76SIjO3n4l4ho6MrlgKYYXwO7Zkj5dEA==; 31:wdgh7OwbnI77VvK2hJMtucu4GQGylBG75Ug8vBfvoMymg9kUaKFK+J9G0IaBTq3QJJl38Ihj63pnbWWssEfP4BGXRO+YCRaEVujF4qObD4nshpZEqPtZTipVZ9kWT99FYAC/ahf8RJpryEzsC3+aYrfGcPi48WwA/2cOIWgbcgLWBLzgSJb5kJPJzW+oOZE2Jaz077KcarLtFJv96rOVR3wEMzznUaPqm7yNFJ7P4eU= X-MS-TrafficTypeDiagnostic: BN3PR07MB2515: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 20:hTDhBrAJFYBbW2qpNe2Q1CQJE+pXKbCjaNoNVD2637CTsXa8RMRbz1F/OENr1sf910aqATtZyZ6ewKXZphjSunnKkXZBXH00qeiXpDfTsrxD6bcgr1z90XJUSLs3H182y9/tsp5YqxoDCXT98cYXEgpjX56FfjInMfUCMyX2Mg2JMo8GEncd7y+YC7T/vn/Z6yUPG3g6+8Jz/lUFa0o4V9dd7TujtJL3qFqI8eqCQfLEh9D1bvdclNLYnWm3v6ZHWqqfq7uYjEBK6153+WCstzwcs9pbG2fSZtvMY57ujCMYoyBc/eqYvt2SVC+8mX+muOFQixd7H/OMh2dh+chR3tTusBhKgkWtypflZcJ3Fa4ngxskdCBnjJO6Sxr1TncordgEWoR/ZF56CxpriAySWIV4wqFOqZWNVXMuiJzHdMntnFtqxZ4Xjj/IuLFnG1Hr9jLRK3qDhGG56QBqS4iIOWhbClDMkJTQm5+/lagKkupRmn0w6V/np1/N38enxY5MG+WUKSCYC7CrlMbgKF4iaUOI4OHsh1g98xjsksBhEQRi1H9oMmepHLdhc3pukzprmiuh4Xu6qOjSeMXm0JV3Evn/Cz2eCfzVAXofm9ruF44= 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)(5005006)(8121501046)(10201501046)(3231221)(944501327)(52105095)(93006095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2515; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 4:HbyTFrfDpOy3Oonhuv8mn2vwk1VwtNUGssWUOSMYCiSIzXuQNArsUgCtjMAxaYvqJChg2Xr3XlTncNHkB+413pSqkC3fQmi715sngFRM9anqcCdKzuMBU6I/t0IPOxoYuMkr8DATdoHVkUzItx8jlFeT23vIcldNND2lMcgJZNo9Lh9B+SC0RFvgTdp3/MV7I5RUZU7qMvzIDHdIK3cZNL1WZYi3+Uy4maXp3OF1c/Pk6tvj5Dt1GimIy1OxPq0mzYEokyySALYWKP79vaEkXIEmLwKQvUD3ImS1frOdxcEObAYtJnIaGN71p+lNDhclhXNDB8P8Iwsddz4/j2HLbV68XfuQqd1sTJHJDBS32BE= X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(346002)(396003)(366004)(39850400004)(13464003)(189003)(199004)(47776003)(53936002)(11346002)(26005)(97736004)(16526019)(33656002)(33716001)(956004)(76176011)(52116002)(16586007)(66066001)(6246003)(6666003)(316002)(305945005)(486005)(186003)(7736002)(4326008)(6916009)(386003)(106356001)(58126008)(476003)(486005)(105586002)(25786009)(2906002)(50466002)(81166006)(81156014)(68736007)(53376002)(966005)(9686003)(6306002)(42882007)(55016002)(8656006)(72206003)(5660300001)(8936002)(8676002)(6116002)(33896004)(478600001)(229853002)(23726003)(1076002)(446003)(6496006)(3846002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2515; 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; BN3PR07MB2515; 23:fUVju0yq1aW4qqnRt3D55oAqsoeZihkiklIQG+F7P?= =?us-ascii?Q?LKyHJJa8RrgIgASVNakphOPKw6a3ceg2YuTScN85+7GHCm3dJ2rgCR3m9PKu?= =?us-ascii?Q?accGNZT/aBun/y9foSXl6q7uB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ABJ9LkdjgqC4luPETUb+WekTQ4poGBssoJzABv5mONf6RabYqqIu+lvtmsB5XMRr+PRjo005RlA7st2es74SwhmJhrnIWEjuILwhhmXyEeXlDI9CsSZMHNYjCvL1nIMyFNXg==; 5:K3uSIPufmK/GHqM+3rdB9sdxPBCyrSFP0S5TM+vaJhjn/tydHZDxxXM9qBzPFCz7AO82WwPpqx23rW+r6AabZpQtoN+PlOPOiEz9Hxm8X5YluxRbbYps+oVneNcvv8+Ygv6U3JR6+nxNz+RmnoYdoUXYtK1Ss0wzo5QD/yngnDk=; 24:fz12HZGaffZsmQZ7S3ks2KFJ/D9YltuEPIiHMngZ/X93w0KgWYfyh8U1v4Um581DP1JbMbdbK0QS/0Sr35KwgbM1UvxE9n2yiLy8inx9aQY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 7:3ydlRid7z/8Z3guzUwqtqG4Bnjwz+MykZFiCAim/3LF0UFs2FxZRi+Bw327djSACBuAJD/Z6FiIQpGFPEfyvlwAhhJT+7qgnQDE+yvE1nh7WmqNg7eKFrqPsNicx9NKhAke7cMfUrBhJI5x/Qu1dnfgjkF3riicAm1awwpWNfWQaNw6HCUL+EDh85xlN3xNF4iWaSxz7f3Q5EGLrVcVs2uKYGb9ClErJzbuFndvw9TmpH/YilJtscLhr3cd0ReuR X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 08:01:39.5491 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d0f437d-e5cc-4773-0819-08d5986ff883 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2515 Subject: Re: [dpdk-dev] [PATCH v4 1/2] 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: Mon, 02 Apr 2018 08:01:44 -0000 -----Original Message----- > Date: Tue, 20 Mar 2018 09:13:06 -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 > Subject: [PATCH v4 1/2] 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. 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