From 3d4b0814714bbd83f3102e6fe26d12cce3a07fee Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Thu, 20 Jul 2017 15:25:41 +0800 Subject: [PATCH] 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 --- drivers/net/ixgbe/ixgbe_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 || -- 2.20.1