From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 65E8E2BAA for ; Tue, 22 Mar 2016 15:52:18 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 22 Mar 2016 07:52:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,377,1455004800"; d="scan'208";a="916463391" Received: from unknown (HELO Sent) ([10.217.248.31]) by orsmga001.jf.intel.com with SMTP; 22 Mar 2016 07:52:15 -0700 Received: by Sent (sSMTP sendmail emulation); Tue, 22 Mar 2016 15:52:14 +0100 From: Tomasz Kulasek To: dev@dpdk.org Date: Tue, 22 Mar 2016 15:52:09 +0100 Message-Id: <1458658329-6552-1-git-send-email-tomaszx.kulasek@intel.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH] testpmd: fix enumerated type mixed with another type 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, 22 Mar 2016 14:52:18 -0000 This patch fixes error #188: enumerated type mixed with another type, when uint32_t is casted on enum type in icc. Fixes: 05f1b9c82ec2 ("app/testpmd: add commands for L2 tunnel config") Signed-off-by: Tomasz Kulasek --- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 9d52b8c..c34d4c1 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -9723,14 +9723,14 @@ cmdline_parse_token_num_t cmd_config_l2_tunnel_eth_type_eth_type_val = (struct cmd_config_l2_tunnel_eth_type_result, eth_type_val, UINT16); -static uint32_t +static enum rte_eth_tunnel_type str2fdir_l2_tunnel_type(char *string) { uint32_t i = 0; static const struct { char str[32]; - uint32_t type; + enum rte_eth_tunnel_type type; } l2_tunnel_type_str[] = { {"E-tag", RTE_L2_TUNNEL_TYPE_E_TAG}, }; -- 2.5.5