From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11FF9A00E6 for ; Fri, 9 Aug 2019 13:56:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4AD872082; Fri, 9 Aug 2019 13:56:58 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 31A5C137C for ; Fri, 9 Aug 2019 13:56:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2019 04:56:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="186647445" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga002.jf.intel.com with ESMTP; 09 Aug 2019 04:56:53 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.229]) by IRSMSX103.ger.corp.intel.com ([169.254.3.45]) with mapi id 14.03.0439.000; Fri, 9 Aug 2019 12:56:53 +0100 From: "Dumitrescu, Cristian" To: "Singh, Jasvinder" , "dev@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [PATCH] examples/qos_meter: fix meter color type conversion Thread-Index: AQHVTpYGHHcsjStE3kyj5EItxTCseKbytb4g Date: Fri, 9 Aug 2019 11:56:52 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E901EA9@IRSMSX108.ger.corp.intel.com> References: <20190809093713.25114-1-jasvinder.singh@intel.com> In-Reply-To: <20190809093713.25114-1-jasvinder.singh@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWE1NzVlNzctNWZjMS00NDIzLTg3ZDgtM2UyMTA1ZjU0Y2ViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia0YzcXhRZTRpd3ZmRXQrc2pTaE9rOXVDRXpsS3NucjBNcUgwc0tITzBQckpZakhJZFFoZmJqVGI5aldCSDBhaCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 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] examples/qos_meter: fix meter color type conversion 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Singh, Jasvinder > Sent: Friday, August 9, 2019 10:37 AM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; Peng, Yuan > > Subject: [PATCH] examples/qos_meter: fix meter color type conversion >=20 > In APP_MODE_SRTCM_COLOR_AWARE mode, sample app compilation fails > due to wrong meter color type conversion. >=20 > Fixes: fc8a10d8527a ("examples/qos_meter: add color policy") >=20 > error log- > /qos_meter/main.c:error: conversion to incomplete type > (enum rte_meter_color) input_color); >=20 > Signed-off-by: Jasvinder Singh > Reported-by: Peng Yuan > --- > examples/qos_meter/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c > index ce1f63dc7..da7afe8be 100644 > --- a/examples/qos_meter/main.c > +++ b/examples/qos_meter/main.c > @@ -156,7 +156,7 @@ app_pkt_handle(struct rte_mbuf *pkt, uint64_t time) > &PROFILE, > time, > pkt_len, > - (enum rte_meter_color) input_color); > + (enum rte_color) input_color); >=20 > /* Apply policing and set the output color */ > action =3D policer_table[input_color][output_color]; > -- > 2.21.0 Acked-by: Cristian Dumitrescu