From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0064.outbound.protection.outlook.com [104.47.41.64]) by dpdk.org (Postfix) with ESMTP id 678F42C09 for ; Mon, 17 Oct 2016 07:11:14 +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=IbT1SYEdACkwQ3ENs5y30XvMUQv71KrYyuF3nS0CKuM=; b=NzjYaZjFNVIlGB+LxMw/orNTWjfi1RdXgpRoyJHcKj/Ba2Al6/vjFMwT5cmTx+uDwu3m9t5Ic/0c7Hb01SWDryFpnzc+q0PRtPG3r28q9mtLwnx470Bt2QAUnU/z1azEZKcAPfIeasppxU+QMYJJHJxdD3kDhW9FTi1jQ7F5AK0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (171.48.29.61) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Mon, 17 Oct 2016 05:11:09 +0000 Date: Mon, 17 Oct 2016 10:40:53 +0530 From: Jerin Jacob To: Bruce Richardson CC: , , , , Message-ID: <20161017051052.GB3543@localhost.localdomain> References: <20161005072451.GA2358@localhost.localdomain> <1476214216-31982-1-git-send-email-jerin.jacob@caviumnetworks.com> <20161014160220.GA204068@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161014160220.GA204068@bricha3-MOBL3.ger.corp.intel.com> User-Agent: Mutt/1.6.2 (2016-07-01) X-Originating-IP: [171.48.29.61] X-ClientProxiedBy: MAXPR01CA0032.INDPRD01.PROD.OUTLOOK.COM (10.164.147.39) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: 735e8fda-16f0-40be-88e6-08d3f64c02d0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 2:Nubu0D8To9furKiMIShfeNNnKEILc3++WMSz5m/XWhupBofFkCpNpjtedyCuB4njejkOEjmLpQbBQ814SQ3d/mb88dZtQxpx8+uEp2Y8zzIuq19gatUuDt1JDbmi+VIoW2kOLB1tTROIj/De/sg4uobZS246euVisJo6zSz2r406Er7SHAqlua0JTnp0I9cg; 3:D7qohT1GaId14ckuXTC7pObRo55OoHdnzF7QHDJwcPtdQ5B3H+DVbp4FDWg0UU9LxnO0/7v3cOrulC1e7lkKcNKSBhlfYNFj8Rg9mp9H4HNjOKSUEO4Qa10BD3KkGRN/ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 25:gYp+nHpGwqbLmDGjM3D5mxD5cAoueKzc8XBXEO/muD3DpRGLzXXlwrljub3xTzxHloL/bthwq5w7jcK2QPQgJ6hgDPAmtAXKIcSSFMqwHh9x3smEuH3sNuylH8hv8rlxCWqe/o5+9lDQ8ia3E6JUg4VoFGoxtCei24UC+ydYkL/ZBAyfIWC9HAELTetkEQpj1svs1yjw4gtLLVxvWuBdeL98IRjlIncYGO4k+orxRXCnhhhY/2qFGlA3K7i3vy1a4H5D8yMM2TksLIpCWF3KP3F8M3Ub0uyy4FGpvvakvDvs1hwG0xrGChqFNfa24ybuipvDu6B5D+mSQEj3IGgh1pA1EFVnzD/I3INZFcQPSI0zlAxXY59vjBba/KLZ8nwTE4D6HdxJqM+hzOVPUs4xWyanJ4yJkzWlAw7uRVmj69uoPl6aj9N+XhcbZ0R9+74PAElE5uBMUjajs7xBCHkoqwVNjU3kQeiNJ9c2l7Rb90IUPN5Z1Zpi1X6Kn34X0B6APCycKVJKAjaYcLT2CyosVpt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1iK5dclyF7uWNKkG2nRvbC5yVmYPQ3bWevqht1pCcJfWMfzPLVKoeULXPGhPfSu0RlgWBl0PLYaRKPSAaxSeffPISS8/Tj7dZUcLgfL2YILmuov8gk34uXk0WUkSPewxGVWFk41cRGvR4h7LMEO1xsf8Y= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(166708455590820)(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:j5kFzHeu2ALwJoTF3K1T1ridxP0pds5RVaePRWm0OpRK+3cu4SSRgFyQ+e24aHSoT+Fc6M9a7NJLC76AemWQMxZ22yptbrI+B0/h8rGXWm3iW9fhzT+TX2qXMO3Z2+sm0VGiEu1Uptv64WBACzWti2ATUp1Vwqdtql5T1CHPoYRU/JThq5odoYTgInqTkKfCftqGrf/xuejo9cqCful1gZlyRC60hf6v+Oxw8XIUXpsKzsT9KEUG2M7E0TClDq1yjRjiEByt5TQUar5BPe7u9IqJDq2wf278wHVrHTb4jh1vqE5qyO/pMjb4UfjVi9eIBnpnYY0bYy79OYVhLt9mK8MgelU20sFVXyp8vwJqGYqeBq0E+AykH3UELRCevOPkYheV2t/Qo+7jlC3gVBZWkFgkZeBRg3uek0VklD7taOMSxZ9Cn1Lj28aUXt5ocWaKCXp2E4BODZ2GWY5NZ7ZhK+/yXXzVtDZ27Q4c8+Hb3lpek62t1xYHD2AmXqfUUUeC X-Forefront-PRVS: 0098BA6C6C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(24454002)(199003)(69224002)(189002)(6916009)(61506002)(54356999)(5660300001)(68736007)(4326007)(97756001)(76176999)(8666005)(33656002)(189998001)(7846002)(9686002)(305945005)(81156014)(83506001)(46406003)(8676002)(92566002)(81166006)(42186005)(50466002)(105586002)(561944003)(110136003)(3846002)(97736004)(66066001)(6116002)(15975445007)(19580395003)(106356001)(7736002)(47776003)(77096005)(1076002)(50986999)(6666003)(23726003)(42882006)(4001350100001)(101416001)(586003)(2906002)(2950100002)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; BN3PR0701MB1720; 23:WauHmlBeL7Kug/9q+LhRPk9ieqgOVWyg9XHZMIl?= =?us-ascii?Q?UsyXggj5xHPndVifIKFTz0LnLp6b2n3Nfloe9hAoMDmU1aFzzaG1XY59EcP6?= =?us-ascii?Q?YEFe3EMLkaxCA2X1oa82yFiAWTi82hQR7cMHrJ3dFY/aF+icTZC9n4cIXImC?= =?us-ascii?Q?ALW5AjLF4Y2IDqdBxqs4gNvqAQap9cah+1EUa51UEQjhG0Ayiw4FUiKkJMn/?= =?us-ascii?Q?ArzzXLYFlR4JNlG468ClBOK1/eqeMoMVhTeViYitGKPOVh95ivt5MR9mwwK8?= =?us-ascii?Q?U/tK0stqKmJ3yUoy5q3x6wy5O2/szpC6X3OUwEv62Et20rg5MS9WhEw3QlmK?= =?us-ascii?Q?YeX/6pCcdeIkY7lFj9ZujpVjGPRVrGTKoZoKX57GIqUosSN23yQ6bSNnsnBc?= =?us-ascii?Q?IPak8gNrZdyr0fPkEqkpgSOGQaPaF/uaZIlHjFL+ePkuQBblGc4wBL8o0gBL?= =?us-ascii?Q?cQajkBQnb+HdxLdU1KPH3C+tfkUKwLHacUUVT1DwvaKywkNPWz3MMgFwhtXk?= =?us-ascii?Q?ghuzsQx44Mc+oSwFLrJznyTHWF40XsSvX+to9uYP2KQwFdDYrXGMwryfzSD0?= =?us-ascii?Q?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V6QCA+y1o345JT67rUFCULBDYuiyjA32SK6ioUI8lTCWPqbuiRG/SC58h9VwBJknEjlXrQdChJgYV3VuXRAsQk6jnLoiFE4NuaodSdeS2M4BjXiq5A11FVlMWezSKhnBMgOH2Hh6PPDnUHix3V97gC/tWGmCw74iooov1AlsjemiBMH6Ph9xTjNIwl9M99B7n4=; 5:HucDUwuCXnU3FpzhLG4d5IBWLJbT8UTlpgCtYWt4MQ+Cyq9+7l+RG2X2xx4SWsXYwwnBnslbeDkwMf3rOYCEy5W4yR5zrZqieEnARh+mcqtwYfPtIJ4yPz8dQN3YiUAK1NwrFIxTVfZK0+5Ty9SXIQ==; 24:3Ti4QZ9leD2aVWw6il0pKajQNCJjHucb7FvMWxhdVSz3aY5TPqpvLNHCdoVXROpiwu0ijwsNOkqAqGdM5prGrkc9w+KfRPRv6jiqO4pJ4gU=; 7:vZC9GkvpDd2V4hMdcrUb+5hiZXn0veq2b5eelIjEoX0xMW1zTgssFr327BnbIY2lteowfC2RV8nwItQXMJsOv4xy3vW7HYqSKAv2ZOU2ybnUrRLhsdtL5HBnPxjhJZpuXVk7u8rHE5//UWt28piot0wVRQGrqadRdU+15CRn4X8HuGNst1pA3/eAIwiRYLhhLfWUamrs7CNjZUouZ/apWeiy8EG0ZSpwCFclxb4+hYWOHvlm/En0ucDByeWtDnBRGGfzJ2uhGB9MlMP6mav75BMPZs3pOW2ETU9tbKiHBslJuR3zFsfEj8bFFZZygEJtM4U/+g7ZyfmPVpNUkSdFGQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 05:11:09.1021 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: Re: [dpdk-dev] [RFC] [PATCH v2] libeventdev: event driven programming model framework for DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 05:11:15 -0000 On Fri, Oct 14, 2016 at 05:02:21PM +0100, Bruce Richardson wrote: > On Wed, Oct 12, 2016 at 01:00:16AM +0530, Jerin Jacob wrote: > > Thanks to Intel and NXP folks for the positive and constructive feedback > > I've received so far. Here is the updated RFC(v2). > > > > I've attempted to address as many comments as possible. > > > > This series adds rte_eventdev.h to the DPDK tree with > > adequate documentation in doxygen format. > > > > Updates are also available online: > > > > Related draft header file (this patch): > > https://rawgit.com/jerinjacobk/libeventdev/master/rte_eventdev.h > > > > PDF version(doxgen output): > > https://rawgit.com/jerinjacobk/libeventdev/master/librte_eventdev_v2.pdf > > > > Repo: > > https://github.com/jerinjacobk/libeventdev > > > > Thanks for all the work on this. Thanks > > > > +/* Event device configuration bitmap flags */ > > +#define RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT (1 << 0) > > +/**< Override the global *dequeue_wait_ns* and use per dequeue wait in ns. > > + * \see rte_event_dequeue_wait_time(), rte_event_dequeue() > > + */ > > Can you clarify why this is needed? If an app wants to use the same > dequeue wait times for all dequeues can it not specify that itself via > the wait time parameter, rather than having a global dequeue wait value? The rational for choosing this scheme to have optimized rte_event_dequeue() for some implementation without loosing application portability and need. We mostly have two different types of HW schemes to define the wait time HW1) Have only global wait value for the eventdev across all the dequeue HW2) Per queue wait value In-terms of applications, APP1) Trivial application does not need different dequeue value for each dequeue APP2) Non trivial applications does need different dequeue values This config option can take advantage if application demands only APP1 on HW1 without loosing application potablity.(i.e if application demand for APP2 scheme then HW1 based implementation can have different function pointer to implement dequeue function) The overall theme of the proposal to have more configuration options(like RTE_EVENT_QUEUE_CFG_SINGLE_CONSUMER) to have high performance SW/HW implementations