Skip to contentSkip to conversation

net/ixgbe: fix NIC 82599ES port check error

PATCH Applied Wei Zhao 2 participants 2 messages Jul 20, 2017 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix NIC 82599ES port check error

This NIC type port check should use port index
not mask for 82599ES.

Fixes 16f534e508d ("net/ixgbe: add support 82599ES SCTP packet drop action")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ixgbe/ixgbe_flow.c +2 -2
index 2bb5c46..c77bbe2 100644
@@ -2546,8 +2546,8 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 
 	if (hw->mac.type == ixgbe_mac_82599EB &&
 		rule->fdirflags == IXGBE_FDIRCMD_DROP &&
-		(rule->mask.src_port_mask != 0 ||
-		rule->mask.dst_port_mask != 0))
+		(rule->ixgbe_fdir.formatted.src_port != 0 ||
+		rule->ixgbe_fdir.formatted.dst_port != 0))
 		return -ENOTSUP;
 
 	if (fdir_mode == RTE_FDIR_MODE_NONE ||
Signature · 1 line
2.9.3
Applied
#1 lore raw
Quoted 6 lines · Wei Zhao

This NIC type port check should use port index
not mask for 82599ES.

Fixes 16f534e508d ("net/ixgbe: add support 82599ES SCTP packet drop action")

Applied to dpdk-next-net/master, thanks.