net/ixgbe: fix 82599ES flow API port check
authorWei Zhao <wei.zhao1@intel.com>
Thu, 20 Jul 2017 07:25:41 +0000 (15:25 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
This NIC type port check should use port index
not mask for 82599ES.

Fixes: d9347d254008 ("net/ixgbe: support 82599ES SCTP packet drop action")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/ixgbe_flow.c

index 7a5c3f9..e4f01cd 100644 (file)
@@ -2579,8 +2579,8 @@ step_next:
 
        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 ||