From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 2/2] ethdev: add hierarchical scheduler API Date: Mon, 06 Mar 2017 21:07:26 +0100 Message-ID: <3752751.fl3uBnnZGo@xps13> References: <1488589820-206947-1-git-send-email-cristian.dumitrescu@intel.com> <6158991.OypYtkqGNY@xps13> <3EB4FA525960D640B5BDFFD6A3D891265275A053@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "jerin.jacob@caviumnetworks.com" , "balasubramanian.manoharan@cavium.com" , "hemant.agrawal@nxp.com" , "shreyansh.jain@nxp.com" , "Wiles, Keith" , "Richardson, Bruce" To: "Dumitrescu, Cristian" Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 8D92B914 for ; Mon, 6 Mar 2017 21:07:29 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id t193so74293440wmt.1 for ; Mon, 06 Mar 2017 12:07:29 -0800 (PST) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D891265275A053@IRSMSX108.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-06 16:59, Dumitrescu, Cristian: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2017-03-04 01:10, Cristian Dumitrescu: > > > This patch introduces the generic ethdev API for the traffic manager > > > capability, which includes: hierarchical scheduling, traffic shaping, > > > congestion management, packet marking. > > > > We already have some API for QoS. Why integrating them in ethdev? > > ethdev is an interface for networking drivers. > > I think the QoS has nothing to do with drivers. > > If there are some operations to offload in drivers, please identify them > > and let's add the operations to ethdev. > > > > The reason to add to ethdev is because QoS traffic management/hierarchical scheduling is just another TX offload for Ethernet devices. This TX offload is present in NICs, NPUs and SoCs from Broadcom, Cavium, Intel, Mellanox, Netronome, NXP, others. > > The API we currently have in DPDK (librte_sched) is great, but it refers to an implementation for a fixed set of features for a BRAS-like hierarchy. The current abstraction layer proposal is intended to support pretty much any hierarchy and traffic management features such as hierarchical scheduling, traffic shaping, congestion management, marking under the same API. It targets pretty much any implementation, either HW, SW or hybrid; it does support the existing librte_sched library feature set, but it is not limited to it. OK I better understand now. You should add this level of explanation in your patch. However I am reluctant to add an API if there is no user. I think we should wait to have at least one existing driver implementing this API before integrating it. It was the approach of eventdev which has a dedicated next- tree.