summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHelin Zhang <helin.zhang@intel.com>2015-11-11 14:11:16 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-11-11 19:38:11 +0100
commit64ee9e4815b21d0ceeb0ca9800a5b656ffccbac8 (patch)
tree99165224aa6a87a092820afe874d29240c0c9952 /app
parent695ae2788ec665b47db40805a1e999346027b3ba (diff)
downloaddpdk-64ee9e4815b21d0ceeb0ca9800a5b656ffccbac8.zip
dpdk-64ee9e4815b21d0ceeb0ca9800a5b656ffccbac8.tar.gz
dpdk-64ee9e4815b21d0ceeb0ca9800a5b656ffccbac8.tar.xz
app/testpmd: fix build with icc 13
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 <helin.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/cmdline.c4
1 files changed, 2 insertions, 2 deletions
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},