From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0051.outbound.protection.outlook.com [104.47.41.51]) by dpdk.org (Postfix) with ESMTP id 3808F952 for ; Fri, 14 Oct 2016 14:53:17 +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=qS9tZcP6sguI/wZOomulTNagNsPr+f6tL5mS9SdG+C4=; b=VVCj/Oq6ywwcMqqRq7DjUrBDHX2Ze0aQXWTJMrSMeyvEPFt9LJenilwGkU6wUrOK4JiJOKvre5U0WxDFDf5OkITZykVPe/Ep7tQr5TJyjjLQDaCmbEn4135mJ9ByjTruOP8Skun8gZ0Yb6pw85DsJQbBotgOS3DmYtrZsTUtIpk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.166.92.214) by BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Fri, 14 Oct 2016 12:53:12 +0000 Date: Fri, 14 Oct 2016 18:22:51 +0530 From: Jerin Jacob To: Hemant Agrawal CC: Bill Fischofer , "dev@dpdk.org" , "thomas.monjalon@6wind.com" , "bruce.richardson@intel.com" , "narender.vangati@intel.com" , "gage.eads@intel.com" Message-ID: <20161014125250.GA6900@localhost.localdomain> References: <20161005072451.GA2358@localhost.localdomain> <1476214216-31982-1-git-send-email-jerin.jacob@caviumnetworks.com> <20161014092607.GA16828@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.2 (2016-07-01) X-Originating-IP: [122.166.92.214] X-ClientProxiedBy: MA1PR01CA0070.INDPRD01.PROD.OUTLOOK.COM (10.164.116.170) To BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) X-MS-Office365-Filtering-Correlation-Id: 5fe524f4-eee6-4c16-6bdd-08d3f431101b X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 2:vvx9nWGRRkAk/hJXcKCueNqltydOOfVZxH1pCr1OjUN1xWM0fgorDqn/Phv+7v0b0Jn+EvSc47tGlvtssDhzDo05JkisCw/006W7lLTvmtCzts3Bhjok3G7E5LPgSBzRi6FMQnwcXIn3E3xaHwXkmE8TEywjCWFLULxF73F5R6CQM4MMERDmqh36fj6v2MSM; 3:EibtQn4P7m3LTxok2q/8LkAnvM7irFR9AlTaREg0wxjCgZ/Gz0BkjLS5PE3fKMzD8AUusMItFL1LscHR4Qb9wZV+u4DZR21UsGTSM4ZLRyXH9HUA+XuR5fRN6sSFAtGp X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 25:F/qhxHbE1IP/jo7fhHx2Av3NK3O7r5WFGCmhgTaiZjVYUoM3P2k5XcWC3Mb9GZdcnwHH8/Gv0AJcWTb8Jd23crXiuUk+agp8A4slflcmjnkL+ZZaaXwyngo1TLIK9Jt1ceq6Krlrx9LJx0CcGes4fKHkN2iUvDVnJV87pCNCqKDXIIAnEwrZqMM9FwGKRM3KyyS6sJhyTLOmd+jje1WN9XC8xn7apNf/GGK2QX4dzFMbfHs/dvjAcfaSWa/0jTi5JkNI/2+6AvPMrUAEg5CpI6V8/OZIa0ds3y2chBoc1XyJ1s0VeV7Qalyo7ptJZP1dfsJs53nwdqGMggG0I52v0/NtkId2jJpOkudBL1rUmDiLYpHERFpSq1VA0H2L1p3TbhPGDID8G36EVmnqRAg7zxYKUW7lyL801GrnKkdScP6Y6XaDqJSFF69QijGWzoBKIImbyrAqdcrlX0Ly8ebwfb/rgIIs2UX1ROBOVc1OCjjzX/RzR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cWrr1OMAX8fK0Yl0m5RjqmL98ujvqO5fDXFUTFKgp/Aq7dOqpBgVV4YG1qpYqeUeoku6XdykSle54= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN3PR0701MB1718; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 4:62WN0o1yTTNQ+vV5lICGOYqFIs4goMRl+2IsIBSOWO5oeLotXbVOa+HvB8e4et2tZ7QY4+0ssPOApdEd7jHjXePNO77TqIb3Ceex8RrhGul37ONwbKKdeVTLB5GtUFErNixXXkQA8kS274hwBHZBh8Ku0BTeG4oyZ2+FgquvDBUUJipyXJ5nssVTs2H5enRg++yvcyDSzUl8nD17sJj0tMRLOdAh02CMY1t4RlLRnBeUiAU8abjO+FjeJeWBggHsVP/At1aLt60f/cS8WCkUtKWynnbJhFqMHo6H2Qbl4y/IcFgnMOdGV6xBqqKDxI4nnlMHwXevN7TXWhB0LpDe9Y/dHPFUs4oRo5KpLMvsMrQR0WHQXZSnPAqMe6IeQZpyWM4OJHErKmB0wP14g2m9lw== X-Forefront-PRVS: 0095BCF226 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(24454002)(92566002)(8666005)(81166006)(33656002)(81156014)(42186005)(3846002)(19580395003)(46406003)(5660300001)(106356001)(8676002)(6116002)(1076002)(4326007)(23726003)(68736007)(189998001)(97756001)(586003)(110136003)(4001350100001)(76176999)(50986999)(54356999)(42882006)(2906002)(77096005)(305945005)(101416001)(97736004)(2950100002)(9686002)(93886004)(105586002)(7736002)(47776003)(61506002)(66066001)(50466002)(6916009)(6666003)(7846002)(83506001)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1718; 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; BN3PR0701MB1718; 23:zDaEIPSfqjy/OPCmLxwNpgiuI7Vz50YTdI5+8sK?= =?us-ascii?Q?nIk0TdrSUiaoo36tiB18+7MSB881q6LyoAxybWeCQKmGN+JP9G9fKle6TDL/?= =?us-ascii?Q?E1zUQd7TJ1Ebd3wefi09lxMf6GEY630cu/jEMOQ6RS4eYUER2sN1tDr0GVYP?= =?us-ascii?Q?b5tWIwLr/zfcOdTc/rtJrN0wT3Uc7pTkfUqSRzjqitUsdk9bBHlWn2Co5sMi?= =?us-ascii?Q?Hby7TNfmJSKyngV3rq59VCnB1oqrcv2k9VGvfNIo6S0K7DPFp7gLUp/ftvhd?= =?us-ascii?Q?P8QDd/HRKhZyv35p3legJd7V88IbBjeEAVhehc6Vjph1bt+o5Lf5R2CU1d2H?= =?us-ascii?Q?xPK8pLEt8TNoxvws2G3nVWk/qVZwct1DT9wT/vF3hyMzdMgu8HE0ZiV0NGyi?= =?us-ascii?Q?gyEyIfoXPWBS1GGMi3R4q8YbceG1qE6INJj2QIBZ0X8lfa0P0kkt9FA2jQQb?= =?us-ascii?Q?ChnHLy2yxeVBN4M4oBYvmgWD+xz0fQRa2VcojcvwxOhIqOFngxR3vKhr4Lxz?= =?us-ascii?Q?OZs6FM6XuTl/XUjOJwCMpWbY3C+xYAPXjIgoOM/BinxtDVyA7mmtSiRBsj9h?= =?us-ascii?Q?+lINfVEE13lFBlslWkycb45SgmKtqI9VQrb/kb0dWKYx9todlKX/yxlHtv8H?= =?us-ascii?Q?vAi5Krnoe14+WX/mn0Oe35MUhrKVdxtxFJhUBgczn8UFbWSn+HuIyZ4KvM7I?= =?us-ascii?Q?YdOgoeGDbbx4aZGM7Sh1NbeBqOWN5hUzEqButHxTCakdqdKYebL6OKTfjhJY?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WQIdC24AulyhwdGmo+348TBuCLZp13jU2GRG+Wa6xRPQvqkKhNBXKLPYRQcfgLAVyBMApjxrB09xxvQ4LHFQTKMHrkbTiJtMr7h6sOzgrYD87A==; 24:dZO7DIyOLhtETmoEJtwBNqsm1JoXEqzWQHsxXCCxwYtH65/8AQtHyVi6Oia0SZJT/CuFU4BRnBuNUrjA/alVFLOITz2S5rH7T71uPC8jXqI=; 7:YIxzBCe6NvDysX4eQBBZ44+uaor57XhvWSa10RmreLakarXsoVUdS2EFLnZqTCBKefkb47K2CRzU/80ufVF76P1D8qytU6ghxHx8jyaKtULG9qmmEX8WOUwg7uEtVWjnmGDMO8Jg4JFs1OP/bzuyHP9XhRomjuq0CMQpPfGNnlyJ/iVrTIHCT6Slf61K2DMUQqSWnUIwxqXtUfQbZbFer5LUGhI4KiXwwiq0O1/A7n5S/Yj8oWtpJTyNsQJmPPB1preGWoZgOEmpjfGeSmtNCQFq1yYgcU8Jfe2HLF/EmzBvN/lS1yThZhoxluR/nihVcDgVMFpV2KklDYo80EFXng== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2016 12:53:12.4038 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1718 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: Fri, 14 Oct 2016 12:53:17 -0000 On Fri, Oct 14, 2016 at 10:30:33AM +0000, Hemant Agrawal wrote: > > > Am I reading this correctly that there is no way to support an > > > indefinite waiting capability? Or is this just saying that if a timed > > > wait is performed there are min/max limits for the wait duration? > > > > Application can wait indefinite if required. see > > RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT configuration option. > > > > Trivial application may not need different wait values on each dequeue.This is a > > performance optimization opportunity for implementation. > > Jerin, It is irrespective of wait configuration, whether you are using per device wait or per dequeuer wait. > Can the value of MAX_U32 or MAX_U64 be treated as infinite weight? That will be yet another check in the fast path in the implementation, I think, for more fine-grained wait scheme. Let application configure the device with RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT so that the application can have two different function pointer-based implementation for dequeue function if required. With RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT configuration, implicitly MAX_U64 becomes infinite weight as the wait is uint64_t. I can add this info in v3 if required. Jerin > > >