i40e: fix build with icc
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Nov 2014 22:56:59 +0000 (23:56 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Nov 2014 23:08:27 +0000 (00:08 +0100)
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 <thomas.monjalon@6wind.com>
lib/librte_pmd_i40e/i40e_ethdev.c

index 4570795..5074262 100644 (file)
@@ -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: