From patchwork Wed Jul 19 03:33:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 27044 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id E29063977; Wed, 19 Jul 2017 05:42:20 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id E169E374F for ; Wed, 19 Jul 2017 05:42:18 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 18 Jul 2017 20:42:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.40,379,1496127600"; d="scan'208"; a="1174196493" Received: from dpdk1.bj.intel.com ([172.16.182.84]) by fmsmga001.fm.intel.com with ESMTP; 18 Jul 2017 20:42:16 -0700 From: Wei Zhao To: dev@dpdk.org Cc: Wei Zhao Date: Wed, 19 Jul 2017 11:33:18 +0800 Message-Id: <1500435198-18056-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] net/ixgbe: fix NIC 82599ES type check error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This NIC type check is specific for 82599ES. Fixes: 16f534e508d ("net/ixgbe: add support 82599ES SCTP packet drop action") Signed-off-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))