Skip to contentSkip to conversation

i40e: fix build with icc

PATCH In review Thomas Monjalon 1 participant 2 messages Nov 6, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/librte_pmd_i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_i40e/i40e_ethdev.c +1 -1
index 4570795..5074262 100644
@@ -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:
Signature · 1 line
2.1.3

A message that is not in the archive (sent off-list or not yet received): 1415315688-12830-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

#2 lore raw
Quoted 9 lines

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.

Applied quickly for build validation.

Signature · 1 line
Thomas