From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2AC131B3B2 for ; Thu, 12 Oct 2017 16:59:32 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2017 07:59:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,366,1503385200"; d="scan'208";a="322497200" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga004.fm.intel.com with ESMTP; 12 Oct 2017 07:59:29 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.49]) by IRSMSX107.ger.corp.intel.com ([169.254.10.239]) with mapi id 14.03.0319.002; Thu, 12 Oct 2017 15:59:28 +0100 From: "Mcnamara, John" To: "Dumitrescu, Cristian" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "adrien.mazarguil@6wind.com" , "Wu, Jingjing" , "hemant.agrawal@nxp.com" , "jerin.jacob@caviumnetworks.com" , "Singh, Jasvinder" Thread-Topic: [dpdk-dev] [PATCH V3 4/5] doc: ethdev traffic metering and policing api Thread-Index: AQHTPrHxupvFKqGq2UWbNBL2Y5ObTaLgVnBQ Date: Thu, 12 Oct 2017 14:59:27 +0000 Message-ID: References: <1507208974-180500-2-git-send-email-cristian.dumitrescu@intel.com> <1507301136-131382-1-git-send-email-cristian.dumitrescu@intel.com> <1507301136-131382-5-git-send-email-cristian.dumitrescu@intel.com> In-Reply-To: <1507301136-131382-5-git-send-email-cristian.dumitrescu@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWNjOGEzMDQtYzI2Mi00MDNlLTg0OTktZDg5YWQwZWJmNzEzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkF4XC9wMXZMN1c3ZG1XcmRRSk9PQUNLWlwvVWRiMHRYWFI2XC9maVZmMWVIbWs9In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH V3 4/5] doc: ethdev traffic metering and policing api 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: Thu, 12 Oct 2017 14:59:33 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Friday, October 6, 2017 3:46 PM > To: dev@dpdk.org > Cc: thomas@monjalon.net; adrien.mazarguil@6wind.com; Wu, Jingjing > ; hemant.agrawal@nxp.com; > jerin.jacob@caviumnetworks.com; Singh, Jasvinder > > Subject: [dpdk-dev] [PATCH V3 4/5] doc: ethdev traffic metering and > policing api >=20 > Add new section in the Programmer Guide for the ethdev traffic metering > and policing (MTR) API. >=20 > Signed-off-by: Cristian Dumitrescu Thanks for the well written doc. Some comments below. > --- > +Traffic Metering and Policing (MTR) API > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Leave out the acronym from the title. It is explained in the overview. > +The processing done for each input packet hitting an MTR object is: > +* Traffic metering: The packet is assigned a color (the meter output > + color) based on the previous traffic history reflected in the > + current state of the MTR object, according to the specific traffic > + metering algorithm. The traffic metering algorithm can typically work > + in color aware mode, in which case the input packet already has an > + initial color (the input color), or in color blind mode, which is > + equivalent to considering all input packets initially colored as green= . > +* Policing: There is a separate policer action configured for each > +meter > + output color, which can: > +.. Drop the packet. > +.. Keep the same packet color: the policer output color matches the > + meter output color (essentially a no-op action). > +.. Recolor the packet: the policer output color is set to a different This section throws several doc build errors. Bullet lists need to have a blank line before them and the second level indentation isn't correct her= e. It should be something like this: The processing done for each input packet hitting an MTR object is: * Traffic metering: The packet is assigned a color (the meter output color) based on the previous traffic history reflected in the current state of t= he MTR object, according to the specific traffic metering algorithm. The traffic metering algorithm can typically work in color aware mode, in whi= ch case the input packet already has an initial color (the input color), or = in color blind mode, which is equivalent to considering all input packets initially colored as green. * Policing: There is a separate policer action configured for each meter output color, which can: * Drop the packet. * Keep the same packet color: the policer output color matches the meter output color (essentially a no-op action). * Recolor the packet: the policer output color is set to a different colo= r than the meter output color. The policer output color is the output col= or of the packet, which is set in the packet meta-data (i.e. struct ``rte_mbuf::sched::color``). * Statistics: The set of counters maintained for each MTR object is configurable and subject to the implementation support. This set includes the number of packets and bytes dropped or passed for each output color.