From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0085.outbound.protection.outlook.com [104.47.42.85]) by dpdk.org (Postfix) with ESMTP id 95EB6370 for ; Wed, 14 Dec 2016 08:52:41 +0100 (CET) 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=agnP1bRTek0cebwM9hAVuF/vETC7modtOfP6cA0RnAs=; b=gLH24TBwEdSKjZiX+HB6zhmalxbYIdEcv6Xj4Nbv8YmVThK6EoImCQ59kqMyCJsVavpDhV1oKB8ekrvo9tpj3FEjX+g0d7iYS3fDLXk01kT6e6jUoQF3FHhKo2rrHPGxa+cSl/nlka5Sj3hUfLBuGoH6NX0p1b/duZx42XgdlbE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.166.153.127) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Wed, 14 Dec 2016 07:52:37 +0000 Date: Wed, 14 Dec 2016 13:22:20 +0530 From: Jerin Jacob To: "Eads, Gage" CC: "dev@dpdk.org" , "Richardson, Bruce" , "Van Haaren, Harry" , "hemant.agrawal@nxp.com" Message-ID: <20161214075219.GA24792@localhost.localdomain> References: <1480707956-17187-1-git-send-email-gage.eads@intel.com> <1480707956-17187-2-git-send-email-gage.eads@intel.com> <20161202211847.GA14577@localhost.localdomain> <60DABA4C-E3E8-4768-B2E4-BB97C6421A50@intel.com> <20161208044139.GA24793@svelivela-lt.caveonetworks.com> <9184057F7FC11744A2107296B6B8EB1E01E38655@FMSMSX108.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <9184057F7FC11744A2107296B6B8EB1E01E38655@FMSMSX108.amr.corp.intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.166.153.127] X-ClientProxiedBy: MAXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.164.147.28) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 2:4gWpx+wZxrDti6JXZDW35DIqvKvfmKD784ziFj5+VQi958y0OeGXksD9C5v7iQ7RQpUVpQ+2ZwTa7/trTaKBrTIxNZz5fQz1AAdCawSH7ZYiCz5atMQ8qp3m0TqJc7n+c8ScnZpbMD2tsAoTuWLhp+cPou7WsU8lMYZeSE0QwSU=; 3:kpeeyKa/gYFaOLDfqPVZKViPq/kCjDe7gMl0p4anFwsjZMA+3nnI+DIEvK29saFhCqBejiWT/jRWiL1r4yskttAn7jsw4R3yyqzxqALhNNxv/2qy+g/HQrRnAj9nQNt/jxGTXYzUG+H0unOSM4cY+dlYflqGvVe44U8wRjGMfC0= X-MS-Office365-Filtering-Correlation-Id: 006f8dce-9f35-4e87-9ae3-08d423f62d2c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 25:0HgiEM/QYmQHt/tZIFz/BmliYhW2aU5RFEMRjwa/gfIe5Z3yLnQUnXYDMOVdg0PeM2PEiazzQKTR475YU1WE/wt0P/sCMDHqH/ASnWRUxbN7uaT5SAUEy8uiqcqIpSG0CBo3whmYQWX0PBHk0u+sFWLFnsoAA/lznVGWxa7ugPsaGZy8VjGTjpAWgG92oQd5T861XuPBTExV/WxdExYOWZYhPeCLe8Vh8qS2gpi8gWHiz7SF+yJCDgxOsQIxKABQRDuVFNE5KK4628RVr9vD+RARM7AgiSzmoT1NDqt/gTOK+uNiK1I1ZI91SwsLh2/oO6NpXeiuS1I1i/geXksJ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sFmE4UGOVU01XHk2PSU/Ee0DiC4Mm6tc2Qc/+YJd1QaBBfBvCjjX6eA97avyPurcp7Va6XNWzod7ZVDavIZMIiHJH4+PVIlszHZ03DKB2dSTLq6wxt338wrbDN+JrZ5UN8+aLE5fXOMILwbDyTN1mu2jKyqHmqhykyHCxOy+/ThL09goRpfLXKNGSjnaFPvZBxTH0ZKLg0jdi8L8vIIOqD0ZxaVFOmXt1PUSUwed/toTrJYwVh2FxDxepotc6f3Ms4Bb123chrf7fS0/ARbNujcMBZ/Xhh5bTVcKCHCwW0uf96eZ7Y/ySiqO/jXr0y9YWjUIwtCXeALMaOneb3/cKne8PmX82qCig6UQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:EHJKZ4SMB+w2KsZzRm4xXnsHgOv6LH1qbEzwcxzBq1Z8yVKvBG6+QbzL6BjzdLw8zJUloPZCV4UpluscuMIw4H4HkXjkhOZfESfzfILHF4Sin5YU8sfhbPIfoEYEKkjpZzaUbRewQNoLQ2TipflJzXN75ALjWMN7sg/pop18bnht/MyTvQhqTBUCQzrHSwEYXyJu8BWLEsJ/DW09spTOLUqWw+kuIwrwDrWmXtPY66VqRQwrdBrtbimjCV2jg+BfMTwwkikqm3kBj1MXPIomRcAz1bQEW4nZpodjjz9cqcJejtFZzRRjxjfNoy1bpmq+LGdvtC5wRMIsYTuM03bX5POkhdzYAcGl6FSWe0ZO5FDAB2raNtfpREr78ICOLcLKopSVMNPK4//RbNv8oDsrXk1URlwHyKzbGO8DngjLG7X+P5TUfCnTmn1jKuNT0ppSb+6YTm38lov7xopOOtnXy+6F0EnLZ2jr7COe+QhPnfnmqF4z9mO/Kg2oqbDxbjrXhKrClINQoAtH1keQUc/hvGiT7z0iUh4IGpEMwouwVAAYIkNnY2sHj+MvdD2yG3BaQX5UydVXv+Uz+bxpW/h5nY8ZUbIUMQUQq69E4+B4u4x40W/wDF7/6AIeZMMC/v5N1n30iIxyfDQl6ItocuskOA== X-Forefront-PRVS: 01565FED4C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(189002)(24454002)(13464003)(199003)(377454003)(4001350100001)(110136003)(97756001)(8666005)(47776003)(50466002)(93886004)(66066001)(2950100002)(76176999)(38730400001)(105586002)(61506002)(6116002)(101416001)(68736007)(1076002)(6916009)(3846002)(46406003)(6666003)(9686002)(106356001)(42186005)(23726003)(8676002)(54356999)(92566002)(4326007)(5660300001)(189998001)(33656002)(42882006)(6506006)(81156014)(2906002)(305945005)(97736004)(7736002)(83506001)(50986999)(81166006)(229853002)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:i5c+1dZBODVxbD5X+vx4/Z01ev73Gir3rfEWSWc?= =?us-ascii?Q?hZQnssqcnCWOiS2tBntMR+qTlRIm82YQatzPdCFP+3QIv4R4DIDyhWR4CRMu?= =?us-ascii?Q?Co3aEkN36RRXczVYEP/KHcUlgFAl/HIhUZCkTbkysxFzAdZEVp1jESMVk8+/?= =?us-ascii?Q?smcFwqbdJmryvLRG14p32J3v025JgWTJnUUijL7GWLFOXtDXrLnC15I/eLVx?= =?us-ascii?Q?/vaeDn+a3Z8pBrRfRbYtJY7IGdCqMZjnaXsibTtrhglwMApfq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ostics: 1; BLUPR0701MB1714; 7:s23hJG8/+tWDPxA2SgNy7LjHCMsWrf7wrNr3EAGT9MUXo6zJvOZS6+LpzqDk6RpBuEEvB4xBPg5fcCCx5tqQUTI1Bzl7NyXyp6yHssz/XcN49hITPCNBnCAkC7kvBUb2gwgzaxU9p2xUFV8rUHzkh+UIv9EMtLx5xsRwzjx+zHyR8MRbl4Wl26u7eDZEW8sm7bWYbH8V0jcyE4IEbT+GkTy9XIOuNwe+kLSTiXRk94xCrjQg9b29BZseVdMBSjI4JMU2grimRKZQN21Uo6ao/9BDEQnmXZsiAR1zb2klBUMjP8xVlZ8EVp4m3YFT1vSN6i7B+bcG0YXRZQUqVL9V5z+zk1plpIsnqIcbtUjZ7+U= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2016 07:52:37.3649 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [RFC PATCH] eventdev: add buffered enqueue and flush APIs 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: Wed, 14 Dec 2016 07:52:42 -0000 On Mon, Dec 12, 2016 at 05:56:32PM +0000, Eads, Gage wrote: > > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Wednesday, December 7, 2016 10:42 PM > > To: Eads, Gage > > Cc: dev@dpdk.org; Richardson, Bruce ; Van > > Haaren, Harry ; hemant.agrawal@nxp.com > > Subject: Re: [RFC PATCH] eventdev: add buffered enqueue and flush APIs > > > > On Mon, Dec 05, 2016 at 11:30:46PM +0000, Eads, Gage wrote: > > > > > > > On Dec 3, 2016, at 5:18 AM, Jerin Jacob > > wrote: > > > > > > > >> On Fri, Dec 02, 2016 at 01:45:56PM -0600, Gage Eads wrote: > > > >> This commit adds buffered enqueue functionality to the eventdev API. > > > >> It is conceptually similar to the ethdev API's tx buffering, > > > >> however with a smaller API surface and no dropping of events. > > > > > > > > Hello Gage, > > > > Different implementation may have different strategies to hold the buffers. > > > > > > A benefit of inlining the buffering logic in the header is that we avoid the > > overhead of entering the PMD for what is a fairly simple operation (common > > case: add event to an array, increment counter). If we make this > > implementation-defined (i.e. use PMD callbacks), we lose that benefit. > > In general, I agree from the system perspective. But, few general issues with > > eventdev integration part, > > > > 1) What if the burst has ATOMIC flows and if we are NOT en-queuing to the > > implementation then other event ports won't get the packets from the same > > ATOMIC tag ? BAD. Right? > > I'm not sure what scenario you're describing here. The buffered (as implemented in my patch) and non-buffered enqueue operations are functionally the same (as long as the buffer is flushed), the difference lies in when the events are moved from the application level to the PMD. Another point, we treat dequeue as _implicit_ event release of the existing dequeued events, so with proposed buffering scheme breaks all the logic.