igb: fix flex filter check for unsupported 82576
authorJingjing Wu <jingjing.wu@intel.com>
Thu, 26 Mar 2015 04:53:21 +0000 (12:53 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Mar 2015 21:27:51 +0000 (22:27 +0100)
Flex filter is currently not supported for NIC 82576.
Only i350 and 82580 support it.
So The MAC_TYPE_FILTER_SUP_EXT is used to check whether the MAC type is
i350 or 82580.

Fixes: 231d43909a31 ("igb: migrate flex filter to new API")

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Marvin Liu <yong.liu@intel.com>
lib/librte_pmd_e1000/igb_ethdev.c

index 49843c1..79ad267 100644 (file)
@@ -2908,7 +2908,7 @@ eth_igb_flex_filter_handle(struct rte_eth_dev *dev,
        struct rte_eth_flex_filter *filter;
        int ret = 0;
 
-       MAC_TYPE_FILTER_SUP(hw->mac.type);
+       MAC_TYPE_FILTER_SUP_EXT(hw->mac.type);
 
        if (filter_op == RTE_ETH_FILTER_NOP)
                return ret;