From: Thomas Monjalon Date: Thu, 6 Nov 2014 22:56:59 +0000 (+0100) Subject: i40e: fix build with icc X-Git-Tag: spdx-start~10176 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ee63ac39f8823410eb67eb571b3a5f0be341f951;p=dpdk.git i40e: fix build with icc Since commit d798a94 ("mac vlan filter"), ICC reports this error: lib/librte_pmd_i40e/i40e_ethdev.c(1763): error #188: enumerated type mixed with another type Indeed, RTE_ETH_FILTER_NONE comes from enum rte_filter_type but enum rte_filter_op is expected. Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c index 45707959bc..5074262ab8 100644 --- a/lib/librte_pmd_i40e/i40e_ethdev.c +++ b/lib/librte_pmd_i40e/i40e_ethdev.c @@ -1760,7 +1760,7 @@ i40e_mac_filter_handle(struct rte_eth_dev *dev, enum rte_filter_op filter_op, filter = (struct rte_eth_mac_filter *)(arg); switch (filter_op) { - case RTE_ETH_FILTER_NONE: + case RTE_ETH_FILTER_NOP: ret = I40E_SUCCESS; break; case RTE_ETH_FILTER_ADD: