From: Helin Zhang <helin.zhang@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v3 2/2] app/testpmd: fix ICC compile issue
Date: Wed, 11 Nov 2015 14:11:16 +0800 [thread overview]
Message-ID: <1447222276-339-3-git-send-email-helin.zhang@intel.com> (raw)
In-Reply-To: <1447222276-339-1-git-send-email-helin.zhang@intel.com>
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>
---
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
next prev parent reply other threads:[~2015-11-11 6:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 7:48 [dpdk-dev] [PATCH 0/3] fix compile issues Helin Zhang
2015-11-06 7:48 ` [dpdk-dev] [PATCH 1/3] bonding: fix ICC compile issue Helin Zhang
2015-11-06 8:08 ` De Lara Guarch, Pablo
2015-11-06 7:48 ` [dpdk-dev] [PATCH 2/3] i40e: " Helin Zhang
2015-11-06 8:11 ` De Lara Guarch, Pablo
2015-11-06 7:48 ` [dpdk-dev] [PATCH 3/3] app/testpmd: " Helin Zhang
2015-11-09 2:45 ` [dpdk-dev] [PATCH v2 0/2] fix compile issues on ICC Helin Zhang
2015-11-09 2:45 ` [dpdk-dev] [PATCH v2 1/2] i40e: fix ICC compile issue Helin Zhang
2015-11-09 2:45 ` [dpdk-dev] [PATCH v2 2/2] app/testpmd: " Helin Zhang
2015-11-10 9:34 ` [dpdk-dev] [PATCH v2 0/2] fix compile issues on ICC De Lara Guarch, Pablo
2015-11-11 6:11 ` [dpdk-dev] [PATCH v3 " Helin Zhang
2015-11-11 6:11 ` [dpdk-dev] [PATCH v3 1/2] i40e: fix ICC compile issue Helin Zhang
2015-11-11 6:11 ` Helin Zhang [this message]
[not found] ` <E115CCD9D858EF4F90C690B0DCB4D8973C856E99@IRSMSX108.ger.corp.intel.com>
2015-11-11 18:25 ` [dpdk-dev] [PATCH v3 0/2] fix compile issues on ICC Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447222276-339-3-git-send-email-helin.zhang@intel.com \
--to=helin.zhang@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).