From: Wei Zhao Date: Mon, 8 Jan 2018 03:35:36 +0000 (+0800) Subject: net/ixgbe: fix tunnel filter fail problem X-Git-Tag: spdx-start~532 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aa291959273a36412a51685ecad0f6166e81d41a;p=dpdk.git net/ixgbe: fix tunnel filter fail problem Add a mode type check for tunnel mode, if FDIR is in this mode, it does not need to do sanity check for x550. Fixes: a2ba854ec616 ("net/ixgbe: fix MAC VLAN filter fail problem") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index 0af1719d63..551580c049 100644 --- a/drivers/net/ixgbe/ixgbe_fdir.c +++ b/drivers/net/ixgbe/ixgbe_fdir.c @@ -1248,7 +1248,8 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev, IXGBE_ATR_FLOW_TYPE_IPV6) && (info->mask.src_port_mask != 0 || info->mask.dst_port_mask != 0) && - rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN) { + (rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN && + rule->mode != RTE_FDIR_MODE_PERFECT_TUNNEL)) { PMD_DRV_LOG(ERR, "By this device," " IPv4 is not supported without" " L4 protocol and ports masked!");