From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0080.outbound.protection.outlook.com [104.47.40.80]) by dpdk.org (Postfix) with ESMTP id DFED2326C for ; Fri, 28 Oct 2016 05:02:07 +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=q7A/TSMow2BeeQ+r1MsN8puRFMcXBIPyYaJFs0ifJTQ=; b=jNTxTEzLsaFjXG79xj2bQT4gkC7xlhFo/nxzilMtbjIruoe266cp8yLn6bEjHCy4ivP4lbtXlEQ5uMiq23MncVB34ChiouoQoXMitqo0g4bzcuWbMaMRZJ3TpW9m7Sf/OND/Cq/MVF58mx54iTpKHk2JtsuGBrjbzMMy6b+iOm0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (111.93.218.67) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Fri, 28 Oct 2016 03:02:03 +0000 Date: Fri, 28 Oct 2016 08:31:41 +0530 From: Jerin Jacob To: Bruce Richardson Message-ID: <20161028030140.GA2967@localhost.localdomain> References: <20161005072451.GA2358@localhost.localdomain> <1476214216-31982-1-git-send-email-jerin.jacob@caviumnetworks.com> <20161025174904.GA18333@localhost.localdomain> <20161026122416.GA21509@localhost.localdomain> <20161026125414.GB33288@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161026125414.GB33288@bricha3-MOBL3.ger.corp.intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0043.INDPRD01.PROD.OUTLOOK.COM (10.164.146.143) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: 600f2f64-75d5-4ed5-4bd7-08d3fedeccd2 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 2:HgRa3p8uRV00YW3pBzfHxAytn8bauoqf8UE7bV1PKFEdRP+3aImpr9/56/3Qduc0JwfKy+2DSzUbpSPyhBpA5b4aeTh/XBaTbIWR4wusOso2m098zGduFTfC60MU9tDA0Ap/bRl66Xw0EjkqV1wAJcqT8+as0c9CIuLrM5zHYGieXudh6EqwXrWwoz05aRtSPggWi/JIqJRiWYMIA8u5tA==; 3:U4zDxJF/PEfE9fexdoxsteW5aqL5ZPy7ANXCYtdSeAgYnVnEtYZ2plrPnm8DTxABfSWZLLJK4jfVLLr5dDeAZ4WNfmDrC5yF8Sizjl8l+DBmvAEUsiGDWso6ZWmfe+6iPUFyo6hqtSQ8uzKDTcA6eg==; 25:e8ZklrKlGBJPagueJLAMQMSnLZcY5hTSMkMzOI1oCwue9aAnKyadnsKrU3CUF98f7D6AqXTVDS3f5AueYHEVjEpudlwJmOu/lGxI2zA0jpjmYA0JZXNV1shsIwj8khQUhalu/i2ZKepmXD6TSbKZgE02IarVF0I3M5nNKMwB9pVYtnsL1klLYfDZONdVnFSC18Epc3K9V3aaIYikWkYgTW/Dgrzf5EUFyICysFN/laI1HEwW3073ajb6fTEPQhnuETITwA5G9qTeLbdZReLi9Hlhgvafrkxao4KCtOuajmERd53O+gM6rb7Q1ZGJeCcs8cnr7pSO2GbqX6Ha1Zgq1OBtRytspQn9AskAqc+88CQ4HOmECF3R/0HwpT+/YdARkl8WYcLQWaIciiDTcahxwvBpxmA4D8i6kdhLfRWRSL/FfV0LZdwamhuDlzcb8dOJ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:nQfZAY1QFEVK1Ya4Dhie/8pAtksJmuo4dalaX0/SqtYbo77YVI1bBUV3JsP7fKHU5LwY4NYJBsl+dzXJ+FmwURjnswxKoDkRghpTqDIk3TOkwAlfizmgRcjAD4IWWNnzlOhflxwhxK8kAUKtU38HkLEw4tL+A5muKyL+1HcrjRRfmf47iLM0SVyOppziqRKGFge0GunEbtOnGTTVShd8sO2emerk1oK7m1dxPi+spu8sMbvycAtt0NTQi5alK7Gx; 20:6gZbj+vgT84CZShXNG7OPoMpL01172QwS0NV2BDyA8wn9fAuN/+yQT4W7MT2iPvvogeUxS8c7iriUvqultt7CJplzgMCpVXem5x5inFQ3BHlRdItdDdeiK4AO5w/qHXagUZCGJkzq2Vhu9xiPYtoWozdwa+6glet5mxh2lgzLTUkSahD3uvx9Ji3H/Isj63jVp/+7sgsRxU6lYS9wu0+QwFY9KIIQX31lgZkPnJzOBUxOgftRcUInVPtC3SrisReMsuU4Qbe59CXNK6/65lrKuRWWjY7zmginP7ZU84cAv2UVcQqWy8d0c9k2CfBZ9U3XmxNYPzw+x9bkFZkXxG5ygD1/BLSZfsS4jLX0EV9ql1AktI9bchl8f3tuKKqikQmtA8PO8mgVtjsB3WyePPT7asN9txY1j/jDUynBRk6FrZJSUR2mfstwXIZ+TNydUHXcbaRBoAZgi2Hkj2lStyostjZrzDSvgMYR9FV1gi72Z9jlvevWlQVri1jLypbbsh+ZXlPRaC7Q8gV79hoVOGrx0tIViWWI4V6JpUf1ISZlysN5mx3sZ3/gKv/Q73Dospt4yAIeORboCLkEPet/MWj0rpiUTR861fahRkUwO8RgtI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:OmXY6aaS6deAWqQpZ1SO9GTLnzP9YSAnhS2RWrESanX6dubOQdfv4s4wsa7yfi2WR4fckQed2yKRL/LpDqRoEk7BbbRURPen5ausHQXSZGAwkl+Z2HDCh/EgLuYp6ad/ILmopUzeUd+ulPI8odB5dnw0kwWkNK//BzKHa3NhaC3prscF99HAC+9Q/mv7VnVyQHEZckAWLzQ/SbPClzCs9oddRzLAQU7J5+SdmNWKqrGBj8UmVR0RDJ7oq0x/TmFyKxv5xc9FY6221uuWR7FTo5MCuBFDW20yj0VmPgjW9tOLgZR3yjF0pws3fhVlA9+8pdPJhbQit5fxbXgxLoycgoKSkz7YRTrN/PcJrbmJIQTYwJicwUuccwmwxg7SUCLqJhq7XeF64IXFSmdLu2HxfQ== X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(24454002)(13464003)(199003)(189002)(6666003)(101416001)(93886004)(23726003)(3846002)(76176999)(6116002)(97736004)(4001350100001)(54356999)(50986999)(586003)(8666005)(4326007)(7736002)(81166006)(8676002)(1076002)(92566002)(7846002)(68736007)(9686002)(77096005)(305945005)(189998001)(2906002)(81156014)(5009440100003)(110136003)(33656002)(19580405001)(2950100002)(6916009)(97756001)(66066001)(19580395003)(47776003)(42186005)(83506001)(50466002)(5660300001)(106356001)(61506002)(105586002)(42882006)(46406003)(7099028)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; 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; BN3PR0701MB1719; 23:8cDfOreh9CSP8fJnie/yxPeu3j257j7uXTvEzjP?= =?us-ascii?Q?SfU56n35NrzEii5Elpy4Za8kfwv6S0KcvnGtISizdA6Uhk+m5Vtwhp1RkWNI?= =?us-ascii?Q?A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wRTZ4oMMAKRi//X//Fy+6fY27zPAKWovfU/UsJte6Vzdx8+Pmqd42qIjHO9nKSb/o0zKY2N1lCbNOr0kI0n19NeCOE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:rgWlCgGPDQ4qOjIB+meqWt4iiuZhMTojsxtjhqek0Ioo1VBUFhVXE4INH680lxmZEI2ttfMhbZJeKQ96+ky3ykU2+pe8LID2MNRZnUUelHLcRh6AHqQV54212yxZHxaWIhwuOAOhjoXA87EIsfFJSF73dP/t6yzQ5S76ZZB2YUNiCwxDvW1Mi2/QBaXwOSuZ07Etnx+TlJZld5LS2yqc8N3T741ebxEy+gdeXY5pEMz9YSjuaPLMMjKBYimh4QubljN7p+UlcTSE0qR+o4xuDltI3NtMPhVzexkB7pnuW0vs3lL8lGtDEKXB5zW26NQ9eynhZg59dPZwbaNLkfLLdRy49mPvTS7csQPMCnMmxrI= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 03:02:03.8341 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Cc: "Vangati, Narender" , "dev@dpdk.org" , "Eads, Gage" , "thomas.monjalon@6wind.com" 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, 28 Oct 2016 03:02:08 -0000 On Wed, Oct 26, 2016 at 01:54:14PM +0100, Bruce Richardson wrote: > On Wed, Oct 26, 2016 at 05:54:17PM +0530, Jerin Jacob wrote: > > On Wed, Oct 26, 2016 at 12:11:03PM +0000, Van Haaren, Harry wrote: > > > > -----Original Message----- > > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jerin Jacob > Thanks. One other suggestion is that it might be useful to provide > support for having typed queues explicitly in the API. Right now, when > you create an queue, the queue_conf structure takes as parameters how > many atomic flows that are needed for the queue, or how many reorder > slots need to be reserved for it. This implicitly hints at the type of > traffic which will be sent to the queue, but I'm wondering if it's > better to make it explicit. There are certain optimisations that can be > looked at if we know that a queue only handles packets of a particular > type. [Not having to handle reordering when pulling events from a core > can be a big win for software!]. If it helps in SW implementation, then I think we can add this in queue configuration. > > How about adding: "allowed_event_types" as a field to > rte_event_queue_conf, with possible values: > * atomic > * ordered > * parallel > * mixed - allowing all 3 types. I think allowing 2 of three types might > make things too complicated. > > An open question would then be how to behave when the queue type and > requested event type conflict. We can either throw an error, or just > ignore the event type and always treat enqueued events as being of the > queue type. I prefer the latter, because it's faster not having to > error-check, and it pushes the responsibility on the app to know what > it's doing. How about making default as "mixed" and let application configures what is not required?. That way application responsibility is clear. something similar to ETH_TXQ_FLAGS_NOMULTSEGS, ETH_TXQ_FLAGS_NOREFCOUNT with default. /Jerin > > /Bruce