From: Wei Zhao Date: Thu, 20 Jul 2017 07:25:41 +0000 (+0800) Subject: net/ixgbe: fix 82599ES flow API port check X-Git-Tag: spdx-start~2319 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3d4b0814714bbd83f3102e6fe26d12cce3a07fee;p=dpdk.git net/ixgbe: fix 82599ES flow API port check 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 --- diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 7a5c3f9021..e4f01cdf60 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -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 ||