From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E5BEF1B90E for ; Sat, 15 Dec 2018 01:16:24 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Dec 2018 16:16:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,354,1539673200"; d="scan'208";a="118957362" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga001.jf.intel.com with ESMTP; 14 Dec 2018 16:16:22 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.26]) by IRSMSX104.ger.corp.intel.com ([169.254.5.61]) with mapi id 14.03.0415.000; Sat, 15 Dec 2018 00:16:21 +0000 From: "Dumitrescu, Cristian" To: "Ananyev, Konstantin" , "Pattan, Reshma" , "dev@dpdk.org" , "jerin.jacob@caviumnetworks.com" , "Singh, Jasvinder" CC: "Pattan, Reshma" Thread-Topic: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition Thread-Index: AQHUjjmhPYRdjupnb0WkxL3z2vq4LKV+7wMAgAAI+mA= Date: Sat, 15 Dec 2018 00:16:21 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E81545F@IRSMSX108.ger.corp.intel.com> References: <20181123165423.134922-1-jasvinder.singh@intel.com> <1544193116-7058-2-git-send-email-reshma.pattan@intel.com> <2601191342CEEE43887BDE71AB977258010D8BA5F8@IRSMSX106.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB977258010D8BA5F8@IRSMSX106.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTNjMWM0MjEtZDA0Ny00ZGQ3LWJlMmUtMDFmY2Y3NjZkZjhlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMnZGcWJyNE1kdDZ4OU9KbjlSbFhVK1FONWFBZkdtbFRiWmdBMk56UE56TTExRFp6Zk1kQ3RoWVVGYVdmVGxnWCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 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 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: Sat, 15 Dec 2018 00:16:25 -0000 > -----Original Message----- > From: Ananyev, Konstantin > Sent: Friday, December 14, 2018 11:36 PM > To: Pattan, Reshma ; dev@dpdk.org; > Dumitrescu, Cristian ; > jerin.jacob@caviumnetworks.com; Singh, Jasvinder > > Cc: Pattan, Reshma > Subject: RE: [dpdk-dev] [PATCH v2 2/3] eal: add new rte color definition >=20 > Hi Reshma, >=20 > > diff --git a/lib/librte_eal/common/include/rte_color.h > b/lib/librte_eal/common/include/rte_color.h > > new file mode 100644 > > index 000000000..f4387071b > > --- /dev/null > > +++ b/lib/librte_eal/common/include/rte_color.h > > @@ -0,0 +1,18 @@ > > +/* SPDX-License-Identifier: BSD-3-Clause > > + * Copyright(c) 2018 Intel Corporation > > + */ > > + > > +#ifndef _RTE_COLOR_H_ > > +#define _RTE_COLOR_H_ > > + > > +/** > > + * Color > > + */ > > +enum rte_color { > > + RTE_COLOR_GREEN =3D 0, /**< Green */ > > + RTE_COLOR_YELLOW, /**< Yellow */ > > + RTE_COLOR_RED, /**< Red */ > > + RTE_COLORS /**< Number of colors */ > > +}; >=20 > Does it really belong to EAL? > Konstantin >=20 Why not? It needs to be visible to multiple libraries: ethdev, meter, sched, as well= as drivers. We'd like to avoid adding more complexity to dependencies betw= een libraries. It is very generic. EAL common/include is currently the place to put generi= c data structures, functions, algs, etc that are widely used by DPDK librar= ies. Lots of similar examples are easy to find in this folder. Where else would you put it? > > + > > +#endif /* _RTE_COLOR_H_ */