Skip to contentSkip to conversation

net/ixgbe: fix MAC VLAN filter fail problem

PATCH New wei zhao 1 participant 1 message Aug 8, 2017 Network drivers

lore
Share & tools
lore

wei zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix MAC VLAN filter fail problem

Add a mode type check for MAC VLAN mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes dc0c16105d2d2 ("ixgbe: fix X550 flow director check")
---
 drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_fdir.c +2 -1
index eb2d558..7c10cab 100644
@@ -1276,7 +1276,8 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
 	     rule->ixgbe_fdir.formatted.flow_type ==
 	     IXGBE_ATR_FLOW_TYPE_IPV6) &&
 	    (info->mask.src_port_mask != 0 ||
-	     info->mask.dst_port_mask != 0)) {
+	     info->mask.dst_port_mask != 0) &&
+	     rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN) {
 		PMD_DRV_LOG(ERR, "By this device,"
 			    " IPv4 is not supported without"
 			    " L4 protocol and ports masked!");
Signature · 1 line
2.9.3