DPDK patches and discussions
 help / color / mirror / Atom feed
From: Helin Zhang <helin.zhang@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2 2/2] app/testpmd: fix ICC compile issue
Date: Mon,  9 Nov 2015 10:45:59 +0800	[thread overview]
Message-ID: <1447037159-26544-3-git-send-email-helin.zhang@intel.com> (raw)
In-Reply-To: <1447037159-26544-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);

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.

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index c637198..cc9ece6 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -7996,14 +7996,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

  parent reply	other threads:[~2015-11-09  2:46 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   ` Helin Zhang [this message]
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     ` [dpdk-dev] [PATCH v3 2/2] app/testpmd: " Helin Zhang
     [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=1447037159-26544-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).