From 30ad2bdb42e6d1da3eea4961b666064f9de3761c Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 18 Jul 2017 19:37:33 +0800 Subject: [PATCH] net/ixgbe: fix IPv6 flow create limitation for x550 The x550 family does not support ipv6-other flow as well as ipv4-other flow, so add this limitation. Fixes: 7d629cacedee ("net/ixgbe: enable IPv6 for consistent API") Signed-off-by: Qi Zhang --- drivers/net/ixgbe/ixgbe_fdir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index c7737011d3..eb2d5581c3 100644 --- a/drivers/net/ixgbe/ixgbe_fdir.c +++ b/drivers/net/ixgbe/ixgbe_fdir.c @@ -1272,7 +1272,9 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev, hw->mac.type == ixgbe_mac_X550EM_x || hw->mac.type == ixgbe_mac_X550EM_a) && (rule->ixgbe_fdir.formatted.flow_type == - IXGBE_ATR_FLOW_TYPE_IPV4) && + IXGBE_ATR_FLOW_TYPE_IPV4 || + rule->ixgbe_fdir.formatted.flow_type == + IXGBE_ATR_FLOW_TYPE_IPV6) && (info->mask.src_port_mask != 0 || info->mask.dst_port_mask != 0)) { PMD_DRV_LOG(ERR, "By this device," -- 2.20.1