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 B8C5A8DA0 for ; Tue, 18 Aug 2015 17:55:19 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 18 Aug 2015 08:55:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,702,1432623600"; d="scan'208";a="786417065" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 18 Aug 2015 08:55:17 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t7IFtGCc020966; Tue, 18 Aug 2015 16:55:16 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t7IFtGfQ014801; Tue, 18 Aug 2015 16:55:16 +0100 Received: (from istokes@localhost) by sivswdev01.ir.intel.com with id t7IFtGC6014797; Tue, 18 Aug 2015 16:55:16 +0100 From: Ian Stokes To: dev@dpdk.org Date: Tue, 18 Aug 2015 16:55:12 +0100 Message-Id: <1439913312-14761-1-git-send-email-ian.stokes@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] qos_meter: Fix compilation with APP_MODE_FWD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 15:55:20 -0000 The qos_meter sample app will fail to compile if APP_MODE is set to APP_MODE_FWD. This patch changes the variable name 'color' in main.h to the expected variable name 'input_color' to allow compilation with APP_MODE_FWD. Signed-off-by: Ian Stokes --- examples/qos_meter/main.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/qos_meter/main.h b/examples/qos_meter/main.h index 530bf69..08fbcb9 100644 --- a/examples/qos_meter/main.h +++ b/examples/qos_meter/main.h @@ -50,7 +50,7 @@ enum policer_action policer_table[e_RTE_METER_COLORS][e_RTE_METER_COLORS] = #if APP_MODE == APP_MODE_FWD -#define FUNC_METER(a,b,c,d) color, flow_id=flow_id, pkt_len=pkt_len, time=time +#define FUNC_METER(a,b,c,d) input_color, flow_id=flow_id, pkt_len=pkt_len, time=time #define FUNC_CONFIG(a,b) #define PARAMS app_srtcm_params #define FLOW_METER int -- 1.7.4.1