app/testpmd: fix build with icc
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Tue, 22 Mar 2016 14:52:09 +0000 (15:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Mar 2016 17:12:33 +0000 (18:12 +0100)
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 <tomaszx.kulasek@intel.com>
app/test-pmd/cmdline.c

index 9d52b8c..c34d4c1 100644 (file)
@@ -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);
 
                (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];
 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},
        };
        } l2_tunnel_type_str[] = {
                {"E-tag", RTE_L2_TUNNEL_TYPE_E_TAG},
        };