From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 84E338E7C for ; Wed, 11 Nov 2015 07:11:27 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 10 Nov 2015 22:11:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,274,1444719600"; d="scan'208";a="833864420" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 10 Nov 2015 22:11:25 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id tAB6BN9C008417; Wed, 11 Nov 2015 14:11:23 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tAB6BLEN000388; Wed, 11 Nov 2015 14:11:23 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id tAB6BLFr000384; Wed, 11 Nov 2015 14:11:21 +0800 From: Helin Zhang To: dev@dpdk.org Date: Wed, 11 Nov 2015 14:11:16 +0800 Message-Id: <1447222276-339-3-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1447222276-339-1-git-send-email-helin.zhang@intel.com> References: <1447037159-26544-1-git-send-email-helin.zhang@intel.com> <1447222276-339-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH v3 2/2] app/testpmd: fix ICC compile issue 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: Wed, 11 Nov 2015 06:11:27 -0000 It fixes compile issue on ICC 13.0.0. Error logs: app/test-pmd/cmdline.c(8160): error #188: enumerated type mixed with another type entry.input.flow.tunnel_flow.tunnel_type = str2fdir_tunneltype(res->tunnel_type); Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) v2 changes: Corrected the variable/function type, to replace casting. v3 changes: Added 'Fixes' line in the commit logs. diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 2d43efa..3cb973c 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -8019,14 +8019,14 @@ str2flowtype(char *string) return RTE_ETH_FLOW_UNKNOWN; } -static uint8_t +static enum rte_eth_fdir_tunnel_type str2fdir_tunneltype(char *string) { uint8_t i = 0; static const struct { char str[32]; - uint8_t type; + enum rte_eth_fdir_tunnel_type type; } tunneltype_str[] = { {"NVGRE", RTE_FDIR_TUNNEL_TYPE_NVGRE}, {"VxLAN", RTE_FDIR_TUNNEL_TYPE_VXLAN}, -- 1.8.1.4