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 58FCFA00E6 for ; Fri, 9 Aug 2019 11:37:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B8A92082; Fri, 9 Aug 2019 11:37:11 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id C9E52DE3 for ; Fri, 9 Aug 2019 11:37:09 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2019 02:37:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="193357566" Received: from silpixa00381635.ir.intel.com (HELO silpixa00381635.ger.corp.intel.com) ([10.237.223.4]) by fmsmga001.fm.intel.com with ESMTP; 09 Aug 2019 02:37:07 -0700 From: Jasvinder Singh To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, Peng Yuan Date: Fri, 9 Aug 2019 10:37:13 +0100 Message-Id: <20190809093713.25114-1-jasvinder.singh@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" In APP_MODE_SRTCM_COLOR_AWARE mode, sample app compilation fails due to wrong meter color type conversion. Fixes: fc8a10d8527a ("examples/qos_meter: add color policy") error log- /qos_meter/main.c:error: conversion to incomplete type (enum rte_meter_color) input_color); Signed-off-by: Jasvinder Singh Reported-by: Peng Yuan --- examples/qos_meter/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); /* Apply policing and set the output color */ action = policer_table[input_color][output_color]; -- 2.21.0