From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0059.outbound.protection.outlook.com [104.47.34.59]) by dpdk.org (Postfix) with ESMTP id 694891B295 for ; Tue, 3 Apr 2018 03:27:10 +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=U43o88F9ztFZQ9u+MJ95Yh0cBhVn5MKjKg8Io40fzIE=; b=V4Pkr1ETsUGUrfLns4uETE1F12NBMMv9f7YqjWsjV1T52MWmSXxnpAx6WRBtl0wboFY6nfqCu7VsZJxbGoN8Zq2lDmJoj5lWN11oHSQk9ErYqtgDQlSE9GkMczvduvPvigtHkBJBsrrjQRVr2jwhP2gMVf82vdk5ccLm/C/5apg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.201.49.151) by SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) 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:27:04 +0000 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 Message-ID: <20180403012648.GA21246@jerin> References: <1521555187-25710-1-git-send-email-gage.eads@intel.com> <1522692210-15376-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: <1522692210-15376-1-git-send-email-gage.eads@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [106.201.49.151] X-ClientProxiedBy: PN1PR01CA0107.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::23) To SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2728a824-0d0c-475b-9035-08d59902044f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 3:jodv3+VJ1UwTVvxCLOTxp8ctv//TJ+hXlaBw9WfZ1S/tjgd8Gr63wIdoStTGiQV3/BX//6/0tUbUlPGlKYzbf8RWGgRn7sqPPuCn88GrKAW5EfRxMZ4GtiubLLkyTUVnVfuhe+DqbemndFWNstoE3PjnwQp7q6yWT5un6pYyuTQdKPV6tE4EYYWsRC4yJGM0emHXz0AapG0cxcGba3X+kCqbiA9e29z9zYyTOfylfMzVmn1kKEIQ8h4Sb4E+pa/J; 25:xTpTlf0I5g5P0xn2LbCgiazWj+m+LRottbWu9sHUcUnJx+wyik6ZkUrMZdZeIHCaJPosIADq1FklnrLv3+Iw6hNpNuStqo9JG0lT+FDrtKojeG3YNSo0H7R2aESIXBlq40OPTYsP+emER+7TbHfdoGpOenZtkGSJk4jJ7JKXuXJRthMIreU+jEKwHtPidVMlTbB6No0V2C/807Ke0duLg+bLln3VNPnwBGkzQPjqlzXwft/TDYb4DNchODPa+rrBCG0//GsZ7NaVVhvErF24RitpjrUl+uCtaCX9Z4+prSxu3NAOM9z3ct6HGHxUtK667fXVQqRu7KqHAmopxcUsDw==; 31:pOjD8AhaVPczqlkLdRLKhEIDWii18JY8mdcirdb5Y3FxJrs5CeS71NxHcuNMcOv5itchza8RtpdPRgfCOJpgKmfk/ybbAcO7jVt/mvcEGGSvAq3kCXBZgXGzUwxMqV83NHq46iru15aDQLvITTeoK6c5qYf4oexxUqSNtop8CvvEQp/HMCD1tU4/JRLohzc7QH4TDzOov2bBbUZ2xhCcLJuVKFrq7Q0/LLyhV7nlX5U= X-MS-TrafficTypeDiagnostic: SN2PR07MB2528: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 20:jtQiNfJSxzTfKT2I9UrFKpFmHS27OGx8itN7VFqNE4CHtBA1yI1uDQnhf0m+6hKrW5CbKZfhl4WiJriZGdgFV5HoN+ZTXv6YG1ISZt+igs10YsAkQhD0zaQZPiFtImMEWMn0IifyGBogpG7o5W2qhcL+3Z06/Y2o+U1l5aeXyKCvuodW1fJ7OlbUgFTk6rWOcoGdeoqfUs3BDNeKhSlTtvBaLCjUkid1Zns0Exj0MiEk8ZAxmiBOdIuuwEEK0zkKYVTV5f/Yr5hR18u/kjaRhL1afcueeitlWU2ALkhOG2evZ0qlm/e+TncY25bCvBY5vit/ilNN0If7+ggejMEfwHQKZa9k3EpgQR8gHIfk6ZPr9FCVJk2+iUMydPRHa/qzTNzNmApfOEAm6yWlwgNC1CYRuWZTo5iDuzFDjHcWEinJ+U4cxnTyInxyPTmKk4lMUSCb0Hgrysfosq2gHuY1TA8lTFRw7kq0aWyvV+mHfSrjKM5UEArhpRxiIIlHfXXbYFzZvBPqyO9w7bOrY2swPkBKzawUBrqdTg5YwXV9UFSn6M2OMDmFK8UXwsg/nWtByRkzd7QG2zc6m72eyAYyswBGNFlwFgGwXVUfQ/e9e0Y= 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)(93006095)(3002001)(3231221)(944501327)(52105095)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:SN2PR07MB2528; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 4:AT0cuT6tf8BGBi1yHF0AzgQ+IDiDw7OUdt7/Dj5lG7uZCR2+IG0nqgiTT9glMk3GIktLMZyhHL/AanzmWdEyyTrXymqE8b1P1iSdao6tTCVXOoTlYYbbzrJjAgnzk9A2kDtzrI8hpy0c50BGGIP3wTZi0rrXxPa7+nZ53dCy1raoQL4c8xBg4tYdDiUa0Uqlv0gmmUA/YfM1kLt4s19UnLgpGqs+0g/mQovP/Ko+M83KaMIl5F8Dfzgsg8OpJ7DSj3a2rzDqTgT4U76YgpzTz2n8vtNChUpBqYeXrjJy2n5Af71gD0giGD7lAh1qgNRbTGaAiDKQM5feU+duk/K4TwA4RpD6nADSFLXcWrMsJQo= X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(376002)(346002)(39380400002)(189003)(199004)(13464003)(55236004)(316002)(966005)(6496006)(58126008)(25786009)(16586007)(5660300001)(229853002)(8936002)(81166006)(8676002)(33716001)(386003)(81156014)(42882007)(47776003)(68736007)(1076002)(105586002)(106356001)(66066001)(33656002)(186003)(52116002)(6666003)(55016002)(6116002)(16526019)(23726003)(5009440100003)(76176011)(3846002)(50466002)(8656006)(478600001)(4326008)(72206003)(26005)(9686003)(6306002)(53936002)(956004)(305945005)(446003)(6916009)(7736002)(11346002)(2906002)(33896004)(486005)(476003)(6246003)(97736004)(486005)(53376002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2528; 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; SN2PR07MB2528; 23:og/W/ySG+iFX9xnlAk3l2t8hzB/h3QmCT/Z7s+7Ah?= =?us-ascii?Q?JFXsu7mrgSeLsw79a528g5aTCFWZIIfJjdFTfwGUSxrAeiRK+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sfeuvHdac6lIXX2y/bHCvhXZPSsPbQ/nCc5czoeyJGzcrvjHvz7ElD12+HqXt2leMlgHD3/v3wa5WNUGnYHmmlp10u5psRm3QDYgUpfE/BESLtpqORFjaThTzl5BmoVKsa/cxMTNQYykgo0/A/a2YdQaVlMjlHeIa89CixWsa8S8xvUxb8ITUZa0S0h0WeZuRQOZSw1tU6UY9b6WrtuO40ZiJ1Lsa7ZvYszt4Ly9z/jW95X1S4jpmGhnpP9f8lOyshwiLNRNG/6beJIuWisY45tjy12/PKPst9slEwgWHRnIZMw==; 5:Q68OKnnHu+WB5E6VO/JYJOXKbu9sg7Bx3+2FRcEPz3ezr5F3wwdv4MdjRC19hVuiX4e1jsg6Bm4Y9tyzB4sjqQyaL/RGoA9GSd4FV0eQ4uiKgE/Q8ekaaZt7GWa/2deFYTLEntzdwZF8dSDJ/4P4dQSVlzu3OwmDb1TcB7ZR+6Q=; 24:dt4k3EXDk8NkJVBiG2n63/htBqxdIfP0SwUCYdppSw7GHYmd9VLWSrm8iHWVH7aJCmCQ3/fyC7Kg1jo+BY+IsrnMv6aq9pJhW/o5l8tnK5I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 7:6owKy05XGTeibw+/BnvpNEVYgLWpxiQruQUbAk6vonJFzsx33IC6g89vMhS7ws9t2epE+fr2/6xg3AXj56xxfFm4yEx/H3DA4TQ253LtWQelaoPqhE0KIGynFuAq2bKhe9VcmftW1atoREBQcHAwQ5SPYomJ+hGFB9sNtLsABQd1tmIJjU4dRpInW/oX1I6CZFIgqyNP2nuNnGis86pDEyR96ihdS47+un3gG6zcmaD7NS07Ps2HagHxT1fU7rnV X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 01:27:04.8631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2728a824-0d0c-475b-9035-08d59902044f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2528 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:27:11 -0000 -----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