[dpdk-dev] net/ixgbe: fix NIC 82599ES type check error

Message ID 1500435198-18056-1-git-send-email-wei.zhao1@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Zhao1, Wei July 19, 2017, 3:33 a.m. UTC
  This NIC type check is specific for 82599ES.

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

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ixgbe/ixgbe_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit July 19, 2017, 9:12 a.m. UTC | #1
On 7/19/2017 4:33 AM, Wei Zhao wrote:
> This NIC type check is specific for 82599ES.
> 
> Fixes: 16f534e508d ("net/ixgbe: add support 82599ES SCTP packet drop action")
> 
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>

Squashed into relevant commit in next-net, thanks.
  

Patch

diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c
index 8e9be8f..04540af 100644
--- a/drivers/net/ixgbe/ixgbe_flow.c
+++ b/drivers/net/ixgbe/ixgbe_flow.c
@@ -2538,7 +2538,7 @@  ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 
 step_next:
 
-	if (hw->mac.type != ixgbe_mac_82599EB &&
+	if (hw->mac.type == ixgbe_mac_82599EB &&
 		rule->fdirflags == IXGBE_FDIRCMD_DROP &&
 		(rule->mask.src_port_mask != 0 ||
 		rule->mask.dst_port_mask != 0))