From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id B83FC1B14C for ; Tue, 18 Dec 2018 14:19:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2018 05:19:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,368,1539673200"; d="scan'208";a="119253564" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga002.jf.intel.com with ESMTP; 18 Dec 2018 05:19:12 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.26]) by IRSMSX101.ger.corp.intel.com ([169.254.1.237]) with mapi id 14.03.0415.000; Tue, 18 Dec 2018 13:19:11 +0000 From: "Dumitrescu, Cristian" To: Thomas Monjalon CC: "Pattan, Reshma" , "dev@dpdk.org" , "Ananyev, Konstantin" , "jerin.jacob@caviumnetworks.com" , "Singh, Jasvinder" , "david.marchand@redhat.com" , "olivier.matz@6wind.com" Thread-Topic: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition Thread-Index: AQHUjjmhPYRdjupnb0WkxL3z2vq4LKV+7wMAgAAI+mCAA+DLAIAAYu6AgAAZcACAAEoNAIAAvUWAgAAMebCAABesAIAACnVg Date: Tue, 18 Dec 2018 13:19:11 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E81666F@IRSMSX108.ger.corp.intel.com> References: <20181123165423.134922-1-jasvinder.singh@intel.com> <1646379.j0tofnCs90@xps> <3EB4FA525960D640B5BDFFD6A3D891268E81658C@IRSMSX108.ger.corp.intel.com> <34337288.XBznk5NxM7@xps> In-Reply-To: <34337288.XBznk5NxM7@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjQzOWExNDctOGQwZi00YTEwLWIyZjYtNDExYTkyMjVlNmNlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMmJVamVwZ3lBN3NVYVdBeWpoVG83cFpLQnNDTFdWUG8yVUJXclhHaUZxdWNZMWE5cjlnM2tLK25JSmlpRXVGcCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition 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: Tue, 18 Dec 2018 13:19:15 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas@monjalon.net] > Sent: Tuesday, December 18, 2018 12:38 PM > To: Dumitrescu, Cristian > Cc: Pattan, Reshma ; dev@dpdk.org; Ananyev, > Konstantin ; > jerin.jacob@caviumnetworks.com; Singh, Jasvinder > ; david.marchand@redhat.com; > olivier.matz@6wind.com > Subject: Re: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition >=20 > 18/12/2018 12:18, Dumitrescu, Cristian: > > > > I replied in v3 that it should stay in rte_meter.h. > > > > You can include rte_meter.h in ethdev. > > > > > > OK, thanks Thomas, makes sense to me as well. > > > > > > > Thomas, > > > > I agree with your input, but just want to make sure we are on the same > page: > > > > Besides including rte_meter.h in ethdev (which you are fine with), we > would also need to include rte_meter.h in mbuf. > > > > Are you OK with this as well? >=20 > Why do we need rte_meter.h in mbuf? >=20 You probably looked at V2 only, but in V3 we have functions to set/get the = color within the mbuf->hash.sched field. For space compression reasons, the mbuf->hash.sched stores the color on 8-b= it variable, while for the outside world the set/get functions work with th= e 32-bit enum type. We do same thing in other places in DPDK, such as rte_c= rypto_op, etc.