From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0059.outbound.protection.outlook.com [104.47.37.59]) by dpdk.org (Postfix) with ESMTP id 97A3F58CF for ; Mon, 13 Feb 2017 08:53:23 +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=zJuY4+uRwlcP0xL96SophYFNwuEgaN5Hfk1T6kk+7LM=; b=B4LkPsx6PrhqAWL1w03nHgCqCVXTXhihpTMWmi4V6lNHh5UYdCqr2pU23h+inZwj0Vvltcqdb0uOQpsGD1A2pArCXzW44yuEt2WuFEm4I93Shivr34b1tWE+DRn/kdQluAz1oVVhKSIJ0pdC5aP9ffRjO8kg47xnEK3hy2PG6Gc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.167.151.246) by CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 13 Feb 2017 07:53:19 +0000 Date: Mon, 13 Feb 2017 13:23:00 +0530 From: Jerin Jacob To: Nipun Gupta Cc: "Van Haaren, Harry" , "dev@dpdk.org" , Hemant Agrawal , "Richardson, Bruce" , "Eads, Gage" Message-ID: <20170213075259.GA20127@localhost.localdomain> References: <1486739104-10953-1-git-send-email-nipun.gupta@nxp.com> <1486741801-18258-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.167.151.246] X-ClientProxiedBy: MAXPR01CA0006.INDPRD01.PROD.OUTLOOK.COM (10.164.147.13) To CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) X-MS-Office365-Filtering-Correlation-Id: c6305e04-0c90-4d0b-d54d-08d453e5618c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 3:Dow19SFor69g+6JHoCnDYG22ltxjaJY8KkHnAcDSyrStYe1ZrAmskZRUHH0ldNSpiKtqu9Cweu741tp+S9xro9oJW1HVnSeURT//ciaPI3u4KUQhHnkMzcPsJ4llhTdyNGaD6tQiPqZj53JL/EQLYZ51YgsGgoNpgI0Tr1aPAO/VMNWEolMCxev0tfYjJBRTd3VTFbZyeOHBP/xuqU9uDJrwy69soTfCsu3482jBUMZzN6nUl+2AS9Jpol93dErFJS4oGfkoSyrGdDcCFuLq1g==; 25:VbIkkkGEYeS/WiukU4FJofrm4Gh+TANDAhNt0GtSCUKSXqZwamsZJ71Zq/6PS5ClqjgyqDrdwz0hXLo6okwOlazzxv1gHaBfRz6q8Xw0ZAILa6go9m0EyiMgfr1+cLVWwA/tJFzX69voWlGT/gX8maXTznI1H9GumMpaP0JuWdpeHLp40HiDTK35oXMoO6XzQy1uR0+dqEUk/LgpcD3TBa/IEXsR94HKRC2UONqx56+MnDV/WN1iT5MUgO8plR6+alVL00Wcr5YA82yEC3SnmBuBDaiJuEH/4hWX7OE/mm6ilB827RIu8VaMUi6AU5+4ngy5/j4Xow1TuEf9UGoRnI0CVTeH/BlE00bq6kAqWteH9jVHR8MC85FwEOWdPRfAod8gBp8ufQ7qtwg7Ufzw7kI/BbivXuF/i+qec0cVCWJvZvSD3NwOsMZNp/mY31K38HLoUgM0msNpkp1AzGiLYA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 31:+oST4gTh29GhvPSeZCtHmUjJSUqlOooygbDerZ3popsNf/tQXnzKH8lTMQQHfIFx4BKknGPR0E9p2Mi9c6IhHhazYmQVAJigGLzC3F7u5rM98qjj8WfBalkhFHUkmH4DQ0CnGdisthYqu0ICfp/xKRziXvwi/0MlgG8mU/3khQjL/W2S465f4/4WBfJNowqun9H4pnzDVuFlEtgkAxGEh7anTVCM3k5xg/sGj5+74dQyRAHwu8yyMsp2CtjsiWDK1Yebn1UNrVlZn5cSaYjaTA==; 20:Afm6d/tmKnFT3r7lXAkSRE/Z6c+HJr1Phz7QPNSVuSl903i8w/A4EXpH3Lukd1Fw1FJerSKeMq7of3ntc0kli1k0rkKJnd4FbPrlED6NQbB7Tl9/BJS6HZBXT33jGjMxQ1F80OTBCMsuxkt8kxMzHNj8rlAwm/RoJ+NnCMhhbEdaSJAXJ0T7KcSSKfHJvH66RhM8I0Rau7DMXE1Jv9p2rW84e8TX7+qFQtqJqgEQNKLvNwTn5LaW5Y9HqpBNpxQ7XEs9AURgjSh5ihAEFhy8zfxzFsEjre+dtdYCuH+vh2To53TxU4Hb4jp3vQjN2nTM++tazOQ6Gs8uZ9HIZM/IqSxHRL/tdHJTn0HqUpKdg3/8DRPWaC7xq1YpQOrj1PCj1dbUypQepKg/lBgeUD/MfkEy4VBfr0HEQHmk8nGJ2/XxXd4j+Y65l2pAEFwuYZrFtkyjpbyx1Jdj4JdzxLhsg7W9Nnt/GJNuMfXsdPHPx/rvLXYw6zP9Z4ltLWQqrDtyw9nahPclWhHThd0jwYnOp9A/Ob55imMUQnzqCFLtgXAols4bUgetx4cGxPxddWFjDLufYPZ61G0YAZu0/FDM2RTNwqAjem+8ArMaOfK+DFE= 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)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558025)(6072148); SRVR:CY1PR0701MB1728; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 4:Hb161vdjHjnPXQi5qad8FmvAdKMzoVCGRM/WlDP7Su+2nXSVLN+N1nQRMkuZr0rJOgAQU7J68ZulvG+Gx0gF0jkU5oYM5GK1g3rK1tjqdB0Cv9JfNFYEldC+OXyU5quGRO/dJXpjSvVGcxGS+JkmLgYGRHM4FO1j8TAwRMpESj5C2+WteNL5/wS4qCT3kA8pB0D6ps+rzmxmfeTZcDtB2R5H0S1oGFKxm8On6qkZUwf/QHG1BXLP01+obtPT/W6oQcwFeQdzF3rp7YrfG6Yvo7Iz8XeuQfItGIieUjFq4HJyIctqqoD1REsMn85gDuaa2RUD/JWwLhyQ5F7/uGvrHBQe5gOXVC5TN05fw3Ydl/iBe3eiGSrcLDf8SHqIA9yXmVW00oN0U3tuTIqaF+visz7Zud7JNdH6xDoFAGHd+BAc4mA//0DOj5W/cUTXyFS2j+RE+ra3wnsnWISa1Mgt8wcW3hIKMr6ihjg3igWA39agWI1mH2+MahOBvP1DwPI7mLBu5xD7eC6afHsxWOm5uS6fYnhkyTh6amig5RAg8Dg9I6atF0s0O86IhaZqqBrIzqfyQ0tE2RZN3I8u58G1hLITm1qJSc5OZCOt6iqQt20kqLDR7V/WkprEngmA6sVqmbZ2e9S7UF6jrrR2v50UFNJNDNEZhosx/Fj4Z0o5TGX95hrK86QbbMp2mzzI8s6S X-Forefront-PRVS: 02176E2458 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(199003)(24454002)(377454003)(13464003)(76104003)(189002)(54356999)(33656002)(101416001)(50986999)(76176999)(305945005)(7736002)(93886004)(92566002)(97736004)(83506001)(53936002)(189998001)(6246003)(6666003)(42882006)(6916009)(2950100002)(110136004)(5660300001)(38730400002)(9686003)(81156014)(81166006)(66066001)(229853002)(8676002)(47776003)(61506002)(8656002)(55016002)(54906002)(50466002)(68736007)(4001350100001)(6116002)(23726003)(42186005)(2906002)(3846002)(1076002)(4326007)(25786008)(6506006)(106356001)(105586002)(7099028)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1728; 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; CY1PR0701MB1728; 23:d0YE60HZaaAUbzPZv/cGH8DdZ1HaOPrEsIOlUUQ?= =?us-ascii?Q?YdC010P9QxGFm7Gg+DyM0o9ot4lXLu4Nqay7uY2wsphI15r9wddnN1GNjXPT?= =?us-ascii?Q?2jqHgzBhUyogQKz4L9fmauTi/T/jK2arJAWDXZFuRJwZ+NR/lW+JF0aQbMdY?= =?us-ascii?Q?Pq7CfzgEGCoyBEy1s6cBtChrGjTQ66x4JWerBMDxrYvbRl4PIMiBp77rEcoi?= =?us-ascii?Q?B3mtJI6sCUY0pf04IIdSraDQ+l1ZYFDcq/l4D8ZCv04CcQLXEHAaUpZG88W+?= =?us-ascii?Q?LI2pICGxqRppT/T/eLnUiuwYs7s+tz+QORXYPC5qGW6/jxzNPzIYmMf2cklq?= =?us-ascii?Q?4A4yrbUTzYRq8NdlCTXCTtgE3qVnFxeFbYyqUADL+w3q3ELAoJvfaUzUAqVe?= =?us-ascii?Q?2mHLNi6Rzl6C3gIKpknbr64PupgfrQ7ULPbteUfjz6nX0OGtAyVPTE68Q09v?= =?us-ascii?Q?SImVHDmyDHXSOofeZGuGyJGHvQxPZrpMkiqPI4cr9V3SnMRtscX24pT8PO/m?= =?us-ascii?Q?MN5bgyHbVOmPeL/lYJNbeaKkTtV7foxizMFfsiGK4WJEYRSOvu9Maa0m40Mg?= =?us-ascii?Q?PC4KuVLJGOO4r8JACDv+8WQYNJYEXiKprE0KOTnSPIlmiVHyA5is/zKl0p8W?= =?us-ascii?Q?VRm8l+p3C+OwEfbyqLFaSjdNhPohRgH+zBaXpQWEGVRTv3DwiPo0szmLz7tP?= =?us-ascii?Q?ep06MkuXXEcDcydMUMn2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QMImue81Hq8TV2XkstasCe/A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2017 07:53:19.0161 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1728 Subject: Re: [dpdk-dev] [PATCH v2] eventdev: amend comments for events limit and threshold 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: Mon, 13 Feb 2017 07:53:24 -0000 On Sat, Feb 11, 2017 at 09:48:57AM +0000, Nipun Gupta wrote: > > > > -----Original Message----- > > From: Van Haaren, Harry [mailto:harry.van.haaren@intel.com] > > Sent: Friday, February 10, 2017 16:02 > > To: Nipun Gupta ; dev@dpdk.org > > Cc: Hemant Agrawal ; > > jerin.jacob@caviumnetworks.com; Richardson, Bruce > > ; Eads, Gage > > Subject: RE: [PATCH v2] eventdev: amend comments for events limit and > > threshold > > > > > From: Nipun Gupta [mailto:nipun.gupta@nxp.com] > > > Sent: Friday, February 10, 2017 3:50 PM > > > To: dev@dpdk.org > > > Cc: hemant.agrawal@nxp.com; jerin.jacob@caviumnetworks.com; > > Richardson, Bruce > > > ; Eads, Gage ; Van > > Haaren, Harry > > > ; Nipun Gupta > > > Subject: [PATCH v2] eventdev: amend comments for events limit and threshold > > > > > > Updated the comments on 'nb_events_limit' of 'struct rte_event_dev_config' > > > and 'new_event_threshold' of 'struct rte_event_port_conf' for open system > > > configuration. > > > > > > Signed-off-by: Nipun Gupta > > > --- > > > Changes for v2: > > > - Fix errors reported by check-git-log.sh > > > > > > lib/librte_eventdev/rte_eventdev.h | 12 +++++++----- > > > 1 file changed, 7 insertions(+), 5 deletions(-) > > > > > > diff --git a/lib/librte_eventdev/rte_eventdev.h > > b/lib/librte_eventdev/rte_eventdev.h > > > index c2f9310..171e52e 100644 > > > --- a/lib/librte_eventdev/rte_eventdev.h > > > +++ b/lib/librte_eventdev/rte_eventdev.h > > > @@ -404,11 +404,12 @@ struct rte_event_dev_config { > > > * @see RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT > > > */ > > > int32_t nb_events_limit; > > > - /**< Applies to *closed system* event dev only. This field indicates a > > > - * limit to ethdev-like devices to limit the number of events injected > > > - * into the system to not overwhelm core-to-core events. > > > + /**< In a *closed system* this field indicates a limit to ethdev-like > > > + * devices to limit the number of events injected into the system to > > > + * not overwhelm core-to-core events. > > > * This value cannot exceed the *max_num_events* which previously > > > - * provided in rte_event_dev_info_get() > > > + * provided in rte_event_dev_info_get(). > > > + * This should be set to '-1' for *open system*. > > > > > > I don't think we should mention ethdev explicitly here - it applies to any > > port that is attempting to enqueue work into a closed-system eventdev. > > > > What do you think of the following wording? (Suggestion only, feel free to > > re-word if required). > > > > /**< In a closed system this field is the limit on the maximum number of events > > that can be inflight in the eventdev at a given time. The limit is required > > to ensure that the finite space in a closed system is not overwhelmed. The > > value cannot exceed the *max_num_events* as provided by > > rte_event_dev_info_get(). > > This value should be set to -1 for open systems. > > */ > > I agree with you Harry. For *closed systems*, this limit should be valid on all the > enqueues, whether from ethdev type devices or enqueue's from core. > > BTW, do you use event limit both on event device and on event ports in your > software implementation? Because I think the limit may be only per event port. > > Jerin, > > Your views on this for open systems would be very helpful. Thanks. I think, none of the implementations can have _true_ infinite amount of inflight buffers. In our implementation, we internal fixed size SRAM for storing inflight events which are backed by DDR(To mimic the infinite space). But both are fixed size and configurable. That would translate to use only struct rte_event_dev_config.nb_events_limit in our implementation. If the implementation support port level configuration then it can use struct rte_event_port_conf.new_event_threshold.